Skip to contentSkip to conversation

proc01: whitelist biba attr files returning EINVAL

PATCH In review Ming Wang 2 participants 2 messages Apr 7 – Apr 10

lore
Share & tools
lore

Ming Wang

author
#0 lore raw

PATCH 1/1 proc01: whitelist biba attr files returning EINVAL

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.

---
 testcases/kernel/fs/proc/proc01.c | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/fs/proc/proc01.c +2 -0
index c90e509a3243..dadfb240fd24 100644
@@ -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},
Signature · 5 lines
2.43.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp