X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Flabel.c;h=fde39f22594fd08ac1613818a25a29ecd4a65cef;hb=39bdfa31f2f00c3357e2a7a5f139abee6d7c7cd3;hp=1fe4574633ef888089d3fbb4ea612f7badb84a0c;hpb=819da59577758a7a328020546127091e45bc59e7;p=elogind.git 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))