Bug 2033216

Summary: Silly defaults for PRUNEFS
Product: [Fedora] Fedora Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: plocateAssignee: Zbigniew Jędrzejewski-Szmek <zbyszek>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: msekleta, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: plocate-1.1.16-2.fc38 plocate-1.1.16-2.fc37 plocate-1.1.16-2.fc36 plocate-1.1.16-2.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-17 11:58:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sami Farin 2021-12-16 09:07:07 UTC
Description of problem:
By default empty /etc/updatedb.conf is installed.
This means /proc /sys and other useless (for locate feature) directories are scanned.

Version-Release number of selected component (if applicable):
1.1.13

How reproducible:
100%

Steps to Reproduce:
1. Just let the systemd service run

Actual results:
/proc /sys added

Expected results:
Not added

Additional info:
I have now updatedb.conf from mlocate with some additions:

PRUNENAMES = ".git .hg .svn .bzr .arch-ids {arch} CVS"
PRUNEFS = "tracefs gvfsd-fuse pstore cgroup2 devtmpfs 9p afs anon_inodefs auto autofs bdev binfmt_misc cgroup cifs coda configfs cpuset debugfs devpts ecryptfs exofs fuse fuse.sshfs fusectl gfs gfs2 gpfs hugetlbfs inotifyfs iso9660 jffs2 lustre mqueue ncpfs nfs nfs4 nfsd pipefs proc ramfs rootfs rpc_pipefs securityfs selinuxfs sfs sockfs sysfs tmpfs ubifs udf usbfs ceph fuse.ceph"

(not sure is gvfsd-fuse needed or does fuse include it)
Or ship config file with PRUNENAMES PRUNEPATHS PRUNE_BIND_MOUNTS options commented?

Comment 1 Zbigniew Jędrzejewski-Szmek 2021-12-16 09:50:30 UTC
Indeed, /sys and /proc are indexed.
This should be forwarded upstream… I don't think it is a good default to index /sys or /proc,
but maybe there's some reasoning behind this.

Comment 2 Fedora Update System 2022-08-17 11:58:25 UTC
FEDORA-2022-70a7ad982a has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2022-70a7ad982a

Comment 3 Fedora Update System 2022-08-17 11:58:49 UTC
FEDORA-2022-70a7ad982a has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2022-08-17 11:58:50 UTC
FEDORA-2022-af20cf06e0 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-af20cf06e0

Comment 5 Fedora Update System 2022-08-17 12:01:49 UTC
FEDORA-2022-af20cf06e0 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2022-08-17 12:02:48 UTC
FEDORA-2022-06b128cd5f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-06b128cd5f

Comment 7 Fedora Update System 2022-08-17 12:02:49 UTC
FEDORA-2022-c2e36d044e has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c2e36d044e

Comment 8 Fedora Update System 2022-08-18 02:55:18 UTC
FEDORA-2022-c2e36d044e has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-c2e36d044e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c2e36d044e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-08-18 03:30:34 UTC
FEDORA-2022-06b128cd5f has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-06b128cd5f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-06b128cd5f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-08-20 01:44:45 UTC
FEDORA-2022-c2e36d044e has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2022-08-25 16:17:47 UTC
FEDORA-2022-06b128cd5f has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.