Skip to content

Commit 1ee3b8b

Browse files
WOnder93stephensmalley
authored andcommitted
tests/module_load: fix the location of "2>&1"
It shoudln't be used in the inner shell invocation, but rather in the outer one. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
1 parent b80b05d commit 1ee3b8b

File tree

1 file changed

+1
-1
lines changed
  • tests/module_load

1 file changed

+1
-1
lines changed

tests/module_load/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ qq(runcon -t test_policy_allow_policy_load_t sh -c "echo '/tmp/test_ima_policy'
121121

122122
# Deny system { policy_load } - EACCES
123123
$result = system
124-
qq(runcon -t test_policy_deny_policy_load_t sh -c "echo '/tmp/test_ima_policy' > /sys/kernel/security/ima/policy 2>&1");
124+
qq(runcon -t test_policy_deny_policy_load_t sh -c "echo '/tmp/test_ima_policy' > /sys/kernel/security/ima/policy" 2>&1);
125125
ok( $result >> 8 eq 1 );
126126

127127
system("rm -f /tmp/test_ima_policy");

0 commit comments

Comments
 (0)