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_rules_parse.c | |
parent | 6b12bdb62460a0bdc08d5e020a64c18bc1672bb1 (diff) |
libudev: add selinux
Diffstat (limited to 'udev/udev_rules_parse.c')
-rw-r--r-- | udev/udev_rules_parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/udev/udev_rules_parse.c b/udev/udev_rules_parse.c index 81f0edb6f5..9513ac9cf3 100644 --- a/udev/udev_rules_parse.c +++ b/udev/udev_rules_parse.c @@ -30,7 +30,6 @@ #include "udev.h" #include "udev_rules.h" -#include "udev_selinux.h" void udev_rules_iter_init(struct udev_rules_iter *iter, struct udev_rules *rules) @@ -756,9 +755,9 @@ int udev_rules_init(struct udev *udev, struct udev_rules *rules, int resolve_nam strlcat(filename, "/.udev/rules.d", sizeof(filename)); if (stat(filename, &statbuf) != 0) { create_path(udev, filename); - selinux_setfscreatecon(udev, filename, NULL, S_IFDIR|0755); + udev_selinux_setfscreatecon(udev, filename, S_IFDIR|0755); mkdir(filename, 0755); - selinux_resetfscreatecon(udev); + udev_selinux_resetfscreatecon(udev); } add_matching_files(udev, &sort_list, filename, ".rules"); |