> Here is the patch to let tests send sigchld to unconfined_t. Without > this, the selinux testsuite hangs at selinux_task_create.sh. > > thanks, > -serge
Merged. Thanks. --Subrata > > From: Serge E. Hallyn <[EMAIL PROTECTED]> > Subject: selinux: let tests send sigchld to unconfined_t > > Let tests send sigchld to unconfined_t. Without this, the > selinux testsuite on Fedora 8 hangs at selinux_task_create.sh. > > Signed-off-by: Serge Hallyn <[EMAIL PROTECTED]> > --- > > diff -Nrup > ltp/testcases/kernel/security/selinux-testsuite/misc/sbin_deprecated.patch > ltp.new/testcases/kernel/security/selinux-testsuite/misc/sbin_deprecated.patch > --- > ltp/testcases/kernel/security/selinux-testsuite/misc/sbin_deprecated.patch > 2008-02-06 04:45:09.000000000 -0500 > +++ > ltp.new/testcases/kernel/security/selinux-testsuite/misc/sbin_deprecated.patch > 2008-02-06 07:07:46.000000000 -0500 > @@ -554,9 +554,9 @@ diff -Nrup refpolicy/test_open.te refpol > typeattribute test_append_t testdomain; > allow test_append_t test_open_file_t:file { getattr append }; > diff -Nrup refpolicy/test_policy.if refpolicy.patched/test_policy.if > ---- refpolicy/test_policy.if 2006-03-22 16:30:29.000000000 -0500 > -+++ refpolicy.patched/test_policy.if 2008-01-31 08:32:27.000000000 -0500 > -@@ -25,3 +25,17 @@ > +--- refpolicy/test_policy.if 2008-02-06 06:55:04.000000000 -0500 > ++++ refpolicy.patched/test_policy.if 2008-02-06 06:56:06.000000000 -0500 > +@@ -25,3 +25,18 @@ > ## Domain allowed to transition. > ## </param> > # > @@ -573,6 +573,7 @@ diff -Nrup refpolicy/test_policy.if refp > + allow $1 unconfined_t:fd use; > + allow $1 unconfined_devpts_t:chr_file { read write ioctl getattr }; > + allow $1 unconfined_t:fifo_file { read write ioctl getattr }; > ++ allow $1 unconfined_t:process { sigchld }; > +') > diff -Nrup refpolicy/test_ptrace.te refpolicy.patched/test_ptrace.te > --- refpolicy/test_ptrace.te 2006-03-27 11:55:48.000000000 -0500 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list