summaryrefslogtreecommitdiff
path: root/src/tmpfiles.c
AgeCommit message (Collapse)Author
2012-04-12move all tools to subdirsKay Sievers
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
2012-04-11tmpfiles: open directories with O_NOATIME to preserve timestampKay Sievers
Before: # stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20' Access: 2012-04-11 21:32:48.444920237 +0200 # systemd-tmpfiles --clean # stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20' Access: 2012-04-11 21:36:27.628925459 +0200 After: # stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20' Access: 2012-04-11 21:32:48.444920237 +0200 # ./systemd-tmpfiles --clean # stat /tmp/pulse-Du5ectm60QYM | grep 'Access: 20' Access: 2012-04-11 21:32:48.444920237 +0200 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=810257
2012-04-10rename basic.la to shared.la and put selinux deps in shared-selinx.laKay Sievers
Only 34 of 74 tools need libselinux linked, and libselinux is a pain with its unconditional library constructor.
2012-03-14conf: when looking for configurations look in /etc first, in /run secondLennart Poettering
After long consideration we came to the conclusion that user configuration in /etc should always override the (generally computer generated) configuration in /run. User configuration should always be what matters over anything else. Hence rearrange the search orders accordingly. In general this should change very little as overriding like this is seldomn done so far, and the order between /etc and /usr stays the same.
2012-01-22tmpfiles: fix bad memory accessLennart Poettering
2012-01-18tmpfiles: support writing short strings to files, in order to support /sys ↵Lennart Poettering
manipulations at boot time, a la sysctl
2012-01-18tmpfiles: add support for creating symlinks, char/block device nodesLennart Poettering
2012-01-11tmpfiles: fix parsing of /proc/net/unix on 32Bit machinesLennart Poettering
Tracked down by Michael Meeks
2011-12-16tmpfiles: add 'z', like 'Z' but not recursiveMichal Schmidt
2011-12-16tmpfiles: apply chown, chmod for 'Z' entries tooMichal Schmidt
If changing ownership or permissions is not desired, they can be configured to '-' or omitted entirely.
2011-12-16tmpfiles: add RECURSIVE_RELABEL_PATH ('Z')Michal Schmidt
Feature requested by Dan Walsh.
2011-12-15tmpfiles: separate a generic item glob processing functionMichal Schmidt
Item glob processing will be useful for more than just removing.
2011-12-15tmpfiles: use a common function to set owner/group/mode/labelMichal Schmidt
2011-12-15tmpfiles: rename a couple of functionsMichal Schmidt
remove_item -> remove_item_instance remove_item_glob -> remove_item
2011-12-15tmpfiles: use an enum instead of plain char for item typeMichal Schmidt
For better safety. gcc can warn about missing values in switch statements.
2011-10-10tmpfiles: fix file descriptor leakThomas Jarosch
Detected by "cppcheck"
2011-08-21cgroup: honour sticky bit when trimming cgroup treesLennart Poettering
2011-08-01umask: change default umask to 0022 just to be sure, and set it explicitly ↵Lennart Poettering
in all binaries, in order to make sure it is set when started from the terminal
2011-07-23util: make use of get_user_creds() and get_group_creds() wherever applicableLennart Poettering
2011-07-23util: user parse_uid() wherever applicableLennart Poettering
2011-07-12tmpfiles: allow creation of named pipes with tmpfilesLennart Poettering
2011-07-02tmpfiles: don't exit with an error code if we cannot access all filesLennart Poettering
This is just to avoid confusion if people use stuff like FUSE file systems or SELinux which might disallow access to files even if tmpfiles is running as root. We still log away if we cannot access a file, but we do not return a failure exit code in the end.
2011-04-30binfmt, modules-load, sysctl, tmpfiles: read /usr/local/lib and where ↵Kay Sievers
appropriate /lib directories
2011-04-28util: conf_files_list() return list as parameterKay Sievers
2011-04-25tmpfiles.d: switch to stacked config dirs in /lib, /etc, /runKay Sievers
2011-04-10tmpfiles: don't warn if two identical lines are configuredLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=690253
2011-04-04change remaining /var/run to /runKay Sievers
2011-04-03tmpfiles: create leading directories for d/D instructionsKay Sievers
2011-04-01general: replace a few uses of /var/run by /runLennart Poettering
2011-03-03dirent: support DT_UNKNOWN where necessary for compat with reiserfsLennart Poettering
2011-02-28Spelling CorrectionsHarald Hoyer
Just some lame spelling corrections with no functionality.
2011-02-25label: udev might be making changes in /dev while we iterate through itLennart Poettering
Also, there are most likely dead symlinks in there, so let's ignore ENOENT when we relabel. https://bugzilla.redhat.com/show_bug.cgi?id=680169
2011-02-19tmpfiles: never clean up block devicesLennart Poettering
2011-02-17tmpfiles: kill double slashes in unix socket names, just in caseLennart Poettering
2011-02-14tmpfiles: never delete AF_UNIX sockets that are aliveLennart Poettering
2011-02-13systemd: document systemd-tmpfilesLennart Poettering
2011-02-13tmpfiles: take names of tmpfiles configuration files on the command lineLennart Poettering
2011-02-12tmpfiles: log to stderr if possibleLennart Poettering
2011-02-12tmpfiles: support globsLennart Poettering
2011-01-22clang: fix some issues found with clang-analyzersystemd/v17Lennart Poettering
2011-01-05tmpfiles: nicer message when two or more conflicting lines are configured ↵Lennart Poettering
for the same file
2010-12-28tmpfiles: ensure we do no follow symlinks when cleaning up dirsLennart Poettering
Patch suggested by Miloslav Trmac.
2010-11-14tmpfiles: ignore files marked with the sticky bitLennart Poettering
2010-10-21tmpfiles: consider TRUNCATE_DIRECTORY as well.Gustavo Sverzut Barbieri
reorder lines to match the enum declaration.
2010-10-19tmpfiles: destruct selinux database after useLennart Poettering
2010-10-18tmpfiles: integrate kay's directory cleanup code and otherwise beef up ↵Lennart Poettering
tmpfiles quite a bit
2010-09-29tmpfiles: fix typo in commentAndreas Jaeger
2010-09-28tmpfiles: move dir to /etc/tempfiles.d/Lennart Poettering
2010-09-28tmpfiles: return sensible error codeLennart Poettering