diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-23 13:52:13 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-12-23 13:52:13 +0100 |
| commit | 4ea0ebdd429fe761c1324176b1ac6017248366af (patch) | |
| tree | 08a0ab4500cd483d105124e02a2eca38d979d47d | |
| parent | 1afa494fd131891e195ab11086ee52fce5c5f4b8 (diff) | |
| download | busybox-w32-4ea0ebdd429fe761c1324176b1ac6017248366af.tar.gz busybox-w32-4ea0ebdd429fe761c1324176b1ac6017248366af.tar.bz2 busybox-w32-4ea0ebdd429fe761c1324176b1ac6017248366af.zip | |
Selinux complains about deprecated selinux/flask.h, stop including it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | loginutils/login.c | 4 | ||||
| -rw-r--r-- | selinux/runcon.c | 4 |
2 files changed, 6 insertions, 2 deletions
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 @@ | |||
| 69 | #if ENABLE_SELINUX | 69 | #if ENABLE_SELINUX |
| 70 | # include <selinux/selinux.h> /* for is_selinux_enabled() */ | 70 | # include <selinux/selinux.h> /* for is_selinux_enabled() */ |
| 71 | # include <selinux/get_context_list.h> /* for get_default_context() */ | 71 | # include <selinux/get_context_list.h> /* for get_default_context() */ |
| 72 | # include <selinux/flask.h> /* for security class definitions */ | 72 | # /* from deprecated <selinux/flask.h>: */ |
| 73 | # undef SECCLASS_CHR_FILE | ||
| 74 | # define SECCLASS_CHR_FILE 10 | ||
| 73 | #endif | 75 | #endif |
| 74 | 76 | ||
| 75 | #if ENABLE_PAM | 77 | #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 @@ | |||
| 68 | //usage: ) | 68 | //usage: ) |
| 69 | 69 | ||
| 70 | #include <selinux/context.h> | 70 | #include <selinux/context.h> |
| 71 | #include <selinux/flask.h> | 71 | /* from deprecated <selinux/flask.h>: */ |
| 72 | #undef SECCLASS_PROCESS | ||
| 73 | #define SECCLASS_PROCESS 2 | ||
| 72 | 74 | ||
| 73 | #include "libbb.h" | 75 | #include "libbb.h" |
| 74 | 76 | ||
