From: Anthony PERARD Subject: Re: [PATCH 1/5] tools/hotplug: move XENSTORED_MOUNT_CTX to sysconfig.xencommons Date: Fri, 5 Dec 2014 16:09:18 +0000 Message-ID: <20141205160918.GQ1617@perard.uk.xensource.com> References: <1417781152-9926-1-git-send-email-olaf@aepfle.de> <1417781152-9926-2-git-send-email-olaf@aepfle.de> <20141205153500.GP1617@perard.uk.xensource.com> <20141205155149.GA3065@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20141205155149.GA3065@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: Ian Jackson , Stefano Stabellini , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Dec 05, 2014 at 04:51:49PM +0100, Olaf Hering wrote: > On Fri, Dec 05, Anthony PERARD wrote: > > > On Fri, Dec 05, 2014 at 01:05:48PM +0100, Olaf Hering wrote: > > > On a non-SELinux system the mount option "context=none" works fine. > > > > That's not true. I've tested 'context=none' on ArchLinux which have no > > support (or limited) for selinux, and the option give this error: > > "tmpfs: Bad mount option context" > > Appears to work for me, at least on SLE12. No idea how much SELinux they > put in there. My old 11.4 behaves the same. Perhaps your kernel lacks > certain functionality? I assome the error msg comes from the kernel. Yes, the message comes from the kernel. I don't know what functionality is needed to for the kernel to handle context=none, so I can't tell. At least, there is not CONFIG_SECURITY_SELINUX in the config, but CONFIG_SECURITY=y is set. In anyway, I'll continue to edit the systemd unit to remove the context option, that's not a big deal. > root@bax:~ # mount -vt tmpfs xxx -o context=foo /mnt/ > mount: xxx mounted on /mnt. $ sudo mount -vt tmpfs xxx -o context=foo /tmp/tmp.lhw79USQUe mount: wrong fs type, bad option, bad superblock on xxx, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. $ dmesg | tail -1 [1569927.987083] tmpfs: Bad mount option context -- Anthony PERARD