aboutsummaryrefslogtreecommitdiff
path: root/arch-tmpfiles
AgeCommit message (Collapse)AuthorFiles
2012-03-11arch-tmpfiles: don't try to resolve numeric UIDs/GIDsDave Reisner1
The whole point of using numeric IDs is to avoid resolution in the passwd/group databases. If we encounter an ID which is simply numeric, leave it alone. Looks like I broke this in a4558c4c trying to be a bit too clever. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-03-11arch-tmpfiles: allow passing specific config filesDave Reisner1
Modify our path collection loop to accept the remaining argv as paths to config files. This overrides the default lookup for config files in /etc, /lib, and /run so that single config files can be parsed at a time (e.g. during package installation). Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: add handling for _z and _ZDave Reisner1
This doesn't actually relabel security contexts, since arch's coreutils isn't built with selinux support, but it handles maintenance of mode and ownership if you're into that sort of thing. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: simplify uid/gid validationDave Reisner1
getent will process numeric UIDs/GIDs for us. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: simplify action invocationDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: avoid pipe to xargsDave Reisner1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-12-26arch-tmpfiles: don't truncate directories on --createDave Reisner1
arch-tmpfiles should not truncate directories when invoked with --create. This matches behavior from systemd's tmpfiles binary. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-08-03arch-tmpfiles: avoid subshell in creating empty filesDave Reisner1
install /dev/null as the new file instead of creating an empty file via a no-op process substitution. Signed-off-by: Dave Reisner <dreisner@archlinux.org> [tomegun: the commit also adds a similar fix to rc.shutdown] Signed-off-by: Tom Gundersen <teg@jklm.no>
2011-07-24arch-tmpfiles: add cmdline parametersDave Reisner1
Categorize actions as 'create' or 'remove', for finer control. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-07-24arch-tmpfiles: check args, warn on invalid entriesDave Reisner1
Introduces the checkparams functions, which thoroughly checks arguments for presence, length, and some amount of data validation. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2011-07-24arch-tmpfiles: add new script to handle volatile file controlDave Reisner1
This is the same concept as systemd's tmpfiles handling, slightly simplified to avoid timed re-triggering of file cleaning. Most of our current file cleaning that takes place in rc.single and rc.sysinit is replaced by this, with the exception that we hold onto the /var/lock and /var/run for finer control, since we still check for the possibility of these directories being symlinks and adjust accordingly. Signed-off-by: Dave Reisner <dreisner@archlinux.org>