On Wed, 2021-08-18 at 15:25 +0000, Jan-Henrik Sorsimo via users wrote: > > I have several binaries matching /usr/bin/myth*. When mlocate- > > updatedb > > runs via a timer, the / file system is skipped so no files under > > /usr/bin are listed when I run "locate bin/myth". > > I'm experiencing the same issue. > > I took a look at the service unit file > (/usr/lib/systemd/system/mlocate-updatedb.service). It has some > sandboxing features set. When I set the value of "ProtectSystem" to > either "false" or "strict", a manual run of the service does include > the files under /usr in the database. Other options result in the > behavior mentioned. > > I can't see what sense this makes. That setting is supposed to just > cover what gets mounted read-only. A systemd bug? I have the inverse problem, i.e. locate will find files in the root filesystem but not in my /home. My config is: $ cat /usr/lib/systemd/system/mlocate-updatedb.service [Unit] Description=Update a database for mlocate [Service] ExecStart=/usr/libexec/mlocate-run-updatedb Nice=19 IOSchedulingClass=2 IOSchedulingPriority=7 PrivateTmp=true PrivateDevices=true PrivateNetwork=true ProtectSystem=true which I think is just the default as I've never changed it. This has been going on for quite some time (at least since F33 if not before) though I've never really looked into it. poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure