LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.0 is missing /run in PRUNEPATHS in /etc/updatedb.conf (http://www.linuxquestions.org/questions/slackware-14/slackware-14-0-is-missing-run-in-prunepaths-in-etc-updatedb-conf-4175444138/)

jtsn 01-04-2013 09:23 AM

Slackware 14.0 is missing /run in PRUNEPATHS in /etc/updatedb.conf
 
So updatedb(1) from slocate-3.1 accidentally indexes Poetterings's tmpfs and all media mounted below /run/media. I don't think, the latter was intended behaviour, because /mnt and /media are listed explicitly.

STDOUBT 01-04-2013 11:56 PM

Do not question the Pottering!
Just kidding. Thank you for this post, I've learned something new about updatedb.
Meanwhile, I'm still enjoying the crap out of 13.37. Once I figure out how to sufficiently de-Potterize 14.0, I might upgrade to it on my main system (already bought the DVD).

Mark Pettit 01-05-2013 07:10 AM

Thanks. I usually keep stuff (*cough *cough) that I wouldn't want the kids to see on a separate drive. Sometimes that's attached at night. I wouldn't like the contents of that indexed !

GazL 01-05-2013 08:31 AM

Yep, it does look like /run needs to be added. My PRUNEFS= line has tmpfs on it, but while this stops updatedb from indexing /run itself, it doesn't stop updatedb from traversing /run into any filesystems mounted under it (such as those under /run/media). Well spotted.


@Mark,

slocate will only list files that are both currently accessible, and readable by the user running the query. So, unless your kids have root access and are knowledgeable enough to try and run something like 'strings' against /var/lib/slocate/slocate.db then daddy's nocturnal activities involving "stuff" should remain undetected.

Mark Pettit 01-05-2013 11:09 AM

@GazL - thanks for that tip. I was under the impression that the slocate database remained in force until the next running of the updatedb command - ie approx 4:00 am daily. 13 years running Linux and I still learn new stuff !


All times are GMT -5. The time now is 11:28 AM.