diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/copy_file.c | 4 | ||||
-rw-r--r-- | libbb/selinux_common.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c index 58d657b02..7d85920d9 100644 --- a/libbb/copy_file.c +++ b/libbb/copy_file.c | |||
@@ -250,11 +250,11 @@ int copy_file(const char *source, const char *dest, int flags) | |||
250 | || (flags & FILEUTILS_SET_SECURITY_CONTEXT)) | 250 | || (flags & FILEUTILS_SET_SECURITY_CONTEXT)) |
251 | && is_selinux_enabled() > 0 | 251 | && is_selinux_enabled() > 0 |
252 | ) { | 252 | ) { |
253 | security_context_t con; | 253 | security_context_t con; |
254 | if (getfscreatecon(&con) == -1) { | 254 | if (getfscreatecon(&con) == -1) { |
255 | bb_perror_msg("getfscreatecon"); | 255 | bb_perror_msg("getfscreatecon"); |
256 | return -1; | 256 | return -1; |
257 | } | 257 | } |
258 | if (con) { | 258 | if (con) { |
259 | if(setfilecon(dest, con) == -1) { | 259 | if(setfilecon(dest, con) == -1) { |
260 | bb_perror_msg("setfilecon:%s,%s", dest, con); | 260 | bb_perror_msg("setfilecon:%s,%s", dest, con); |
diff --git a/libbb/selinux_common.c b/libbb/selinux_common.c index d506f0636..4cb85f00f 100644 --- a/libbb/selinux_common.c +++ b/libbb/selinux_common.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * libbb/selinux_common.c | 2 | * libbb/selinux_common.c |
3 | * -- common SELinux utility functions | 3 | * -- common SELinux utility functions |
4 | * | 4 | * |
5 | * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> | 5 | * Copyright 2007 KaiGai Kohei <kaigai@kaigai.gr.jp> |
6 | */ | 6 | */ |
7 | #include "busybox.h" | 7 | #include "busybox.h" |