All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nbd/server: Add --selinux-label option
@ 2021-07-22 16:32 Richard W.M. Jones
  2021-07-22 16:32 ` Richard W.M. Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Richard W.M. Jones @ 2021-07-22 16:32 UTC (permalink / raw)
  To: eblake; +Cc: vsementsov, qemu-devel, qemu-block

https://bugzilla.redhat.com/show_bug.cgi?id=1984938

The purpose of the patch is explained in the commit message / bug.  In
the cover I want to explain a couple of design choices.

If libselinux isn't available at build time then the --selinux-label
option is still present.  It does not appear in the qemu-nbd --help
output.  If you still use it, it is ignored.  (By contrast nbdkit will
give an error if you try to use the option without having SELinux
support.  It's not clear which is better.)

We give an error if setsockcreatecon_raw fails.  In theory we could
ignore this error (warning?) and keep going.  Either SELinux would
later reject clients or it wouldn't.

Rich.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-22 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-22 16:32 [PATCH] nbd/server: Add --selinux-label option Richard W.M. Jones
2021-07-22 16:32 ` Richard W.M. Jones
2021-07-22 16:43   ` Daniel P. Berrangé

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.