diff options
Diffstat (limited to 'util-linux/setpriv.c')
-rw-r--r-- | util-linux/setpriv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/setpriv.c b/util-linux/setpriv.c index b69b8cbb6..e5cf96957 100644 --- a/util-linux/setpriv.c +++ b/util-linux/setpriv.c | |||
@@ -164,7 +164,7 @@ static void set_inh_caps(char *capstring) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | if (capset(&caps.header, caps.data) != 0) | 166 | if (capset(&caps.header, caps.data) != 0) |
167 | bb_perror_msg_and_die("capset"); | 167 | bb_simple_perror_msg_and_die("capset"); |
168 | } | 168 | } |
169 | 169 | ||
170 | static void set_ambient_caps(char *string) | 170 | static void set_ambient_caps(char *string) |
@@ -178,10 +178,10 @@ static void set_ambient_caps(char *string) | |||
178 | idx = parse_cap(cap); | 178 | idx = parse_cap(cap); |
179 | if (cap[0] == '+') { | 179 | if (cap[0] == '+') { |
180 | if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, idx, 0, 0) < 0) | 180 | if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, idx, 0, 0) < 0) |
181 | bb_perror_msg("cap_ambient_raise"); | 181 | bb_simple_perror_msg("cap_ambient_raise"); |
182 | } else { | 182 | } else { |
183 | if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, idx, 0, 0) < 0) | 183 | if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, idx, 0, 0) < 0) |
184 | bb_perror_msg("cap_ambient_lower"); | 184 | bb_simple_perror_msg("cap_ambient_lower"); |
185 | } | 185 | } |
186 | cap = strtok(NULL, ","); | 186 | cap = strtok(NULL, ","); |
187 | } | 187 | } |
@@ -236,7 +236,7 @@ static int dump(void) | |||
236 | unsigned idx = CAP_TO_INDEX(i); | 236 | unsigned idx = CAP_TO_INDEX(i); |
237 | if (idx >= caps.u32s) { | 237 | if (idx >= caps.u32s) { |
238 | printf("\nindex: %u u32s: %u capability: %u\n", idx, caps.u32s, i); | 238 | printf("\nindex: %u u32s: %u capability: %u\n", idx, caps.u32s, i); |
239 | bb_error_msg_and_die("unsupported capability"); | 239 | bb_simple_error_msg_and_die("unsupported capability"); |
240 | } | 240 | } |
241 | if (caps.data[idx].inheritable & CAP_TO_MASK(i)) { | 241 | if (caps.data[idx].inheritable & CAP_TO_MASK(i)) { |
242 | printf_cap(fmt, i); | 242 | printf_cap(fmt, i); |