Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487598 - tmpfiles.d: Configuration files are in the wrong path
Summary: tmpfiles.d: Configuration files are in the wrong path
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL: http://www.freedesktop.org/software/s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-11 05:37 UTC by Patrick Lauer
Modified: 2013-10-11 16:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.