diff options
| author | David Howells <dhowells@redhat.com> | 2019-08-28 14:07:59 +0100 |
|---|---|---|
| committer | David Howells <dhowells@redhat.com> | 2020-07-06 21:23:25 +0100 |
| commit | 3153aa73f1a5eda24eec08901ed162e674c97543 (patch) | |
| tree | 1a64593cd5c5daadb18af3a0dd7e2d83cea76b49 /tests/toolbox.inc.sh | |
| parent | ad4fbd86e733255bc4146932b4c1bb461c2b4cc1 (diff) | |
| download | keyutils-next.tar.gz | |
test: Grant permissionsnext
Test permission granting using the internal ACL.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'tests/toolbox.inc.sh')
| -rw-r--r-- | tests/toolbox.inc.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh index 4af465f..c3c9f88 100644 --- a/tests/toolbox.inc.sh +++ b/tests/toolbox.inc.sh @@ -1422,8 +1422,14 @@ function grant_key_permit () echo keyctl grant "$@" >>$OUTPUTFILE keyctl grant "$@" >>$OUTPUTFILE 2>&1 - if [ $? != $my_exitval ] + e=$? + if [ $e = $my_exitval ] then + if [ $e = 0 ] + then + check_notify setattr $1 + fi + else failed fi } |
