All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Scott Davis <scottwd@gmail.com>, <xen-devel@lists.xenproject.org>
Cc: Scott Davis <scott.davis@starlab.io>,
	Ian Jackson <iwj@xenproject.org>, 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 12:45:28 +0100	[thread overview]
Message-ID: <dfc8bc88-ccab-bc6b-704d-c8ef95182311@citrix.com> (raw)
In-Reply-To: <8ee22fab0731347dd7f998c5f336eac804785c28.1627014699.git.scott.davis@starlab.io>

On 23/07/2021 05:47, Scott Davis wrote:
> diff --git a/tools/libs/light/libxl_create.c b/tools/libs/light/libxl_create.c
> index e356b2106d..a12da5531d 100644
> --- a/tools/libs/light/libxl_create.c
> +++ b/tools/libs/light/libxl_create.c
> @@ -1060,13 +1060,31 @@ int libxl__domain_config_setdefault(libxl__gc *gc,
>          char *s = d_config->b_info.device_model_ssid_label;
>          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.

~Andrew



  parent reply	other threads:[~2021-07-27 11:46 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 [this message]
2021-07-27 13:30   ` Ian Jackson

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=dfc8bc88-ccab-bc6b-704d-c8ef95182311@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=anthony.perard@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=dpsmith@apertussolutions.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --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.