All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Smith" <dpsmith@apertussolutions.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: George Dunlap <George.Dunlap@citrix.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	Xen-devel <xen-devel@lists.xenproject.org>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [PATCH] Revert "evtchn: refuse EVTCHNOP_status for Xen-bound event channels"
Date: Wed, 3 Apr 2024 09:31:03 -0400	[thread overview]
Message-ID: <accf801d-a74b-41c3-a67f-bcbe622e4e34@apertussolutions.com> (raw)
In-Reply-To: <3b8ec757-d2f3-4143-a843-de8c6d51944d@suse.com>

On 4/3/24 07:54, Jan Beulich wrote:
> On 03.04.2024 13:50, Daniel P. Smith wrote:
>> On 4/3/24 02:52, Jan Beulich wrote:
>>> On 03.04.2024 08:16, Jan Beulich wrote:
>>>> On 02.04.2024 19:06, Andrew Cooper wrote:
>>>>> Whether to return information about a xen-owned evtchn is a matter of policy,
>>>>> and it's not acceptable to short circuit the XSM on the matter.
>>>>
>>>> I can certainly accept this as one possible view point. As in so many cases
>>>> I'm afraid I dislike you putting it as if it was the only possible one.
>>>
>>> Further to this: Is there even a way to express the same denial in XSM?
>>> alloc_unbound_xen_event_channel() doesn't specifically "mark" such a
>>> channel, and (yes, it could in principle be open-coded in Flask code)
>>> consumer_is_xen() is private to event_channel.c. I also dare to question
>>> whether in SILO mode status information like this should be available.
>>
>> To build on the previous response: if the natural failure return value
>> is -EACCESS in response to a domain resource access attempt, then the
>> probability is extremely high that it should be implemented under a XSM
>> hook and not hard-coded into the resource logic.
> 
> Possibly. But first of all - could you answer the earlier question I raised?

Don't need to, this change subverts/violates the access control 
framework. If the desire is to make this access decision for the 
default/dummy policy, then codify it there. Otherwise I will be ack'ing 
this change since it is access control and falls under the purview of XSM.

v/r,
dps


  reply	other threads:[~2024-04-03 13:31 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 17:06 [PATCH] Revert "evtchn: refuse EVTCHNOP_status for Xen-bound event channels" Andrew Cooper
2024-04-03  6:16 ` Jan Beulich
2024-04-03  6:52   ` Jan Beulich
2024-04-03 11:50     ` Daniel P. Smith
2024-04-03 11:54       ` Jan Beulich
2024-04-03 13:31         ` Daniel P. Smith [this message]
2024-04-04  8:11           ` Jan Beulich
2024-04-03 11:10   ` Daniel P. Smith
2024-04-03 12:05     ` Jan Beulich
2024-04-03 13:27       ` Daniel P. Smith
2024-04-04  7:57         ` Jan Beulich
2024-04-05  5:59         ` Jan Beulich
2024-05-14  9:25   ` Jan Beulich
2024-05-14  9:51     ` Andrew Cooper
2024-05-14 10:03       ` Jan Beulich
2024-05-14 11:13         ` Julien Grall
2024-05-14 21:35           ` Stefano Stabellini
2024-05-15  7:33             ` Jan Beulich
2024-05-16 19:15           ` Oleksii K.
2024-05-17  7:01             ` Jan Beulich
2024-05-15 10:49       ` Kelly Choi
2024-05-15 12:59       ` George Dunlap
2024-05-16  6:41     ` Jan Beulich
2024-05-17  1:21       ` Stefano Stabellini
2024-05-17  7:04         ` Jan Beulich
2024-05-17 20:28           ` Stefano Stabellini
2024-05-21  6:17             ` Jan Beulich
2024-05-22  1:33               ` Stefano Stabellini
2024-05-17  1:22       ` Daniel P. Smith
2024-05-17  7:24         ` Jan Beulich
2024-04-03 13:35 ` Daniel P. Smith

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=accf801d-a74b-41c3-a67f-bcbe622e4e34@apertussolutions.com \
    --to=dpsmith@apertussolutions.com \
    --cc=George.Dunlap@citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.