X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fselinux-setup.c;h=c32c7ad8db5fb9c59341a63fc6c1d38d2e367a11;hp=8bd9380775a608f935954a347999b958e736286e;hb=2dcd4d240630c98f8cb025090c2bbfa65aa28a8a;hpb=2e60ecb2f760936552f9d6db32d6ecf828b3c322 diff --git a/src/selinux-setup.c b/src/selinux-setup.c index 8bd938077..c32c7ad8d 100644 --- a/src/selinux-setup.c +++ b/src/selinux-setup.c @@ -43,10 +43,9 @@ int selinux_setup(char *const argv[]) { return 0; /* 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"); + * that after the reexec we iterate through /run and /dev to + * relabel things. */ + touch("/dev/.systemd-relabel-run-dev"); 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-run-dev"); if (enforce > 0) return -EIO;