From: Antonio Argenziano <antonio.argenziano@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, igt-dev@lists.freedesktop.org
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] igt/gem_exec_params: Drop drm master privileges only on drm master fds
Date: Wed, 31 Jan 2018 13:21:23 -0800 [thread overview]
Message-ID: <b00a32fb-b0bc-8dbc-c9ae-775ce7a73758@intel.com> (raw)
In-Reply-To: <151743285379.13929.10650919310387095806@mail.alporthouse.com>
On 31/01/18 13:07, Chris Wilson wrote:
> Quoting Chris Wilson (2018-01-31 20:52:45)
>> Quoting Antonio Argenziano (2018-01-31 19:39:01)
>>> Subtest 'secure-non-master' tries to drop drm-master privileges on a
>>> non drm-master fd. Instead drop master privileges after the subtest
>>> acquires it so that other subtests are not affected by it.
>>>
>>> Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
>>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>>> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
>>> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
>>> ---
>>> tests/gem_exec_params.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c
>>> index e1c48b40..dbd89e7c 100644
>>> --- a/tests/gem_exec_params.c
>>> +++ b/tests/gem_exec_params.c
>>> @@ -343,13 +343,13 @@ igt_main
>>> }
>>>
>>> igt_subtest("secure-non-master") {
>>
>> igt_require(iamroot());
>>
>>> - igt_device_drop_master(fd);
>
> Or maybe:
> igt_require(__igt_device_set_master(fd)); /* requires root privilege */
> igt_device_drop_master(fd);
> ?
Yep, which is very similar to opening a local fd as master.
Thanks,
Antonio
>
> To verify we can obtain DRM_MASTER if we wanted it, and assert that we
> don't have it for the actual test.
> -Chris
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-01-31 21:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-31 19:39 [igt-dev] [PATCH i-g-t] igt/gem_exec_params: Drop drm master privileges only on drm master fds Antonio Argenziano
2018-01-31 19:58 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-01-31 20:52 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2018-01-31 21:07 ` Chris Wilson
2018-01-31 21:21 ` Antonio Argenziano [this message]
2018-01-31 21:38 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
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=b00a32fb-b0bc-8dbc-c9ae-775ce7a73758@intel.com \
--to=antonio.argenziano@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=joonas.lahtinen@linux.intel.com \
/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