Re: Root file system skipped when mlocate (updatedb) is run via systemd timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux