Hi Subrata, When running the testcases/kernel/fs/proc/proc01 testcase, the /proc/self/*/attr/* read fails, if the selinux is not enabled. The function cap_getprocattr() is called when selinux is disabled, while reading the /proc/self/*/attr/* files and it returns -EINVAL, whereas if the selinux is enabled the read passes because the selinux equivalent selinux_getprocattr() is called.
proc01 0 INFO : /proc/self/task/15923/mem: read: known issue: Input/output error proc01 1 FAIL : /proc/self/task/15923/attr/current: read: Invalid argument proc01 2 FAIL : /proc/self/task/15923/attr/prev: read: Invalid argument proc01 3 FAIL : /proc/self/task/15923/attr/exec: read: Invalid argument proc01 4 FAIL : /proc/self/task/15923/attr/fscreate: read: Invalid argument proc01 5 FAIL : /proc/self/task/15923/attr/keycreate: read: Invalid argument proc01 6 FAIL : /proc/self/task/15923/attr/sockcreate: read: Invalid argument proc01 0 INFO : /proc/self/mem: read: known issue: Input/output error proc01 7 FAIL : /proc/self/attr/current: read: Invalid argument proc01 8 FAIL : /proc/self/attr/prev: read: Invalid argument proc01 9 FAIL : /proc/self/attr/exec: read: Invalid argument proc01 10 FAIL : /proc/self/attr/fscreate: read: Invalid argument proc01 11 FAIL : /proc/self/attr/keycreate: read: Invalid argument proc01 12 FAIL : /proc/self/attr/sockcreate: read: Invalid argument proc01 13 FAIL : readproc() failed with 12 errors. This patch added the /proc/self/*/attr/* to know_issue array, these arrary element could be called only when the read fails (when selinux is disabled). Signed-off-by: Kamalesh Babulal <kamal...@linux.vnet.ibm.com> --- testcases/kernel/fs/proc/proc01.c | 2 ++ 1 file changed, 2 insertions(+) Index: b/testcases/kernel/fs/proc/proc01.c =================================================================== --- a/testcases/kernel/fs/proc/proc01.c +++ b/testcases/kernel/fs/proc/proc01.c @@ -88,6 +88,8 @@ const Mapping known_issues[] = {"read", "/proc/xen/privcmd", EINVAL}, {"read", "/proc/self/mem", EIO}, {"read", "/proc/self/task/[0-9]*/mem", EIO}, + {"read", "/proc/self/attr/*", EINVAL}, + {"read", "/proc/self/task/[0-9]*/attr/*", EINVAL}, {"", "", 0} }; -- Thanks & Regards, Kamalesh Babulal, Linux Technology Center, IBM, ISTL. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list