[PATCH testsuite] tests/lockdown: use /sys/kernel/debug/fault_around_bytes for integrity test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



/sys/kernel/debug/sched_features has been moved/removed in kernel 5.13,
so use /sys/kernel/debug/fault_around_bytes instead, which will
hopefully be more stable.

Fixes: de8246f5c853 ("lockdown: use debugfs/tracefs to test lockdown permissions")
Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx>
---
 tests/lockdown/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/lockdown/test b/tests/lockdown/test
index 6694a4c..a86c988 100755
--- a/tests/lockdown/test
+++ b/tests/lockdown/test
@@ -3,7 +3,7 @@
 use Test;
 BEGIN { plan tests => 8 }
 
-$integrity_cmd       = "head -c 1 /sys/kernel/debug/sched_features";
+$integrity_cmd       = "head -c 1 /sys/kernel/debug/fault_around_bytes";
 $confidentiality_cmd = "head -c 1 /sys/kernel/debug/tracing/tracing_on";
 
 # everything is allowed
-- 
2.30.2




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux