From: Stefano Brivio <sbrivio@redhat.com>
To: Cole Robinson <crobinso@redhat.com>
Cc: passt-dev@passt.top, david@gibson.dropbear.id.au,
Yumei Huang <yuhuang@redhat.com>,
"Richard W.M. Jones" <rjones@redhat.com>
Subject: Re: [PATCH v2] isolation: keep CAP_DAC_OVERRIDE initially
Date: Thu, 9 Oct 2025 10:14:45 +0200 [thread overview]
Message-ID: <20251009101445.67408f7a@elisabeth> (raw)
In-Reply-To: <38d6578a1d8dd10e96b0f1d8e6a29ff5db17f57d.1759935556.git.crobinso@redhat.com>
On Wed, 8 Oct 2025 11:01:33 -0400
Cole Robinson <crobinso@redhat.com> wrote:
> Reproducer that I'd expect to work:
>
> $ cd $HOME
> $ sudo passt --runas $UID --socket foo.sock
> Failed to bind UNIX domain socket: Permission denied
>
> A more practical example is for libguestfs apps when run as user=root:
>
> + libguestfs connects to libvirt qemu:///system
> + libvirt qemu:///system defaults to user=qemu
> + libvirt chowns /run/libvirt/qemu/passt dir to user=qemu
> + libguestfs instead requests the VM run as user=root
> + patches in progress but we are blocked by this issue
> + passt is launched as root, but because CAP_DAC_OVERRIDE has been
> dropped, passt fails to create socket in qemu owned
> /run/libvirt/qemu/passt
>
> Fix it by not dropping CAP_DAC_OVERRIDE in isolate_initial.
>
> This might look sketchy, but isolate_initial already keeps
> CAP_SYS_ADMIN and CAP_NET_ADMIN, so we are probably no worse off.
>
> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
> Signed-off-by: Cole Robinson <crobinso@redhat.com>
> ---
> v2: improve commit message
Applied, thanks, and welcome to the git log!
--
Stefano
prev parent reply other threads:[~2025-10-09 8:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-08 15:01 Cole Robinson
2025-10-09 8:14 ` Stefano Brivio [this message]
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=20251009101445.67408f7a@elisabeth \
--to=sbrivio@redhat.com \
--cc=crobinso@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=rjones@redhat.com \
--cc=yuhuang@redhat.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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).