From 2af5e3fac394a922bcf7752be25128879405a21a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 21 Feb 2018 20:13:39 +0100 Subject: libbb: compile capability code only if FEATURE_SETPRIV_CAPABILITIES or RUN_INIT Signed-off-by: Denys Vlasenko --- util-linux/switch_root.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'util-linux') diff --git a/util-linux/switch_root.c b/util-linux/switch_root.c index 2d1802b..947dd0c 100644 --- a/util-linux/switch_root.c +++ b/util-linux/switch_root.c @@ -39,6 +39,12 @@ #include #if ENABLE_RUN_INIT # include +# ifndef PR_CAPBSET_READ +# define PR_CAPBSET_READ 23 +# endif +# ifndef PR_CAPBSET_DROP +# define PR_CAPBSET_DROP 24 +# endif # include // #include // This header is in libcap, but the functions are in libc. -- cgit v1.1