aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/chcon.c4
-rw-r--r--selinux/runcon.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 4395a7ee4..c6be37f44 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -90,13 +90,13 @@ static int FAST_FUNC change_filedir_context(
90 if ((option_mask32 & OPT_VERBOSE) || ((option_mask32 & OPT_CHANHES) && !fail)) { 90 if ((option_mask32 & OPT_VERBOSE) || ((option_mask32 & OPT_CHANHES) && !fail)) {
91 printf(!fail 91 printf(!fail
92 ? "context of %s changed to %s\n" 92 ? "context of %s changed to %s\n"
93 : "failed to change context of %s to %s\n", 93 : "can't change context of %s to %s\n",
94 fname, context_string); 94 fname, context_string);
95 } 95 }
96 if (!fail) { 96 if (!fail) {
97 rc = TRUE; 97 rc = TRUE;
98 } else if ((option_mask32 & OPT_QUIET) == 0) { 98 } else if ((option_mask32 & OPT_QUIET) == 0) {
99 bb_error_msg("failed to change context of %s to %s", 99 bb_error_msg("can't change context of %s to %s",
100 fname, context_string); 100 fname, context_string);
101 } 101 }
102 } else if (option_mask32 & OPT_VERBOSE) { 102 } else if (option_mask32 & OPT_VERBOSE) {
diff --git a/selinux/runcon.c b/selinux/runcon.c
index 8472b7090..4afd1116e 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -59,13 +59,13 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type,
59 if (!con) 59 if (!con)
60 bb_error_msg_and_die("'%s' is not a valid context", cur_context); 60 bb_error_msg_and_die("'%s' is not a valid context", cur_context);
61 if (user && context_user_set(con, user)) 61 if (user && context_user_set(con, user))
62 bb_error_msg_and_die("failed to set new user '%s'", user); 62 bb_error_msg_and_die("can't set new user '%s'", user);
63 if (type && context_type_set(con, type)) 63 if (type && context_type_set(con, type))
64 bb_error_msg_and_die("failed to set new type '%s'", type); 64 bb_error_msg_and_die("can't set new type '%s'", type);
65 if (range && context_range_set(con, range)) 65 if (range && context_range_set(con, range))
66 bb_error_msg_and_die("failed to set new range '%s'", range); 66 bb_error_msg_and_die("can't set new range '%s'", range);
67 if (role && context_role_set(con, role)) 67 if (role && context_role_set(con, role))
68 bb_error_msg_and_die("failed to set new role '%s'", role); 68 bb_error_msg_and_die("can't set new role '%s'", role);
69 69
70 return con; 70 return con;
71} 71}