All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7 v3] tools/hotplug: systemd changes for 4.5
@ 2014-12-19 11:25 Olaf Hering
  2014-12-19 11:25 ` [PATCH 1/7] tools/hotplug: remove SELinux options from var-lib-xenstored.mount Olaf Hering
                   ` (7 more replies)
  0 siblings, 8 replies; 58+ messages in thread
From: Olaf Hering @ 2014-12-19 11:25 UTC (permalink / raw)
  To: xen-devel; +Cc: Olaf Hering, m.a.young

This is a resend of these two series:
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg00858.html
http://lists.xenproject.org/archives/html/xen-devel/2014-12/msg00669.html

New in v3 is a wrapper to run xenstored. See its patch description
for details.

Patch 2-6 should be applied for 4.5.0.

The first and the last one still has issues with xenstored and
SELinux. See below.  Up to now no solution is known to me.


The first patch fixes Arch Linux and does not break anything.  As such
it should be safe to be applied for 4.5.0.  SELinux users (who build
from source) should put their special mount options into fstab. Distro
packages will most likely include a proper .service file.


The last patch addresses the XENSTORED_TRACE issue. But SELinux will
most likely still not work.

Possible ways to handle launching xenstored and SELinux:

- do nothing
  pro: - no Xen source changes required
  con: - possible unhappy users who build from source and still have
         SELinux enabled

- use newly added wrapper
  pro: - XENSTORED_TRACE boolean is handled
  con: - the wrapper may have the very same issue as the current
         launching with sh -c 'exec xenstored'. But maybe there is a
	 way to mark the new wrapper script as "this is the native
	 xenstored". Someone familiar with SELinux may be able to
	 answer this.

- Use ExecStart=@XENSTORED@
  pro: - socket passing will most likely work
  con: - All options have to be passed in XENSTORED_ARGS, a new variable
         which is not yet mentioned in the sysconfig file.
       - Switching xenstored requires a private copy of
	 xenstored.service in /etc/systemd instead of adjusting the
	 XENSTORED= variable in the sysconfig file.

- Use ExecStart=/usr/bin/env $XENSTORED
  pro: - $XENSTORED can be set in sysconfig file
  con: - may have the same socket issue as starting via shell
       - XENSTORED_TRACE boolean is not handled


I will be offline until 2015-01-07, so any further adjustments to this
series has to be done by someone else.


Good luck!

Olaf


Olaf Hering (7):
  tools/hotplug: remove SELinux options from var-lib-xenstored.mount
  tools/hotplug: remove XENSTORED_ROOTDIR from xenstored.service
  tools/hotplug: xendomains.service depends on network
  tools/hotplug: use xencommons as EnvironmentFile in
    xenconsoled.service
  tools/hotplug: use XENCONSOLED_TRACE in xenconsoled.service
  tools/hotplug: remove EnvironmentFile from
    xen-qemu-dom0-disk-backend.service
  tools/hotplug: add wrapper to start xenstored

 .gitignore                                                        | 1 +
 tools/configure                                                   | 3 ++-
 tools/configure.ac                                                | 1 +
 tools/hotplug/Linux/Makefile                                      | 2 ++
 tools/hotplug/Linux/init.d/xencommons.in                          | 6 ++++--
 tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in            | 4 +---
 tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 1 -
 tools/hotplug/Linux/systemd/xenconsoled.service.in                | 6 +++---
 tools/hotplug/Linux/systemd/xendomains.service.in                 | 2 ++
 tools/hotplug/Linux/systemd/xenstored.service.in                  | 6 ++----
 tools/hotplug/Linux/xenstored.sh.in                               | 6 ++++++
 11 files changed, 24 insertions(+), 14 deletions(-)
 create mode 100644 tools/hotplug/Linux/xenstored.sh.in

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

