History log of /external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
974a9282b5bda74c221d0c998c949b1266e4efc5 29-Aug-2017 Guangwen Feng <fenggw-fnst@cn.fujitsu.com> syscalls/keyctl: Make use of lapi/keyctl.h

1.syscalls/keyctl02 and syscalls/keyctl03 make use of lapi/keyctl.h

2.syscalls/keyctl0* use keyutils.h fallback definition in lapi/keyctl.h
instead of raw syscall, thus we would test the keyutils library if the
header is present and these tests will not be disabled otherwise.

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c
a5bf5254ca94e0164af76d409224ea0764632d22 14-Mar-2017 Cyril Hrubis <chrubis@suse.cz> tst_test.c: set the test id automatically

Use the argv[0] to set the tst_test->tid automatically since we fail to
update it commonly and we end up with wrong tid due to copy&paste.

Now it's initialized in the test setup based on argv[0]. If argv[0] is a
path we take last element in it.

This patch is based on v1 by Li Wang but I've omitted moving the
parse_opts() up in the setup() since the setup() function expects
that tst_test sturcture is non-NULL and may segfault if that is not
true.

Signed-off-by: Li Wang <liwang@redhat.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Petr Vorel <pvorel@suse.cz>
/external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c
e252f8ef7313189af89c23bdf7c0bc927814a9f5 29-Mar-2017 Guangwen Feng <fenggw-fnst@cn.fujitsu.com> syscalls/keyctl02: Fix insufficiency of default key count quota

Adding and revoking keys rapidly in loops will take a significant
number of key count quota, because it takes time to free the
instantiated keys, so temporarily raise the quota when testing.

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c
c4b1781313acb9349753f1c23ffef16eecf33b68 15-Mar-2017 Cyril Hrubis <chrubis@suse.cz> keyctl02: Require root

Otherwise add_key() fails with EDQUOT sooner or later.

+ Print errno when add_key() fails

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c
91b515cae8cb954927e99a3732b2ee31bc4c15a2 03-Mar-2017 Guangwen Feng <fenggw-fnst@cn.fujitsu.com> syscalls/keyctl02: Add new regression test

Fixed by:
commit b4a1b4f5047e4f54e194681125c74c0aa64d637d
Author: David Howells <dhowells@redhat.com>
Date: Fri Dec 18 01:34:26 2015 +0000

KEYS: Fix race between read and revoke

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/keyctl/keyctl02.c