Linux Test Project
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] getrusage03: mlock all address space for process calling consume_mb
Date: Wed, 16 Feb 2022 10:54:09 +0100	[thread overview]
Message-ID: <YgzJwTxk7Lnf7uG+@rei> (raw)
In-Reply-To: <20220209085213.2882229-1-liwang@redhat.com>

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

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2022-02-16  9:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 13:24 [LTP] [PATCH] getrusage03: mlock the memory area in consume_mb Li Wang
2022-02-08 13:36 ` Li Wang
2022-02-09  8:52 ` [LTP] [PATCH v2] getrusage03: mlock all address space for process calling consume_mb Li Wang
2022-02-16  9:54   ` Cyril Hrubis [this message]
2022-02-17  6:59     ` Li Wang
2022-02-17 15:19       ` Cyril Hrubis
2022-02-21  1:57         ` Li Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YgzJwTxk7Lnf7uG+@rei \
    --to=chrubis@suse.cz \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox