summaryrefslogtreecommitdiff
path: root/src/selinux-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-09 22:45:47 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-09 22:45:47 +0100
commitb925e72633bf98438f56a140520e07ec8c959e46 (patch)
tree7daba41fbb22be20a8a094fa792407a036b26ff1 /src/selinux-setup.c
parent29d958ce2ba49794fa92dd77b2f9a9bdc941f493 (diff)
dev: use /dev/.run/systemd as runtime directory, instead of /dev/.systemd
Diffstat (limited to 'src/selinux-setup.c')
-rw-r--r--src/selinux-setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/selinux-setup.c b/src/selinux-setup.c
index 8bd9380775..e21ff6bb9f 100644
--- a/src/selinux-setup.c
+++ b/src/selinux-setup.c
@@ -45,8 +45,7 @@ int selinux_setup(char *const argv[]) {
/* Before we load the policy we create a flag file to ensure
* that after the reexec we iterate through /dev to relabel
* things. */
- mkdir_p("/dev/.systemd", 0755);
- touch("/dev/.systemd/relabel-devtmpfs");
+ touch("/dev/.systemd-relabel-devtmpfs");
if (selinux_init_load_policy(&enforce) == 0) {
log_debug("Successfully loaded SELinux policy, reexecuting.");
@@ -61,7 +60,7 @@ int selinux_setup(char *const argv[]) {
} else {
log_full(enforce > 0 ? LOG_ERR : LOG_WARNING, "Failed to load SELinux policy.");
- unlink("/dev/.systemd/relabel-devtmpfs");
+ unlink("/dev/.systemd-relabel-devtmpfs");
if (enforce > 0)
return -EIO;