diff options
author | Kay Sievers <kay@vrfy.org> | 2013-07-26 03:34:18 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-07-26 04:13:55 +0200 |
commit | 39bdfa31f2f00c3357e2a7a5f139abee6d7c7cd3 (patch) | |
tree | 82b73224f774156f6ab57ef60af0f26ed6507e3d /src/shared/label.c | |
parent | 819da59577758a7a328020546127091e45bc59e7 (diff) |
shared: split mkdir_*() and mkdir_*_label() from each other
Avoid pulling-in selinux for tools which just create directories
but not need to fix the selinux label.
Diffstat (limited to 'src/shared/label.c')
-rw-r--r-- | src/shared/label.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/label.c b/src/shared/label.c index 1fe4574633..fde39f2259 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)) |