From: Ian Jackson Subject: Re: [PATCH 1/5] tools/hotplug: move XENSTORED_MOUNT_CTX to sysconfig.xencommons Date: Fri, 5 Dec 2014 12:20:01 +0000 Message-ID: <21633.41713.481177.905257@mariner.uk.xensource.com> References: <1417781152-9926-1-git-send-email-olaf@aepfle.de> <1417781152-9926-2-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1417781152-9926-2-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , Ian Campbell , Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Olaf Hering writes ("[PATCH 1/5] tools/hotplug: move XENSTORED_MOUNT_CTX to sysconfig.xencommons"): > On a non-SELinux system the mount option "context=none" works fine. But > with SELinux enabled a proper value has to be defined. To simplify the > required adjustment move XENSTORED_MOUNT_CTX from the service file to > the sysconfig file. This patch looks like just the hook. It seems to be missing the part where the actual selinux context is defined and plumbed through. > There is no need to require the creation of a new sysconfig file, just > reuse the existing /etc/sysconfig/xencommons file. This seems to be an unrelated change ? If not I confess I don't see the connection. > --- a/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in > +++ b/tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in ... > [Mount] > -Environment=XENSTORED_MOUNT_CTX=none > -EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored > +EnvironmentFile=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons And won't this break existing systems which have an /etc/{default,sysconfig}/xenstored ? Ian.