public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] Current state of the selinux tests in ltp-full-20100831
       [not found] <1229185166.1336871286396286678.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
@ 2010-10-06 20:31 ` Jeffrey Burke
  2010-10-06 20:59   ` Serge E. Hallyn
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Burke @ 2010-10-06 20:31 UTC (permalink / raw)
  To: ltp-list; +Cc: sds

Folks,
 It has been a while since I update LTP for selinux testing. I am currently trying to use ltp-full-20100831 on RHEL5.6. I don't believe the procedure has changed at least according to the README. But here are the steps I followed.

1.) tar -xvf ltp-full-20100831.tar
2.) pushd ltp-full-20100831; ./configure; popd
3.) make -C ltp-full-20100831 all
4.) make -C ltp-full-20100831 install
5.) pushd; make ltp-full-20100831/testcases/kernel/security/selinux-testsuite/tests; popd
6.) pushd ltp-full-20100831/testcases/kernel/security/selinux-testsuite/tests; make install; popd
7.) cd ./ltp-full-20100831
8.) ./testscripts/test_selinux.sh

Here is the error:
# ./testscripts/test_selinux.sh 
Running with security context=root:system_r:unconfined_t:SystemLow-SystemHigh
allow_domain_fd_use --> off
allow_domain_fd_use exists setting
Installing test_policy module...
semodule:  Could not read file '/mnt/tests/kernel/distribution/ltp/20100831/ltp-full-20100831/testcases/kernel/security/selinux-testsuite/refpolicy/test_policy.pp': No such file or directory
Failed to install test_policy module, aborting test run.

Is anyone using this version on RHEL5 successfully?
Am I missing an important step that will allow us to use the test_selinux.sh in this LTP version?

I did see the thread:
http://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg10290.html
Using the GIT version and following these steps:
 - git clone git://git.kernel.org/pub/scm/tests/selinux-testsuite
 - make -C policy load
 - make -C tests test
 - make -C policy unload
Does work fine.

Thanks in advance.
Jeff

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] Current state of the selinux tests in ltp-full-20100831
  2010-10-06 20:31 ` [LTP] Current state of the selinux tests in ltp-full-20100831 Jeffrey Burke
@ 2010-10-06 20:59   ` Serge E. Hallyn
  0 siblings, 0 replies; 2+ messages in thread
From: Serge E. Hallyn @ 2010-10-06 20:59 UTC (permalink / raw)
  To: Jeffrey Burke; +Cc: ltp-list, sds

Quoting Jeffrey Burke (jburke@redhat.com):
> Folks,
>  It has been a while since I update LTP for selinux testing. I am currently trying to use ltp-full-20100831 on RHEL5.6. I don't believe the procedure has changed at least according to the README. But here are the steps I followed.
> 
> 1.) tar -xvf ltp-full-20100831.tar
> 2.) pushd ltp-full-20100831; ./configure; popd
> 3.) make -C ltp-full-20100831 all
> 4.) make -C ltp-full-20100831 install
> 5.) pushd; make ltp-full-20100831/testcases/kernel/security/selinux-testsuite/tests; popd
> 6.) pushd ltp-full-20100831/testcases/kernel/security/selinux-testsuite/tests; make install; popd

I don't have ltp source in front of me, but I think there are two
problems here.  The first is that you don't make policy, as you do
below with the kernel.org git tree.

> 7.) cd ./ltp-full-20100831
> 8.) ./testscripts/test_selinux.sh

The second is that you're executing the test out of the source dir.  LTP
now runs out of /opt/ltp.  I *think* the same is also true for the selinux
testsuite.

So can you do:

	pushd ltp-full-20100831/testcases/kernel/security/selinux-testsuite/policy
	make && make install
	popd
	cd /opt/ltp
	./testscripts/test_selinux.sh

?

-serge

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-06 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1229185166.1336871286396286678.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2010-10-06 20:31 ` [LTP] Current state of the selinux tests in ltp-full-20100831 Jeffrey Burke
2010-10-06 20:59   ` Serge E. Hallyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox