aboutsummaryrefslogtreecommitdiff
path: root/coreutils/libcoreutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-12 18:22:55 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-03-12 18:22:55 +0000
commitd8d054080fdba1f2dbfc8249a6b51fc3001d6205 (patch)
treead535283af2299825f65b6b44c889dc7e7bfc842 /coreutils/libcoreutils
parent51afb265f7e30cad62a1ece2940f54d61240e0ce (diff)
downloadbusybox-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/libcoreutils')
-rw-r--r--coreutils/libcoreutils/getopt_mk_fifo_nod.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/libcoreutils/getopt_mk_fifo_nod.c b/coreutils/libcoreutils/getopt_mk_fifo_nod.c
index 2e0c27439..32fa9bede 100644
--- a/coreutils/libcoreutils/getopt_mk_fifo_nod.c
+++ b/coreutils/libcoreutils/getopt_mk_fifo_nod.c
@@ -43,10 +43,7 @@ mode_t getopt_mk_fifo_nod(int argc, char **argv)
43#if ENABLE_SELINUX 43#if ENABLE_SELINUX
44 if (opt & 2) { 44 if (opt & 2) {
45 selinux_or_die(); 45 selinux_or_die();
46 if (setfscreatecon(scontext)) { 46 setfscreatecon_or_die(scontext);
47 bb_error_msg_and_die("cannot set default file creation context "
48 "to %s", scontext);
49 }
50 } 47 }
51#endif 48#endif
52 49