X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Flabel.c;h=fde39f22594fd08ac1613818a25a29ecd4a65cef;hp=1fe4574633ef888089d3fbb4ea612f7badb84a0c;hb=442e00839e4fc3c11506f5c8a9477b465865aecc;hpb=2fa4092c2829dd14e50c430ae2f23551d23c6c1d diff --git a/src/shared/label.c b/src/shared/label.c index 1fe457463..fde39f225 100644 --- a/src/shared/label.c +++ b/src/shared/label.c @@ -257,14 +257,14 @@ void label_free(const char *label) { #endif } -int label_mkdir(const char *path, mode_t mode, bool apply) { +int label_mkdir(const char *path, mode_t mode) { /* Creates a directory and labels it according to the SELinux policy */ #ifdef HAVE_SELINUX int r; security_context_t fcon = NULL; - if (!apply || !use_selinux() || !label_hnd) + if (!use_selinux() || !label_hnd) goto skipped; if (path_is_absolute(path))