summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/libselinux.c6
-rwxr-xr-xconfig/pkgconf.sh3
2 files changed, 9 insertions, 0 deletions
diff --git a/config/libselinux.c b/config/libselinux.c
new file mode 100644
index 0000000..72f5d33
--- /dev/null
+++ b/config/libselinux.c
@@ -0,0 +1,6 @@
+#include <selinux/selinux.h>
+
+int main(void) {
+ freecon(0);
+ return 0;
+}
diff --git a/config/pkgconf.sh b/config/pkgconf.sh
index 070fad6..286c19c 100755
--- a/config/pkgconf.sh
+++ b/config/pkgconf.sh
@@ -37,6 +37,9 @@ else
libcap)
LDLIB=-lcap
;;
+ libselinux)
+ LDLIB=-lselinux
+ ;;
liburing)
LDLIB=-luring
;;