summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.cfg b/init.cfg
index 6a9b004ff..bf1887f8d 100644
--- a/init.cfg
+++ b/init.cfg
@@ -119,6 +119,15 @@ require_selinux_enforcing_()
|| skip_ "This test is useful only with SELinux in Enforcing mode."
}
+require_smack_()
+{
+ grep 'smackfs$' /proc/filesystems > /dev/null \
+ || skip_ "this system lacks SMACK support"
+
+ test "$(ls -Zd .)" != '? .' \
+ || skip_ "this file system lacks SMACK support"
+}
+
require_openat_support_()
{
# Skip this test if your system has neither the openat-style functions