Modified ssh03 to unset TCtmp. On a system running the latest selinux
mls policy the call to tst_setup in the cmdlib.sh script with the TCtmp
variable still set with the TEST_USER directory will result in the
directory being created with the context of the logged in user (i.e.
administrator running the test
...staff_u:object_r:home_root_t:SystemLow) when the useradd is run
afterwords the directory will already exist but the context of directory
/home/ssh_user3 should be
user_u:object_r:user_home_dir_t:SystemLow-SystemHigh. Now when the test
is run to ssh login with the valid password the test will fail due to
not being able to change to the user directory which is caused by a
mismatched context. The unset of TCtmp will prevent this. This does not
appear to be detrimental to systems running with a targeted policy and
should have no ill affect systems not running selinux, although a test
could be placed around the unset to determine if selinux is running and
the mls policy is in use.
Signed-off-by James Czyzak <[email protected]>
<mailto:[email protected]>
diff --git a/testcases/network/tcp_cmds/ssh/ssh03
b/testcases/network/tcp_cmds/s
index 8fbca34..a75032c 100755
--- a/testcases/network/tcp_cmds/ssh/ssh03
+++ b/testcases/network/tcp_cmds/ssh/ssh03
@@ -42,7 +42,7 @@ do_setup()
TCtmp=/home/$TEST_USER
rm -Rf $TCtmp
-
+ unset TCtmp
tst_setup
exists expect ssh ssh03_s1 useradd userdel
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list