Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487598

Summary: tmpfiles.d: Configuration files are in the wrong path
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: New packagesAssignee: OpenRC Team <openrc>
Status: RESOLVED UPSTREAM    
Severity: normal CC: qa
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2013-10-11 05:37:25 UTC
Going from /etc/init.d/tmpfiles.dev which calls /lib64/rc/sh/tmpfiles.sh ...

tmpfiles_dirs='/usr/lib/tmpfiles.d/ /etc/tmpfiles.d/ /run/tmpfiles.d/'

Looking at /usr/lib/tmpfiles.d/:

cyrus-sasl.conf      fetchmail.conf       lvm2.conf            mdadm.conf           mysql.conf           postgresql-9.3.conf  samba.conf


Now looking at FHS:
http://www.pathname.com/fhs/2.2/fhs-4.7.html
Quote:
"/usr/lib includes object files, libraries, and internal binaries that are not intended to be executed directly by users or shell scripts."

Since these files are obviously configuration they must be moved to /etc.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-10-11 07:57:05 UTC
Blame systemd for violating FHS.
http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
Comment 2 William Hubbs gentoo-dev 2013-10-11 16:44:47 UTC
Yes, they are configuration files, but they are not meant to be edited
by admins. That is why they are in /usr/lib.

This is similar to how udev rules work. packages install rules that are
not meant to be edited in /lib/udev/rules.d.