diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-12 18:22:55 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-12 18:22:55 +0000 |
commit | d8d054080fdba1f2dbfc8249a6b51fc3001d6205 (patch) | |
tree | ad535283af2299825f65b6b44c889dc7e7bfc842 /coreutils/mkdir.c | |
parent | 51afb265f7e30cad62a1ece2940f54d61240e0ce (diff) | |
download | busybox-w32-d8d054080fdba1f2dbfc8249a6b51fc3001d6205.tar.gz busybox-w32-d8d054080fdba1f2dbfc8249a6b51fc3001d6205.tar.bz2 busybox-w32-d8d054080fdba1f2dbfc8249a6b51fc3001d6205.zip |
introduce and use setfscreatecon_or_die
(patch by Yuichi Nakamura <ynakam@hitachisoft.jp>)
runcon: *yet another* fix for vda's brainfart :(
git-svn-id: svn://busybox.net/trunk/busybox@18073 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r-- | coreutils/mkdir.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 93ded1dd5..690e4ab40 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -62,10 +62,7 @@ int mkdir_main(int argc, char **argv) | |||
62 | #if ENABLE_SELINUX | 62 | #if ENABLE_SELINUX |
63 | if (opt & 4) { | 63 | if (opt & 4) { |
64 | selinux_or_die(); | 64 | selinux_or_die(); |
65 | if (setfscreatecon(scontext)) { | 65 | setfscreatecon_or_die(scontext); |
66 | bb_error_msg_and_die("cannot set default file creation context " | ||
67 | "to %s", scontext); | ||
68 | } | ||
69 | } | 66 | } |
70 | #endif | 67 | #endif |
71 | 68 | ||