diff options
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/runcon.c | 3 | ||||
-rw-r--r-- | selinux/sestatus.c | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/selinux/runcon.c b/selinux/runcon.c index b70a5e396..54349b25c 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c | |||
@@ -132,6 +132,5 @@ int runcon_main(int argc UNUSED_PARAM, char **argv) | |||
132 | bb_error_msg_and_die("can't set up security context '%s'", | 132 | bb_error_msg_and_die("can't set up security context '%s'", |
133 | context_str(con)); | 133 | context_str(con)); |
134 | 134 | ||
135 | execvp(argv[0], argv); | 135 | BB_EXECVP_or_die(argv); |
136 | bb_perror_msg_and_die("can't execute '%s'", argv[0]); | ||
137 | } | 136 | } |
diff --git a/selinux/sestatus.c b/selinux/sestatus.c index 7fb2b470b..aa12e806c 100644 --- a/selinux/sestatus.c +++ b/selinux/sestatus.c | |||
@@ -12,10 +12,10 @@ | |||
12 | 12 | ||
13 | extern char *selinux_mnt; | 13 | extern char *selinux_mnt; |
14 | 14 | ||
15 | #define OPT_VERBOSE (1 << 0) | 15 | #define OPT_VERBOSE (1 << 0) |
16 | #define OPT_BOOLEAN (1 << 1) | 16 | #define OPT_BOOLEAN (1 << 1) |
17 | 17 | ||
18 | #define COL_FMT "%-31s " | 18 | #define COL_FMT "%-31s " |
19 | 19 | ||
20 | static void display_boolean(void) | 20 | static void display_boolean(void) |
21 | { | 21 | { |
@@ -151,7 +151,7 @@ int sestatus_main(int argc UNUSED_PARAM, char **argv) | |||
151 | const char *pol_path; | 151 | const char *pol_path; |
152 | int rc; | 152 | int rc; |
153 | 153 | ||
154 | opt_complementary = "?0"; /* no arguments are required. */ | 154 | opt_complementary = "?0"; /* no arguments are required. */ |
155 | opts = getopt32(argv, "vb"); | 155 | opts = getopt32(argv, "vb"); |
156 | 156 | ||
157 | /* SELinux status: line */ | 157 | /* SELinux status: line */ |