Re: [LTP] proc01 failures with selinux disabled

2009-01-23 Thread Stephen Smalley
On Fri, 2009-01-23 at 02:04 -0800, CAI Qian wrote: Hi, --- On Fri, 1/23/09, Kamalesh Babulal kamal...@linux.vnet.ibm.com wrote: From: Kamalesh Babulal kamal...@linux.vnet.ibm.com Subject: Re: [LTP] proc01 failures with selinux disabled To: ltp-l...@lists.sf.net Cc: caiq...@cclom.cn

Re: [LTP] proc01 failures with selinux disabled

2009-01-22 Thread Serge E. Hallyn
Quoting CAI Qian (caiq...@cclom.cn): Hi, --- On Thu, 1/22/09, Subrata Modak subr...@linux.vnet.ibm.com wrote: This approach will skip the failures that those entries return EINVAL while SELinux is enable. You can check if SELinux is enable or not, and then add then to something

Re: [LTP] proc01 failures with selinux disabled

2009-01-22 Thread CAI Qian
Hi, --- On Fri, 1/23/09, Serge E. Hallyn se...@us.ibm.com wrote: From: Serge E. Hallyn se...@us.ibm.com Subject: Re: [LTP] proc01 failures with selinux disabled To: CAI Qian caiq...@cclom.cn Cc: ltp-l...@lists.sf.net Date: Friday, January 23, 2009, 12:00 AM Quoting CAI Qian (caiq

Re: [LTP] proc01 failures with selinux disabled

2009-01-22 Thread Kamalesh Babulal
* CAI Qian caiq...@cclom.cn [2009-01-22 09:17:02]: Hi, --- On Fri, 1/23/09, Serge E. Hallyn se...@us.ibm.com wrote: From: Serge E. Hallyn se...@us.ibm.com Subject: Re: [LTP] proc01 failures with selinux disabled To: CAI Qian caiq...@cclom.cn Cc: ltp-l...@lists.sf.net Date

[LTP] proc01 failures with selinux disabled

2009-01-21 Thread Kamalesh Babulal
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

Re: [LTP] proc01 failures with selinux disabled

2009-01-21 Thread CAI Qian
Hi, --- On Thu, 1/22/09, Kamalesh Babulal kamal...@linux.vnet.ibm.com wrote: From: Kamalesh Babulal kamal...@linux.vnet.ibm.com Subject: [LTP] proc01 failures with selinux disabled To: ltp-l...@lists.sf.net Cc: aar...@linux.vnet.ibm.com Date: Thursday, January 22, 2009, 1:25 AM Hi Subrata