end of thread, other threads:[~2015-09-15 15:52 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-19 11:25 [PATCH 0/7 v3] tools/hotplug: systemd changes for 4.5 Olaf Hering
2014-12-19 11:25 ` [PATCH 1/7] tools/hotplug: remove SELinux options from var-lib-xenstored.mount Olaf Hering
2015-01-06 11:27   ` Ian Campbell
2015-01-07  9:23     ` Olaf Hering
2015-01-07  9:31       ` Ian Campbell
2015-01-07 14:53         ` Konrad Rzeszutek Wilk
2015-01-06 14:48   ` Ian Jackson
2015-09-10 13:52   ` George Dunlap
2015-09-10 14:13     ` M A Young
2015-09-10 14:17       ` George Dunlap
2015-09-11  6:31     ` Olaf Hering
2015-09-14 16:30       ` George Dunlap
2015-09-14 18:33         ` Olaf Hering
2015-09-15  8:55           ` George Dunlap
2015-09-15 12:48             ` Olaf Hering
2015-09-15 12:55               ` George Dunlap
2015-09-15 13:58                 ` Konrad Rzeszutek Wilk
2015-09-15 14:01                   ` George Dunlap
2015-09-15 15:12                     ` Konrad Rzeszutek Wilk
2015-09-15 15:52                       ` George Dunlap
2015-09-15 13:57               ` Konrad Rzeszutek Wilk
2014-12-19 11:25 ` [PATCH 2/7] tools/hotplug: remove XENSTORED_ROOTDIR from xenstored.service Olaf Hering
2014-12-19 11:25 ` [PATCH 3/7] tools/hotplug: xendomains.service depends on network Olaf Hering
2014-12-19 11:25 ` [PATCH 4/7] tools/hotplug: use xencommons as EnvironmentFile in xenconsoled.service Olaf Hering
2015-01-06 11:29   ` Ian Campbell
2015-01-06 14:45   ` Ian Jackson
2014-12-19 11:25 ` [PATCH 5/7] tools/hotplug: use XENCONSOLED_TRACE " Olaf Hering
2015-01-06 11:30   ` Ian Campbell
2015-01-06 15:26     ` Konrad Rzeszutek Wilk
2015-01-06 14:46   ` Ian Jackson
2014-12-19 11:25 ` [PATCH 6/7] tools/hotplug: remove EnvironmentFile from xen-qemu-dom0-disk-backend.service Olaf Hering
2015-01-06 11:33   ` Ian Campbell
2015-01-06 14:50   ` Ian Jackson
2014-12-19 11:25 ` [PATCH 7/7] tools/hotplug: add wrapper to start xenstored Olaf Hering
2015-01-06 11:41   ` Ian Campbell
2015-01-07  9:40     ` Olaf Hering
2015-01-07 15:27       ` Ian Jackson
2015-01-07 15:42         ` Konrad Rzeszutek Wilk
2015-09-10 14:19       ` George Dunlap
2015-09-10 14:53         ` Wei Liu
2015-09-10 15:01           ` M A Young
2015-09-10 15:10             ` Wei Liu
2015-09-10 15:11             ` George Dunlap
2015-09-10 16:01           ` Ian Jackson
2015-09-11  6:42             ` Olaf Hering
2015-01-06 14:58   ` Ian Jackson
2015-01-07  9:49     ` Olaf Hering
2015-01-07 14:55       ` Konrad Rzeszutek Wilk
2014-12-19 19:10 ` [PATCH 0/7 v3] tools/hotplug: systemd changes for 4.5 Konrad Rzeszutek Wilk
2014-12-22  8:06   ` Olaf Hering
2014-12-31 15:31     ` Konrad Rzeszutek Wilk
2015-01-05 21:22       ` Konrad Rzeszutek Wilk
2015-01-06 10:05         ` Ian Campbell
2015-01-06 15:00         ` Ian Jackson
2015-01-06 15:19           ` Konrad Rzeszutek Wilk
2015-01-07  9:53         ` Olaf Hering
2015-01-07 14:56           ` Konrad Rzeszutek Wilk
2015-01-07 15:03             ` Olaf Hering

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.