[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 3/6] xen: xenstore: add possibility to preserve owner

From: Stefano Stabellini
Subject: Re: [PATCH v2 3/6] xen: xenstore: add possibility to preserve owner
Date: Wed, 22 Nov 2023 14:28:16 -0800 (PST)
User-agent: Alpine 2.22 (DEB 394 2020-01-19)

On Wed, 22 Nov 2023, Paul Durrant wrote:
> On 21/11/2023 22:10, Volodymyr Babchuk wrote:
> > Add option to preserve owner when creating an entry in Xen Store. This
> > may be needed in cases when Qemu is working as device model in a
> *may* be needed?
> I don't undertstand why this patch is necessary and the commit comment isn't
> really helping me.
> > domain that is Domain-0, e.g. in driver domain.

I think Volodymyr meant: 

domain that is *not* Domain-0

So I am guessing this patch is needed otherwise QEMU will run into
permissions errors doing xenstore operations

> > "owner" parameter for qemu_xen_xs_create() function can have special
> > value XS_PRESERVE_OWNER, which will make specific implementation to
> > get original owner of an entry and pass it back to
> > set_permissions() call.
> > 
> > Please note, that XenStore inherits permissions, so even if entry is
> > newly created by, it already has the owner set to match owner of entry
> > at previous level.
> > 
> > Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]