[LTP] [PATCH v2] getrusage03: mlock all address space for process calling consume_mb

Cyril Hrubis chrubis@suse.cz
Wed Feb 16 10:54:09 CET 2022


Hi!
> --- a/testcases/kernel/syscalls/getrusage/getrusage03.c
> +++ b/testcases/kernel/syscalls/getrusage/getrusage03.c
> @@ -193,4 +193,8 @@ static struct tst_test test = {
>  	.setup = setup,
>  	.test = run,
>  	.tcnt = ARRAY_SIZE(testfunc_list),
> +	.caps = (struct tst_cap []) {
> +		TST_CAP(TST_CAP_REQ, CAP_IPC_LOCK),
> +		{}
> +	},
>  };

I wonder if we should start to track the capabilities like this instead
of the .needs_root approach. I guess that it may be useful to keep
things granular in the future.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list