Selinux complains about deprecated selinux/flask.h, stop including it
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
1afa494fd1
commit
4ea0ebdd42
@ -69,7 +69,9 @@
|
|||||||
#if ENABLE_SELINUX
|
#if ENABLE_SELINUX
|
||||||
# include <selinux/selinux.h> /* for is_selinux_enabled() */
|
# include <selinux/selinux.h> /* for is_selinux_enabled() */
|
||||||
# include <selinux/get_context_list.h> /* for get_default_context() */
|
# include <selinux/get_context_list.h> /* for get_default_context() */
|
||||||
# include <selinux/flask.h> /* for security class definitions */
|
# /* from deprecated <selinux/flask.h>: */
|
||||||
|
# undef SECCLASS_CHR_FILE
|
||||||
|
# define SECCLASS_CHR_FILE 10
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_PAM
|
#if ENABLE_PAM
|
||||||
|
@ -68,7 +68,9 @@
|
|||||||
//usage: )
|
//usage: )
|
||||||
|
|
||||||
#include <selinux/context.h>
|
#include <selinux/context.h>
|
||||||
#include <selinux/flask.h>
|
/* from deprecated <selinux/flask.h>: */
|
||||||
|
#undef SECCLASS_PROCESS
|
||||||
|
#define SECCLASS_PROCESS 2
|
||||||
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user