aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/chcon.c8
-rw-r--r--selinux/getsebool.c2
-rw-r--r--selinux/runcon.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 55c2522f6..4395a7ee4 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -49,12 +49,12 @@ static int FAST_FUNC change_filedir_context(
}
if (status < 0 && errno != ENODATA) {
if ((option_mask32 & OPT_QUIET) == 0)
- bb_error_msg("cannot obtain security context: %s", fname);
+ bb_error_msg("can't obtain security context: %s", fname);
goto skip;
}
if (file_context == NULL && specified_context == NULL) {
- bb_error_msg("cannot apply partial context to unlabeled file %s", fname);
+ bb_error_msg("can't apply partial context to unlabeled file %s", fname);
goto skip;
}
@@ -62,7 +62,7 @@ static int FAST_FUNC change_filedir_context(
context = set_security_context_component(file_context,
user, role, type, range);
if (!context) {
- bb_error_msg("cannot compute security context from %s", file_context);
+ bb_error_msg("can't compute security context from %s", file_context);
goto skip;
}
} else {
@@ -75,7 +75,7 @@ static int FAST_FUNC change_filedir_context(
context_string = context_str(context);
if (!context_string) {
- bb_error_msg("cannot obtain security context in text expression");
+ bb_error_msg("can't obtain security context in text expression");
goto skip;
}
diff --git a/selinux/getsebool.c b/selinux/getsebool.c
index b761b72eb..7478b79e1 100644
--- a/selinux/getsebool.c
+++ b/selinux/getsebool.c
@@ -25,7 +25,7 @@ int getsebool_main(int argc, char **argv)
rc = security_get_boolean_names(&names, &len);
if (rc)
- bb_perror_msg_and_die("cannot get boolean names");
+ bb_perror_msg_and_die("can't get boolean names");
if (!len) {
puts("No booleans");
diff --git a/selinux/runcon.c b/selinux/runcon.c
index 6ecd7899d..8472b7090 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -41,13 +41,13 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type,
security_context_t cur_context;
if (getcon(&cur_context))
- bb_error_msg_and_die("cannot get current context");
+ bb_error_msg_and_die("can't get current context");
if (compute_trans) {
security_context_t file_context, new_context;
if (getfilecon(command, &file_context) < 0)
- bb_error_msg_and_die("cannot retrieve attributes of '%s'",
+ bb_error_msg_and_die("can't retrieve attributes of '%s'",
command);
if (security_compute_create(cur_context, file_context,
SECCLASS_PROCESS, &new_context))