summaryrefslogtreecommitdiff
path: root/src/shared/mkdir.c
AgeCommit message (Collapse)AuthorFilesLines
2014-11-28treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1Lennart Poettering1-2/+2
2014-10-23label: move is_dir() to util.cLennart Poettering1-14/+0
2014-10-21shared: remove unused functionsRonny Chevalier1-4/+0
- mkdir_p_prefix: It has never been used - mkdir_parents_prefix_label: Unused since 1434ae6fd49f8377b0ddbd4c675736e0d3226ea6
2014-06-10tmpfiles: get rid of "m" lines, make them redundant by "z"Lennart Poettering1-5/+10
"m" so far has been a non-globbing version of "z". Since this makes it quite redundant, let's get rid of it. Remove "m" from the man pages, beef up "z" docs instead, and make "m" nothing more than a compatibility alias for "z".
2014-03-17shared: export is_dirZbigniew Jędrzejewski-Szmek1-1/+1
2014-03-11nspawn: when resoliving UIDs/GIDs for "-u", do so in forked off ↵Lennart Poettering1-1/+3
/usr/bin/getent instead of in-process When the container runs a different native architecture than the host we shouldn't attempt to load the container's NSS modules with the host's libc. Instead, resolve UID/GID by invoking /usr/bin/getent in the container. The tool should be fairly universally available and allows us to do resolving of the UID/GID with the container's libc in a parsable format. https://bugs.freedesktop.org/show_bug.cgi?id=75733
2014-03-03core: introduce new RuntimeDirectory= and RuntimeDirectoryMode= unit settingsLennart Poettering1-2/+2
As discussed on the ML these are useful to manage runtime directories below /run for services.
2013-10-02mkdir: pass a proper function pointer to mkdir_safe_internalLennart Poettering1-1/+1
Notes: Backport: bugfix
2013-07-26shared: split mkdir_*() and mkdir_*_label() from each otherKay Sievers1-30/+10
Avoid pulling-in selinux for tools which just create directories but not need to fix the selinux label.
2013-06-27core: general cgroup reworkLennart Poettering1-29/+45
Replace the very generic cgroup hookup with a much simpler one. With this change only the high-level cgroup settings remain, the ability to set arbitrary cgroup attributes is removed, so is support for adding units to arbitrary cgroup controllers or setting arbitrary paths for them (especially paths that are different for the various controllers). This also introduces a new -.slice root slice, that is the parent of system.slice and friends. This enables easy admin configuration of root-level cgrouo properties. This replaces DeviceDeny= by DevicePolicy=, and implicitly adds in /dev/null, /dev/zero and friends if DeviceAllow= is used (unless this is turned off by DevicePolicy=).
2012-10-02shared: fail mkdir_p if the target exists and is not a directoryZbigniew Jędrzejewski-Szmek1-1/+9
This makes mkdir_p actually behave like mkdir -p.
2012-10-02nspawn: use automatic cleanup and provide debug infoZbigniew Jędrzejewski-Szmek1-1/+0
The documentation for --link-journal is also reworded.
2012-05-31mkdir: provide all functions with and without selinux label applicationKay Sievers1-8/+33
2012-05-31mkdir: append _label to all mkdir() calls that explicitly set the selinux ↵Kay Sievers1-4/+8
context
2012-04-17mkdir: do not use alloca() in a loopKay Sievers1-1/+3
2012-04-17udev: replace util_create_path() with mkdir_parents()Kay Sievers1-4/+14
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering1-4/+4
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-10rename basic.la to shared.la and put selinux deps in shared-selinx.laKay Sievers1-0/+99
Only 34 of 74 tools need libselinux linked, and libselinux is a pain with its unconditional library constructor.