From: Denys Vlasenko Date: Fri, 23 Dec 2016 12:52:13 +0000 (+0100) Subject: Selinux complains about deprecated selinux/flask.h, stop including it X-Git-Tag: 1_27_0~306 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ea0ebdd429fe761c1324176b1ac6017248366af;p=oweals%2Fbusybox.git Selinux complains about deprecated selinux/flask.h, stop including it Signed-off-by: Denys Vlasenko --- diff --git a/loginutils/login.c b/loginutils/login.c index 52abc1886..3ca8213bb 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -69,7 +69,9 @@ #if ENABLE_SELINUX # include /* for is_selinux_enabled() */ # include /* for get_default_context() */ -# include /* for security class definitions */ +# /* from deprecated : */ +# undef SECCLASS_CHR_FILE +# define SECCLASS_CHR_FILE 10 #endif #if ENABLE_PAM diff --git a/selinux/runcon.c b/selinux/runcon.c index 366834e46..16f171101 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c @@ -68,7 +68,9 @@ //usage: ) #include -#include +/* from deprecated : */ +#undef SECCLASS_PROCESS +#define SECCLASS_PROCESS 2 #include "libbb.h"