diff options
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/chcon.c | 8 | ||||
-rw-r--r-- | selinux/getsebool.c | 2 | ||||
-rw-r--r-- | selinux/runcon.c | 4 |
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( | |||
49 | } | 49 | } |
50 | if (status < 0 && errno != ENODATA) { | 50 | if (status < 0 && errno != ENODATA) { |
51 | if ((option_mask32 & OPT_QUIET) == 0) | 51 | if ((option_mask32 & OPT_QUIET) == 0) |
52 | bb_error_msg("cannot obtain security context: %s", fname); | 52 | bb_error_msg("can't obtain security context: %s", fname); |
53 | goto skip; | 53 | goto skip; |
54 | } | 54 | } |
55 | 55 | ||
56 | if (file_context == NULL && specified_context == NULL) { | 56 | if (file_context == NULL && specified_context == NULL) { |
57 | bb_error_msg("cannot apply partial context to unlabeled file %s", fname); | 57 | bb_error_msg("can't apply partial context to unlabeled file %s", fname); |
58 | goto skip; | 58 | goto skip; |
59 | } | 59 | } |
60 | 60 | ||
@@ -62,7 +62,7 @@ static int FAST_FUNC change_filedir_context( | |||
62 | context = set_security_context_component(file_context, | 62 | context = set_security_context_component(file_context, |
63 | user, role, type, range); | 63 | user, role, type, range); |
64 | if (!context) { | 64 | if (!context) { |
65 | bb_error_msg("cannot compute security context from %s", file_context); | 65 | bb_error_msg("can't compute security context from %s", file_context); |
66 | goto skip; | 66 | goto skip; |
67 | } | 67 | } |
68 | } else { | 68 | } else { |
@@ -75,7 +75,7 @@ static int FAST_FUNC change_filedir_context( | |||
75 | 75 | ||
76 | context_string = context_str(context); | 76 | context_string = context_str(context); |
77 | if (!context_string) { | 77 | if (!context_string) { |
78 | bb_error_msg("cannot obtain security context in text expression"); | 78 | bb_error_msg("can't obtain security context in text expression"); |
79 | goto skip; | 79 | goto skip; |
80 | } | 80 | } |
81 | 81 | ||
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) | |||
25 | 25 | ||
26 | rc = security_get_boolean_names(&names, &len); | 26 | rc = security_get_boolean_names(&names, &len); |
27 | if (rc) | 27 | if (rc) |
28 | bb_perror_msg_and_die("cannot get boolean names"); | 28 | bb_perror_msg_and_die("can't get boolean names"); |
29 | 29 | ||
30 | if (!len) { | 30 | if (!len) { |
31 | puts("No booleans"); | 31 | 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, | |||
41 | security_context_t cur_context; | 41 | security_context_t cur_context; |
42 | 42 | ||
43 | if (getcon(&cur_context)) | 43 | if (getcon(&cur_context)) |
44 | bb_error_msg_and_die("cannot get current context"); | 44 | bb_error_msg_and_die("can't get current context"); |
45 | 45 | ||
46 | if (compute_trans) { | 46 | if (compute_trans) { |
47 | security_context_t file_context, new_context; | 47 | security_context_t file_context, new_context; |
48 | 48 | ||
49 | if (getfilecon(command, &file_context) < 0) | 49 | if (getfilecon(command, &file_context) < 0) |
50 | bb_error_msg_and_die("cannot retrieve attributes of '%s'", | 50 | bb_error_msg_and_die("can't retrieve attributes of '%s'", |
51 | command); | 51 | command); |
52 | if (security_compute_create(cur_context, file_context, | 52 | if (security_compute_create(cur_context, file_context, |
53 | SECCLASS_PROCESS, &new_context)) | 53 | SECCLASS_PROCESS, &new_context)) |