| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH V2] xfstests: mount other filesystems with selinux context as well |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Wed, 25 Jan 2012 15:11:39 -0600 |
| Cc: | Eric Sandeen <sandeen@xxxxxxxxxx>, ext4 development <linux-ext4@xxxxxxxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20120124174500.GB9853@xxxxxxxxxxxxx> |
| References: | <4ECD3262.105@xxxxxxxxxx> <20111128110228.GC13766@xxxxxxxxxxxxx> <4F1862FC.1050401@xxxxxxxxxxx> <20120124174500.GB9853@xxxxxxxxxxxxx> |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
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 <sandeen@xxxxxxxxxx>
---
ps: eparis says this should work for NFS as well, let's go for
it and if infrequently tested filesystems have trouble we can
exclude them as necessary.
diff --git a/common.rc b/common.rc
index 6231457..602513a 100644
--- a/common.rc
+++ b/common.rc
@@ -72,11 +72,11 @@ _mount_opts()
# nfs_t is a "liberal" context so we can use it.
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
SELINUX_MOUNT_OPTIONS="-o context=system_u:object_r:nfs_t:s0"
+ export SELINUX_MOUNT_OPTIONS
fi
case $FSTYP in
xfs)
- export SELINUX_MOUNT_OPTIONS
export MOUNT_OPTIONS=$XFS_MOUNT_OPTIONS
;;
udf)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [GIT PULL] XFS update for 3.3-rc1, Ben Myers |
|---|---|
| Next by Date: | [PATCH V3] xfstests: make 275 pass, Eric Sandeen |
| Previous by Thread: | Re: [PATCH] xfstests: mount other filesystems with selinux context as well, Christoph Hellwig |
| Next by Thread: | Re: [PATCH V2] xfstests: mount other filesystems with selinux context as well, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |