aboutsummaryrefslogtreecommitdiff
path: root/selinux/runcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/runcon.c')
-rw-r--r--selinux/runcon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/selinux/runcon.c b/selinux/runcon.c
index a5a394427..bc4fa23e0 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -65,7 +65,7 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type,
65 security_context_t cur_context; 65 security_context_t cur_context;
66 66
67 if (getcon(&cur_context)) 67 if (getcon(&cur_context))
68 bb_error_msg_and_die("can't get current context"); 68 bb_simple_error_msg_and_die("can't get current context");
69 69
70 if (compute_trans) { 70 if (compute_trans) {
71 security_context_t file_context, new_context; 71 security_context_t file_context, new_context;
@@ -75,7 +75,7 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type,
75 command); 75 command);
76 if (security_compute_create(cur_context, file_context, 76 if (security_compute_create(cur_context, file_context,
77 SECCLASS_PROCESS, &new_context)) 77 SECCLASS_PROCESS, &new_context))
78 bb_error_msg_and_die("unable to compute a new context"); 78 bb_simple_error_msg_and_die("unable to compute a new context");
79 cur_context = new_context; 79 cur_context = new_context;
80 } 80 }
81 81
@@ -137,7 +137,7 @@ int runcon_main(int argc UNUSED_PARAM, char **argv)
137 if (!(opts & OPTS_CONTEXT_COMPONENT)) { 137 if (!(opts & OPTS_CONTEXT_COMPONENT)) {
138 context = *argv++; 138 context = *argv++;
139 if (!argv[0]) 139 if (!argv[0])
140 bb_error_msg_and_die("no command given"); 140 bb_simple_error_msg_and_die("no command given");
141 } 141 }
142 142
143 if (context) { 143 if (context) {