* [LTP] [PATCH] acls: Solve a problem from acl_test01 @ 2015-07-09 7:27 Wentao Ma 2015-07-13 6:56 ` Wanlong Gao 0 siblings, 1 reply; 7+ messages in thread From: Wentao Ma @ 2015-07-09 7:27 UTC (permalink / raw) To: ltp-list; +Cc: wunan The failed infornamtion is as follow: useradd: cannot set SELinux context for home directory /tmp/tacl/mount-ext3/acltest1 this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". But this directory is needed by next step. So create this driectory again. Signed-off-by: Wentao Ma <mawentao@inspur.com> --- testcases/kernel/fs/acls/acl_test01 | 1 + 1 file changed, 1 insertion(+) diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 index 328ff74..d079abd 100755 --- a/testcases/kernel/fs/acls/acl_test01 +++ b/testcases/kernel/fs/acls/acl_test01 @@ -87,6 +87,7 @@ do_setup(){ rm -rf $TEST_USER1_HOMEDIR userdel $TEST_USER1 > /dev/null 2>&1 sleep 1 + mkdir -p $TEST_USER1_HOMEDIR useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh if [ $? -ne 0 ]; then -- 1.8.3.1 ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-09 7:27 [LTP] [PATCH] acls: Solve a problem from acl_test01 Wentao Ma @ 2015-07-13 6:56 ` Wanlong Gao 2015-07-13 8:33 ` mawentao 2015-07-13 8:45 ` Jan Stancek 0 siblings, 2 replies; 7+ messages in thread From: Wanlong Gao @ 2015-07-13 6:56 UTC (permalink / raw) To: Wentao Ma, ltp-list; +Cc: wunan On 07/09/2015 03:27 PM, Wentao Ma wrote: > The failed infornamtion is as follow: > useradd: cannot set SELinux context for > home directory /tmp/tacl/mount-ext3/acltest1 It seems that the error is caused by SELinux, please disable your SELinux or set it to permissive and test again. Thanks, Wanlong Gao > > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". > But this directory is needed by next step. > So create this driectory again. > > Signed-off-by: Wentao Ma <mawentao@inspur.com> > --- > testcases/kernel/fs/acls/acl_test01 | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 > index 328ff74..d079abd 100755 > --- a/testcases/kernel/fs/acls/acl_test01 > +++ b/testcases/kernel/fs/acls/acl_test01 > @@ -87,6 +87,7 @@ do_setup(){ > rm -rf $TEST_USER1_HOMEDIR > userdel $TEST_USER1 > /dev/null 2>&1 > sleep 1 > + mkdir -p $TEST_USER1_HOMEDIR > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh > > if [ $? -ne 0 ]; then > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-13 6:56 ` Wanlong Gao @ 2015-07-13 8:33 ` mawentao 2015-07-13 8:37 ` Wanlong Gao 2015-07-13 8:45 ` Jan Stancek 1 sibling, 1 reply; 7+ messages in thread From: mawentao @ 2015-07-13 8:33 UTC (permalink / raw) To: Wanlong Gao, ltp-list@lists.sourceforge.net; +Cc: wunan@inspur.com [-- Attachment #1.1: Type: text/plain, Size: 2451 bytes --] Thanks Wanlong Gao, we set the SELinux mode to permissive and the test passes. the error is caused by the SELinux, finally we modify the patch. > The failed infornamtion is as follow: > useradd: cannot set SELinux context for > home directory /tmp/tacl/mount-ext3/acltest1 > > this is caused by SELinux, the SELinux mode is enforcing > set the mode to permissive before adding user acl_test1 > then set it to the default mode enforcing. > > Signed-off-by: Wentao Ma <mawentao@inspur.com> > --- > testcases/kernel/fs/acls/acl_test01 | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 > index 328ff74..e38e39b 100755 > --- a/testcases/kernel/fs/acls/acl_test01 > +++ b/testcases/kernel/fs/acls/acl_test01 > @@ -87,7 +87,9 @@ do_setup(){ > rm -rf $TEST_USER1_HOMEDIR > userdel $TEST_USER1 > /dev/null 2>&1 > sleep 1 > + setenforce 0 > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh > + setenforce 1 > > if [ $? -ne 0 ]; then > tst_brkm TBROK "Could not add test user $TEST_USER1." mawentao@inspur.com From: Wanlong Gao Date: 2015-07-13 14:56 To: Wentao Ma; ltp-list@lists.sourceforge.net CC: wunan@inspur.com Subject: Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 On 07/09/2015 03:27 PM, Wentao Ma wrote: > The failed infornamtion is as follow: > useradd: cannot set SELinux context for > home directory /tmp/tacl/mount-ext3/acltest1 It seems that the error is caused by SELinux, please disable your SELinux or set it to permissive and test again. Thanks, Wanlong Gao > > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". > But this directory is needed by next step. > So create this driectory again. > > Signed-off-by: Wentao Ma <mawentao@inspur.com> > --- > testcases/kernel/fs/acls/acl_test01 | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 > index 328ff74..d079abd 100755 > --- a/testcases/kernel/fs/acls/acl_test01 > +++ b/testcases/kernel/fs/acls/acl_test01 > @@ -87,6 +87,7 @@ do_setup(){ > rm -rf $TEST_USER1_HOMEDIR > userdel $TEST_USER1 > /dev/null 2>&1 > sleep 1 > + mkdir -p $TEST_USER1_HOMEDIR > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh > > if [ $? -ne 0 ]; then > [-- Attachment #1.2: Type: text/html, Size: 7652 bytes --] [-- Attachment #2: Type: text/plain, Size: 351 bytes --] ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ [-- Attachment #3: Type: text/plain, Size: 155 bytes --] _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-13 8:33 ` mawentao @ 2015-07-13 8:37 ` Wanlong Gao 2015-07-13 8:45 ` yanxiaofeng 0 siblings, 1 reply; 7+ messages in thread From: Wanlong Gao @ 2015-07-13 8:37 UTC (permalink / raw) To: mawentao@inspur.com; +Cc: ltp-list@lists.sourceforge.net, wunan@inspur.com On 07/13/2015 04:33 PM, mawentao@inspur.com wrote: > Thanks Wanlong Gao, we set the SELinux mode to permissive and the test passes. > the error is caused by the SELinux, finally we modify the patch. Nope, SELinux setup should do before you running LTP. Since SELinux is not supported by all of the distributions, we assume that it is disabled by yourself before running LTP. Thanks, Wanlong Gao > > >> The failed infornamtion is as follow: >> useradd: cannot set SELinux context for >> home directory /tmp/tacl/mount-ext3/acltest1 >> >> this is caused by SELinux, the SELinux mode is enforcing >> set the mode to permissive before adding user acl_test1 >> then set it to the default mode enforcing. >> >> Signed-off-by: Wentao Ma <mawentao@inspur.com> >> --- >> testcases/kernel/fs/acls/acl_test01 | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 >> index 328ff74..e38e39b 100755 >> --- a/testcases/kernel/fs/acls/acl_test01 >> +++ b/testcases/kernel/fs/acls/acl_test01 >> @@ -87,7 +87,9 @@ do_setup(){ >> rm -rf $TEST_USER1_HOMEDIR >> userdel $TEST_USER1 > /dev/null 2>&1 >> sleep 1 >> + setenforce 0 >> useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh >> + setenforce 1 >> >> if [ $? -ne 0 ]; then >> tst_brkm TBROK "Could not add test user $TEST_USER1." > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > mawentao@inspur.com > > > *From:* Wanlong Gao <mailto:gaowanlong@cn.fujitsu.com> > *Date:* 2015-07-13 14:56 > *To:* Wentao Ma <mailto:mawentao@inspur.com>; ltp-list@lists.sourceforge.net <mailto:ltp-list@lists.sourceforge.net> > *CC:* wunan@inspur.com <mailto:wunan@inspur.com> > *Subject:* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 > On 07/09/2015 03:27 PM, Wentao Ma wrote: > > The failed infornamtion is as follow: > > useradd: cannot set SELinux context for > > home directory /tmp/tacl/mount-ext3/acltest1 > > It seems that the error is caused by SELinux, please disable > your SELinux or set it to permissive and test again. > > Thanks, > Wanlong Gao > > > > > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". > > But this directory is needed by next step. > > So create this driectory again. > > > > Signed-off-by: Wentao Ma <mawentao@inspur.com> > > --- > > testcases/kernel/fs/acls/acl_test01 | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 > > index 328ff74..d079abd 100755 > > --- a/testcases/kernel/fs/acls/acl_test01 > > +++ b/testcases/kernel/fs/acls/acl_test01 > > @@ -87,6 +87,7 @@ do_setup(){ > > rm -rf $TEST_USER1_HOMEDIR > > userdel $TEST_USER1 > /dev/null 2>&1 > > sleep 1 > > + mkdir -p $TEST_USER1_HOMEDIR > > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh > > > > if [ $? -ne 0 ]; then > > > > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-13 8:37 ` Wanlong Gao @ 2015-07-13 8:45 ` yanxiaofeng 2015-07-13 9:36 ` xcf733520 0 siblings, 1 reply; 7+ messages in thread From: yanxiaofeng @ 2015-07-13 8:45 UTC (permalink / raw) To: Wanlong Gao, mawentao@inspur.com Cc: ltp-list@lists.sourceforge.net, wunan@inspur.com 在 2015年07月13日 16:37, Wanlong Gao 写道: > On 07/13/2015 04:33 PM, mawentao@inspur.com wrote: >> Thanks Wanlong Gao, we set the SELinux mode to permissive and the test passes. >> the error is caused by the SELinux, finally we modify the patch. > Nope, SELinux setup should do before you running LTP. Since SELinux is not > supported by all of the distributions, we assume that it is disabled by yourself > before running LTP. Hi wanlong, Can we judge whether SElinex is enabled or not ? and if enabled , we can disable selinux in script. What do youthinkabout thisone? Thanks Yan > Thanks, > Wanlong Gao > > > >> >>> The failed infornamtion is as follow: >>> useradd: cannot set SELinux context for >>> home directory /tmp/tacl/mount-ext3/acltest1 >>> >>> this is caused by SELinux, the SELinux mode is enforcing >>> set the mode to permissive before adding user acl_test1 >>> then set it to the default mode enforcing. >>> >>> Signed-off-by: Wentao Ma <mawentao@inspur.com> >>> --- >>> testcases/kernel/fs/acls/acl_test01 | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 >>> index 328ff74..e38e39b 100755 >>> --- a/testcases/kernel/fs/acls/acl_test01 >>> +++ b/testcases/kernel/fs/acls/acl_test01 >>> @@ -87,7 +87,9 @@ do_setup(){ >>> rm -rf $TEST_USER1_HOMEDIR >>> userdel $TEST_USER1 > /dev/null 2>&1 >>> sleep 1 >>> + setenforce 0 >>> useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh >>> + setenforce 1 >>> >>> if [ $? -ne 0 ]; then >>> tst_brkm TBROK "Could not add test user $TEST_USER1." >> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > -- >> mawentao@inspur.com >> >> >> *From:* Wanlong Gao <mailto:gaowanlong@cn.fujitsu.com> >> *Date:* 2015-07-13 14:56 >> *To:* Wentao Ma <mailto:mawentao@inspur.com>; ltp-list@lists.sourceforge.net <mailto:ltp-list@lists.sourceforge.net> >> *CC:* wunan@inspur.com <mailto:wunan@inspur.com> >> *Subject:* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 >> On 07/09/2015 03:27 PM, Wentao Ma wrote: >> > The failed infornamtion is as follow: >> > useradd: cannot set SELinux context for >> > home directory /tmp/tacl/mount-ext3/acltest1 >> >> It seems that the error is caused by SELinux, please disable >> your SELinux or set it to permissive and test again. >> >> Thanks, >> Wanlong Gao >> >> > >> > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". >> > But this directory is needed by next step. >> > So create this driectory again. >> > >> > Signed-off-by: Wentao Ma <mawentao@inspur.com> >> > --- >> > testcases/kernel/fs/acls/acl_test01 | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 >> > index 328ff74..d079abd 100755 >> > --- a/testcases/kernel/fs/acls/acl_test01 >> > +++ b/testcases/kernel/fs/acls/acl_test01 >> > @@ -87,6 +87,7 @@ do_setup(){ >> > rm -rf $TEST_USER1_HOMEDIR >> > userdel $TEST_USER1 > /dev/null 2>&1 >> > sleep 1 >> > + mkdir -p $TEST_USER1_HOMEDIR >> > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh >> > >> > if [ $? -ne 0 ]; then >> > >> >> > . > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-13 8:45 ` yanxiaofeng @ 2015-07-13 9:36 ` xcf733520 0 siblings, 0 replies; 7+ messages in thread From: xcf733520 @ 2015-07-13 9:36 UTC (permalink / raw) To: yanxiaofeng; +Cc: ltp-list@lists.sourceforge.net, wunan@inspur.com Hi Yan, Do you want to check SElinux status? You can view the file (/etc/selinux/config). You can disable selinux via setenfore 0 or modify the config file on test OS. -------------- xcf733520 > > >在 2015年07月13日 16:37, Wanlong Gao 写道: >> On 07/13/2015 04:33 PM, mawentao@inspur.com wrote: >>> Thanks Wanlong Gao, we set the SELinux mode to permissive and the test passes. >>> the error is caused by the SELinux, finally we modify the patch. >> Nope, SELinux setup should do before you running LTP. Since SELinux is not >> supported by all of the distributions, we assume that it is disabled by yourself >> before running LTP. >Hi wanlong, > >Can we judge whether SElinex is enabled or not ? and if enabled , we can >disable selinux in script. >What do youthinkabout thisone? > >Thanks >Yan > > >> Thanks, >> Wanlong Gao >> >> >> >>> >>>> The failed infornamtion is as follow: >>>> useradd: cannot set SELinux context for >>>> home directory /tmp/tacl/mount-ext3/acltest1 >>>> >>>> this is caused by SELinux, the SELinux mode is enforcing >>>> set the mode to permissive before adding user acl_test1 >>>> then set it to the default mode enforcing. >>>> >>>> Signed-off-by: Wentao Ma <mawentao@inspur.com> >>>> --- >>>> testcases/kernel/fs/acls/acl_test01 | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 >>>> index 328ff74..e38e39b 100755 >>>> --- a/testcases/kernel/fs/acls/acl_test01 >>>> +++ b/testcases/kernel/fs/acls/acl_test01 >>>> @@ -87,7 +87,9 @@ do_setup(){ >>>> rm -rf $TEST_USER1_HOMEDIR >>>> userdel $TEST_USER1 > /dev/null 2>&1 >>>> sleep 1 >>>> + setenforce 0 >>>> useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh >>>> + setenforce 1 >>>> >>>> if [ $? -ne 0 ]; then >>>> tst_brkm TBROK "Could not add test user $TEST_USER1." >>> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- >> -- >>> mawentao@inspur.com >>> >>> >>> *From:* Wanlong Gao <mailto:gaowanlong@cn.fujitsu.com> >>> *Date:* 2015-07-13 14:56 >>> *To:* Wentao Ma <mailto:mawentao@inspur.com>; ltp-list@lists.sourceforge.net <mailto:ltp-list@lists.sourceforge.net> >>> *CC:* wunan@inspur.com <mailto:wunan@inspur.com> >>> *Subject:* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 >>> On 07/09/2015 03:27 PM, Wentao Ma wrote: >>> > The failed infornamtion is as follow: >>> > useradd: cannot set SELinux context for >>> > home directory /tmp/tacl/mount-ext3/acltest1 >>> >>> It seems that the error is caused by SELinux, please disable >>> your SELinux or set it to permissive and test again. >>> >>> Thanks, >>> Wanlong Gao >>> >>> > >>> > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". >>> > But this directory is needed by next step. >>> > So create this driectory again. >>> > >>> > Signed-off-by: Wentao Ma <mawentao@inspur.com> >>> > --- >>> > testcases/kernel/fs/acls/acl_test01 | 1 + >>> > 1 file changed, 1 insertion(+) >>> > >>> > diff --git a/testcases/kernel/fs/acls/acl_test01 b/testcases/kernel/fs/acls/acl_test01 >>> > index 328ff74..d079abd 100755 >>> > --- a/testcases/kernel/fs/acls/acl_test01 >>> > +++ b/testcases/kernel/fs/acls/acl_test01 >>> > @@ -87,6 +87,7 @@ do_setup(){ >>> > rm -rf $TEST_USER1_HOMEDIR >>> > userdel $TEST_USER1 > /dev/null 2>&1 >>> > sleep 1 >>> > + mkdir -p $TEST_USER1_HOMEDIR >>> > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s /bin/sh >>> > >>> > if [ $? -ne 0 ]; then >>> > >>> >>> >> . >> > > > >------------------------------------------------------------------------------ >Don't Limit Your Business. Reach for the Cloud. >GigeNET's Cloud Solutions provide you with the tools and support that >you need to offload your IT needs and focus on growing your business. >Configured For All Businesses. Start Your Cloud Today. >https://www.gigenetcloud.com/ >_______________________________________________ >Ltp-list mailing list >Ltp-list@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 2015-07-13 6:56 ` Wanlong Gao 2015-07-13 8:33 ` mawentao @ 2015-07-13 8:45 ` Jan Stancek 1 sibling, 0 replies; 7+ messages in thread From: Jan Stancek @ 2015-07-13 8:45 UTC (permalink / raw) To: Wanlong Gao, Wentao Ma, wunan; +Cc: ltp-list ----- Original Message ----- > From: "Wanlong Gao" <gaowanlong@cn.fujitsu.com> > To: "Wentao Ma" <mawentao@inspur.com>, ltp-list@lists.sourceforge.net > Cc: wunan@inspur.com > Sent: Monday, 13 July, 2015 8:56:15 AM > Subject: Re: [LTP] [PATCH] acls: Solve a problem from acl_test01 > > On 07/09/2015 03:27 PM, Wentao Ma wrote: > > The failed infornamtion is as follow: > > useradd: cannot set SELinux context for > > home directory /tmp/tacl/mount-ext3/acltest1 > > It seems that the error is caused by SELinux, please disable > your SELinux or set it to permissive and test again. I thought this was fixed already: https://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg20602.html https://github.com/linux-test-project/ltp/commit/20cc1d9ef4b23f73acd68f23988ea73e1185c996 Does your LTP contain the commit above? Regards, Jan > > Thanks, > Wanlong Gao > > > > > this is caused by comand "rm -rf $TEST_USER1_HOMEDIR". > > But this directory is needed by next step. > > So create this driectory again. > > > > Signed-off-by: Wentao Ma <mawentao@inspur.com> > > --- > > testcases/kernel/fs/acls/acl_test01 | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/testcases/kernel/fs/acls/acl_test01 > > b/testcases/kernel/fs/acls/acl_test01 > > index 328ff74..d079abd 100755 > > --- a/testcases/kernel/fs/acls/acl_test01 > > +++ b/testcases/kernel/fs/acls/acl_test01 > > @@ -87,6 +87,7 @@ do_setup(){ > > rm -rf $TEST_USER1_HOMEDIR > > userdel $TEST_USER1 > /dev/null 2>&1 > > sleep 1 > > + mkdir -p $TEST_USER1_HOMEDIR > > useradd -d $TEST_USER1_HOMEDIR -m -g $TEST_USER1_GROUP $TEST_USER1 -s > > /bin/sh > > > > if [ $? -ne 0 ]; then > > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list > ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-07-13 9:38 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-07-09 7:27 [LTP] [PATCH] acls: Solve a problem from acl_test01 Wentao Ma 2015-07-13 6:56 ` Wanlong Gao 2015-07-13 8:33 ` mawentao 2015-07-13 8:37 ` Wanlong Gao 2015-07-13 8:45 ` yanxiaofeng 2015-07-13 9:36 ` xcf733520 2015-07-13 8:45 ` Jan Stancek
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox