diff mbox series

[v3,17/19] matchpathcon: allow use of deprecated routines

Message ID 20200420154537.30879-18-william.c.roberts@intel.com (mailing list archive)
State Superseded
Headers show
Series [v3,01/19] security_load_booleans: update return comment | expand

Commit Message

William Roberts April 20, 2020, 3:45 p.m. UTC
From: William Roberts <william.c.roberts@intel.com>

Utility matchpathcon uses the matchpathcon interface which has been
deprectaed. However, this tool will continue to live on, so allow it to
use the deprecated interface.

Signed-off-by: William Roberts <william.c.roberts@intel.com>
---
 libselinux/utils/Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libselinux/utils/Makefile b/libselinux/utils/Makefile
index a5632b7c38ec..d66c333ec65a 100644
--- a/libselinux/utils/Makefile
+++ b/libselinux/utils/Makefile
@@ -58,6 +58,8 @@  sefcontext_compile: LDLIBS += $(PCRE_LDLIBS) ../src/libselinux.a -lsepol
 
 sefcontext_compile: sefcontext_compile.o ../src/regex.o
 
+matchpathcon: CFLAGS += -Wno-deprecated-declarations
+
 all: $(TARGETS)
 
 install: all