From: Peter Xu <peterx@redhat.com>
To: Casey Schaufler <casey@schaufler-ca.com>,
Axel Rasmussen <axelrasmussen@google.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>,
Andrea Arcangeli <aarcange@redhat.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Serge Hallyn <serge@hallyn.com>, Paul Moore <paul@paul-moore.com>,
Stephen Smalley <stephen.smalley.work@gmail.com>,
Eric Paris <eparis@parisplace.org>,
Ondrej Mosnacek <omosnace@redhat.com>,
"David S . Miller" <davem@davemloft.net>,
Jeremy Kerr <jk@codeconstruct.com.au>,
linux-fsdevel@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
linux-security-module@vger.kernel.org, selinux@vger.kernel.org,
Suren Baghdasaryan <surenb@google.com>,
Lokesh Gidra <lokeshgidra@google.com>
Subject: Re: [PATCH] userfaultfd, capability: introduce CAP_USERFAULTFD
Date: Fri, 25 Feb 2022 10:58:26 +0800 [thread overview]
Message-ID: <YhhF0jEeytTO32yt@xz-m1.local> (raw)
In-Reply-To: <0f74f1e4-6374-0e00-c5cb-04eba37e4ee3@schaufler-ca.com>
On Thu, Feb 24, 2022 at 04:39:44PM -0800, Casey Schaufler wrote:
> What I'd want to see is multiple users where the use of CAP_USERFAULTD
> is independent of the use of CAP_SYS_PTRACE. That is, the programs would
> never require CAP_SYS_PTRACE. There should be demonstrated real value.
> Not just that a compromised program with CAP_SYS_PTRACE can do bad things,
> but that the programs with CAP_USERFAULTDD are somehow susceptible to
> being exploited to doing those bad things. Hypothetical users are just
> that, and often don't materialize.
I kind of have the same question indeed..
The use case we're talking about is VM migration, and the in-question
subject is literally the migration process or thread. Isn't that a trusted
piece of software already?
Then the question is why the extra capability (in CAP_PTRACE but not in
CAP_UFFD) could bring much risk to the system. Axel, did I miss something
important?
Thanks,
--
Peter Xu
next prev parent reply other threads:[~2022-02-25 2:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-24 18:19 [PATCH] userfaultfd, capability: introduce CAP_USERFAULTFD Axel Rasmussen
2022-02-24 19:12 ` Casey Schaufler
2022-02-24 19:13 ` Casey Schaufler
2022-02-24 22:07 ` Axel Rasmussen
2022-02-25 0:39 ` Casey Schaufler
2022-02-25 2:58 ` Peter Xu [this message]
2022-02-25 18:17 ` Axel Rasmussen
2022-02-25 20:10 ` Casey Schaufler
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=YhhF0jEeytTO32yt@xz-m1.local \
--to=peterx@redhat.com \
--cc=aarcange@redhat.com \
--cc=axelrasmussen@google.com \
--cc=casey@schaufler-ca.com \
--cc=davem@davemloft.net \
--cc=eparis@parisplace.org \
--cc=jk@codeconstruct.com.au \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=lokeshgidra@google.com \
--cc=omosnace@redhat.com \
--cc=paul@paul-moore.com \
--cc=selinux@vger.kernel.org \
--cc=serge@hallyn.com \
--cc=stephen.smalley.work@gmail.com \
--cc=surenb@google.com \
--cc=viro@zeniv.linux.org.uk \
/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