chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shared: fix typo
[elogind.git]
/
src
/
shared
/
selinux-util.c
diff --git
a/src/shared/selinux-util.c
b/src/shared/selinux-util.c
index 4332c916fa11c248bd7f3bdb85355d4afd9a9f2a..1eddd17d2797ff797254aab1faf43c34f58affb4 100644
(file)
--- a/
src/shared/selinux-util.c
+++ b/
src/shared/selinux-util.c
@@
-23,6
+23,7
@@
#include <unistd.h>
#include <malloc.h>
#include <sys/un.h>
#include <unistd.h>
#include <malloc.h>
#include <sys/un.h>
+
#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
#include <selinux/label.h>
#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
#include <selinux/label.h>
@@
-328,7
+329,7
@@
int mac_selinux_create_file_prepare(const char *path, mode_t mode) {
if (!newpath)
return -ENOMEM;
if (!newpath)
return -ENOMEM;
- r = selabel_lookup_raw(label_hnd, &filecon, newpath,
S_IFDIR
);
+ r = selabel_lookup_raw(label_hnd, &filecon, newpath,
mode
);
}
if (r < 0 && errno != ENOENT)
}
if (r < 0 && errno != ENOENT)