Skip to content

Commit 7a25c1a

Browse files
tests/mac_admin: skip another test on nfs
Skip another test of undefined label handling that is not guaranteed to work over labeled NFS and breaks if SELinux namespaces are enabled due to the global SID table correctly preserving the undefined context value, producing an error within NFSv4 for which no error handling path exists. Possibly consider disabling this entire set of tests. Signed-off-by: Stephen Smalley <[email protected]>
1 parent a9102fe commit 7a25c1a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/mac_admin/test

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ BEGIN {
1111
plan tests => 8;
1212
}
1313
else {
14-
plan tests => 7;
14+
plan tests => 6;
1515
}
1616
}
1717

@@ -49,12 +49,13 @@ if ( $isnfs ne "nfs" ) {
4949
`runcon -t test_mac_admin_t -- secon -t -f $basedir/test_dir 2>&1`;
5050
chomp($result);
5151
ok( $result, "UNDEFINED" );
52-
}
5352

54-
# Verify that test_no_mac_admin_t sees the unlabeled context.
55-
$result = `runcon -t test_no_mac_admin_t -- secon -t -f $basedir/test_dir 2>&1`;
56-
chomp($result);
57-
ok( $result, "unlabeled_t" );
53+
# Verify that test_no_mac_admin_t sees the unlabeled context.
54+
$result =
55+
`runcon -t test_no_mac_admin_t -- secon -t -f $basedir/test_dir 2>&1`;
56+
chomp($result);
57+
ok( $result, "unlabeled_t" );
58+
}
5859

5960
# Delete the test directory
6061
system("rm -rf $basedir/test_dir");

0 commit comments

Comments
 (0)