proc01: whitelist biba attr files returning EINVAL
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.
Signed-off-by Ming Wang <[email protected]>
--- testcases/kernel/fs/proc/proc01.c | 2 ++ 1 file changed, 2 insertions(+)
testcases/kernel/fs/proc/proc01.c +2 -0
@@ -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
Patch resent 2x, setting the same status as on the first one:
https://lore.kernel.org/ltp/[email protected]/
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp