X-Spam-Checker-Version: SpamAssassin 3.4.0-r929098 (2010-03-30) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,J_CHICKENPOX_33 autolearn=no version=3.4.0-r929098 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q0JIbnUE032603 for ; Thu, 19 Jan 2012 12:37:50 -0600 X-ASG-Debug-ID: 1326998268-04cbb06dc90cb00001-NocioJ Received: from mail.sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id fA7BG7KBHUSgYvrU for ; Thu, 19 Jan 2012 10:37:49 -0800 (PST) X-Barracuda-Envelope-From: sandeen@sandeen.net X-Barracuda-Apparent-Source-IP: 63.231.237.45 Received: from liberator.sandeen.net (liberator.sandeen.net [10.0.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sandeen.net (Postfix) with ESMTP id A28F049632AF; Thu, 19 Jan 2012 12:37:48 -0600 (CST) Message-ID: <4F1862FC.1050401@sandeen.net> Date: Thu, 19 Jan 2012 12:37:48 -0600 From: Eric Sandeen User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Christoph Hellwig CC: Eric Sandeen , ext4 development , xfs-oss Subject: Re: [PATCH] xfstests: mount other filesystems with selinux context as well References: <4ECD3262.105@redhat.com> <20111128110228.GC13766@infradead.org> X-ASG-Orig-Subj: Re: [PATCH] xfstests: mount other filesystems with selinux context as well In-Reply-To: <20111128110228.GC13766@infradead.org> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: sandeen.net[63.231.237.45] X-Barracuda-Start-Time: 1326998268 X-Barracuda-URL: http://192.48.176.25:80/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.86355 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On 11/28/11 5:02 AM, Christoph Hellwig wrote: > On Wed, Nov 23, 2011 at 11:50:26AM -0600, Eric Sandeen wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> For some reason, non-xfs filesystems aren't getting mounted with >> the selinux context; perhaps because none of the xattr tests used >> to work on anything but xfs? >> >> Anyway, 062 fails for extN unless we mount with the fs-wide >> context. >> >> Signed-off-by: Eric Sandeen >> - --- >> >> diff --git a/common.rc b/common.rc >> index cab0b64..5998ff2 100644 >> - --- a/common.rc >> +++ b/common.rc >> @@ -86,14 +86,17 @@ _mount_opts() >> export MOUNT_OPTIONS=$NFS_MOUNT_OPTIONS >> ;; >> ext2|ext3|ext4|ext4dev) >> - - # acls & xattrs aren't turned on by default on ext$FOO >> + export SELINUX_MOUNT_OPTIONS >> + # acls & xattrs aren't turned on by default on ext$FOO in old kernels >> export MOUNT_OPTIONS="-o acl,user_xattr $EXT_MOUNT_OPTIONS" >> ;; >> reiserfs) >> + export SELINUX_MOUNT_OPTIONS >> # acls & xattrs aren't turned on by default on reiserfs >> export MOUNT_OPTIONS="-o acl,user_xattr $REISERFS_MOUNT_OPTIONS" >> ;; >> gfs2) >> + export SELINUX_MOUNT_OPTIONS >> # acls aren't turned on by default on gfs2 >> export MOUNT_OPTIONS="-o acl $GFS2_MOUNT_OPTIONS" >> ;; > > shouldn't the "export SELINUX_MOUNT_OPTIONS" simply move to common code? I wasn't sure if nfs would grok it. -Eric