anolis-glibc/glibc-rh1505492-selinux.patch
zhangbinchen ff0128648f import glibc-2.17-292.el7.src.rpm
Signed-off-by: zhangbinchen <zhangbinchen@openanolis.org>
2021-08-21 12:40:25 +08:00

18 lines
573 B
Diff

Remove unnecessary #include directives to avoid #warning directives from
SELinux headers. Further cleanup after glibc-rh1025934.patch. Handled
upstream as part of the original commit.
diff --git a/nscd/selinux.c b/nscd/selinux.c
index 2bf4d1a66a9623b5..24b554765264ae63 100644
--- a/nscd/selinux.c
+++ b/nscd/selinux.c
@@ -28,9 +28,7 @@
#include <syslog.h>
#include <unistd.h>
#include <sys/prctl.h>
-#include <selinux/av_permissions.h>
#include <selinux/avc.h>
-#include <selinux/flask.h>
#include <selinux/selinux.h>
#ifdef HAVE_LIBAUDIT
# include <libaudit.h>