From: Ian Jackson <iwj@xenproject.org>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Scott Davis <scottwd@gmail.com>, <xen-devel@lists.xenproject.org>,
Scott Davis <scott.davis@starlab.io>, Wei Liu <wl@xen.org>,
George Dunlap <george.dunlap@citrix.com>,
Nick Rosbrook <rosbrookn@ainfosec.com>,
Anthony PERARD <anthony.perard@citrix.com>,
Juergen Gross <jgross@suse.com>,
Daniel De Graaf <dgdegra@tycho.nsa.gov>,
"Daniel P . Smith" <dpsmith@apertussolutions.com>
Subject: Re: [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg
Date: Tue, 27 Jul 2021 14:30:05 +0100 [thread overview]
Message-ID: <24832.2653.349970.515704@mariner.uk.xensource.com> (raw)
In-Reply-To: <dfc8bc88-ccab-bc6b-704d-c8ef95182311@citrix.com>
Andrew Cooper writes ("Re: [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg"):
> On 23/07/2021 05:47, Scott Davis wrote:
...
> > ret = libxl_flask_context_to_sid(ctx, s, strlen(s),
> > &d_config->b_info.device_model_ssidref);
> > + if (ret) {
> > + if (errno == ENOSYS) {
> > + LOGD(WARN, domid,
> > + "XSM Disabled: device_model_stubdomain_init_seclabel not supported");
> > + ret = 0;
>
> Surely this wants to be a hard error?
>
> Not specifying a label is one thing, but specifying a label and having
> it not take effect because code was compiled out of the hypervisor
> sounds like a security hole.
>
> I see this is a pattern copied from elsewhere, but it seems very short
> signed.
I wonder if this is to try to make it possible to boot a system whose
config specifies XSM labels but with XSM disabled.
Marek, or someone, can you advise ?
My initial thoughts are to agree with Andrew that ignoring this error
seems to me to be a bad plan, but maybe there is a good reason.
If we do want to improve this, maybe we need to update all the
corresponding call sites.
Thanks,
Ian.
prev parent reply other threads:[~2021-07-27 13:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 4:47 [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg Scott Davis
2021-07-26 13:07 ` Jason Andryuk
2021-07-27 12:19 ` Marek Marczykowski-Górecki
2021-07-27 13:32 ` Ian Jackson
2021-07-27 13:50 ` Jason Andryuk
2021-07-28 12:19 ` Anthony PERARD
2021-07-28 22:11 ` Scott Davis
2021-07-27 11:45 ` Andrew Cooper
2021-07-27 13:30 ` Ian Jackson [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=24832.2653.349970.515704@mariner.uk.xensource.com \
--to=iwj@xenproject.org \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=dpsmith@apertussolutions.com \
--cc=george.dunlap@citrix.com \
--cc=jgross@suse.com \
--cc=rosbrookn@ainfosec.com \
--cc=scott.davis@starlab.io \
--cc=scottwd@gmail.com \
--cc=wl@xen.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.