diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 00:46:17 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-09-10 00:46:17 +0200 |
commit | 4f4b12c20388ff2cb158b040e3193f86cf7a3b96 (patch) | |
tree | 41449172690d16f6deba140d174343478f806d23 /udev/udev_utils_file.c | |
parent | 6b12bdb62460a0bdc08d5e020a64c18bc1672bb1 (diff) |
libudev: add selinux
Diffstat (limited to 'udev/udev_utils_file.c')
-rw-r--r-- | udev/udev_utils_file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/udev/udev_utils_file.c b/udev/udev_utils_file.c index 7ccb5b4039..b8b4d10d21 100644 --- a/udev/udev_utils_file.c +++ b/udev/udev_utils_file.c @@ -30,7 +30,6 @@ #include <sys/mman.h> #include "udev.h" -#include "udev_selinux.h" int create_path(struct udev *udev, const char *path) { @@ -56,9 +55,9 @@ int create_path(struct udev *udev, const char *path) return -1; dbg(udev, "mkdir '%s'\n", p); - selinux_setfscreatecon(udev, p, NULL, S_IFDIR|0755); + udev_selinux_setfscreatecon(udev, p, S_IFDIR|0755); ret = mkdir(p, 0755); - selinux_resetfscreatecon(udev); + udev_selinux_resetfscreatecon(udev); if (ret == 0) return 0; |