aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-02-21 20:13:39 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-21 20:13:39 +0100
commit2af5e3fac394a922bcf7752be25128879405a21a (patch)
tree3566d0edc685776aa192686507a38411c51662c0 /include
parent7d285c78a35b1e745f7c6f27e31d73677ad2943a (diff)
downloadbusybox-w32-2af5e3fac394a922bcf7752be25128879405a21a.tar.gz
busybox-w32-2af5e3fac394a922bcf7752be25128879405a21a.tar.bz2
busybox-w32-2af5e3fac394a922bcf7752be25128879405a21a.zip
libbb: compile capability code only if FEATURE_SETPRIV_CAPABILITIES or RUN_INIT
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index c02621d94..f1ab1ca6f 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1488,6 +1488,7 @@ extern void run_shell(const char *shell, int loginshell, const char **args) NORE
1488 */ 1488 */
1489const char *get_shell_name(void) FAST_FUNC; 1489const char *get_shell_name(void) FAST_FUNC;
1490 1490
1491#if ENABLE_FEATURE_SETPRIV_CAPABILITIES || ENABLE_RUN_INIT
1491unsigned cap_name_to_number(const char *cap) FAST_FUNC; 1492unsigned cap_name_to_number(const char *cap) FAST_FUNC;
1492void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC; 1493void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC;
1493void drop_capability(int cap_ordinal) FAST_FUNC; 1494void drop_capability(int cap_ordinal) FAST_FUNC;
@@ -1499,9 +1500,7 @@ struct caps { \
1499 struct __user_cap_data_struct data[2]; \ 1500 struct __user_cap_data_struct data[2]; \
1500} 1501}
1501void getcaps(void *caps) FAST_FUNC; 1502void getcaps(void *caps) FAST_FUNC;
1502 1503#endif
1503unsigned cap_name_to_number(const char *name) FAST_FUNC;
1504void printf_cap(const char *pfx, unsigned cap_no) FAST_FUNC;
1505 1504
1506#if ENABLE_SELINUX 1505#if ENABLE_SELINUX
1507extern void renew_current_security_context(void) FAST_FUNC; 1506extern void renew_current_security_context(void) FAST_FUNC;