[LTP] [PATCH] proc01: whitelist biba attr files returning EINVAL

Ming Wang wangming01@loongson.cn
Sat Apr 4 03:49:08 CEST 2026


proc01 already treats several attr files under /proc/self/attr and
/proc/self/task/*/attr as known exceptions that may return EINVAL
on read.

On systems exposing biba attr files, reads from
/proc/self/attr/biba/* and /proc/self/task/*/attr/biba/* also
return EINVAL, which makes proc01 report false failures.

Add both path patterns to known_issues[] so the testcase keeps
reporting real regressions while ignoring this expected behavior.

Signed-off-by: Ming Wang <wangming01@loongson.cn>
---
 testcases/kernel/fs/proc/proc01.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/fs/proc/proc01.c b/testcases/kernel/fs/proc/proc01.c
index c90e509a3243..dadfb240fd24 100644
--- a/testcases/kernel/fs/proc/proc01.c
+++ b/testcases/kernel/fs/proc/proc01.c
@@ -100,7 +100,9 @@ static const struct mapping known_issues[] = {
 	{"read", "/proc/self/attr/selinux/*", EINVAL},
 	{"read", "/proc/self/attr/smack/*", EINVAL},
 	{"read", "/proc/self/attr/apparmor/*", EINVAL},
+	{"read", "/proc/self/attr/biba/*", EINVAL},
 	{"read", "/proc/self/task/[0-9]*/attr/*", EINVAL},
+	{"read", "/proc/self/task/[0-9]*/attr/biba/*", EINVAL},
 	{"read", "/proc/self/task/[0-9]*/attr/smack/*", EINVAL},
 	{"read", "/proc/self/task/[0-9]*/attr/selinux/*", EINVAL},
 	{"read", "/proc/self/task/[0-9]*/attr/apparmor/*", EINVAL},
-- 
2.43.0



More information about the ltp mailing list