diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-12 18:22:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-12 18:22:55 +0000 |
commit | 39c651e9097e0e55a52c897982d6e84d281f7396 (patch) | |
tree | ad535283af2299825f65b6b44c889dc7e7bfc842 /coreutils/install.c | |
parent | b3f09f4a5092aacbdc3da80d4fefeaf06445a4f8 (diff) | |
download | busybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.tar.gz busybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.tar.bz2 busybox-w32-39c651e9097e0e55a52c897982d6e84d281f7396.zip |
introduce and use setfscreatecon_or_die
(patch by Yuichi Nakamura <ynakam@hitachisoft.jp>)
runcon: *yet another* fix for vda's brainfart :(
Diffstat (limited to 'coreutils/install.c')
-rw-r--r-- | coreutils/install.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/install.c b/coreutils/install.c index 1f65407b1..a58a23b6e 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -110,9 +110,7 @@ int install_main(int argc, char **argv) | |||
110 | } | 110 | } |
111 | if (flags & OPT_SET_SECURITY_CONTEXT) { | 111 | if (flags & OPT_SET_SECURITY_CONTEXT) { |
112 | selinux_or_die(); | 112 | selinux_or_die(); |
113 | if (setfscreatecon(scontext) < 0) { | 113 | setfscreatecon_or_die(scontext); |
114 | bb_error_msg_and_die("setfscreatecon(%s)", scontext); // perror? | ||
115 | } | ||
116 | use_default_selinux_context = 0; | 114 | use_default_selinux_context = 0; |
117 | copy_flags |= FILEUTILS_SET_SECURITY_CONTEXT; | 115 | copy_flags |= FILEUTILS_SET_SECURITY_CONTEXT; |
118 | } | 116 | } |