* [PATCH 2/8] afs: Fix SELinux setting security label on /afs
[not found] <157606006065.21869.6615813521356169209.stgit@warthog.procyon.org.uk>
@ 2019-12-11 10:27 ` David Howells
0 siblings, 0 replies; only message in thread
From: David Howells @ 2019-12-11 10:27 UTC (permalink / raw)
To: linux-afs; +Cc: selinux, linux-security-module, dhowells
Make the AFS dynamic root superblock R/W so that SELinux can set the
security label on it. Without this, upgrades to, say, the Fedora
filesystem-afs RPM fail if afs is mounted on it because the SELinux label
can't be (re-)applied.
It might be better to make it possible to bypass the R/O check for LSM
label application through setxattr.
Fixes: 4d673da14533 ("afs: Support the AFS dynamic root")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: selinux@vger.kernel.org
cc: linux-security-module@vger.kernel.org
---
fs/afs/super.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/afs/super.c b/fs/afs/super.c
index 488641b1a418..d9a6036b70b9 100644
--- a/fs/afs/super.c
+++ b/fs/afs/super.c
@@ -448,7 +448,6 @@ static int afs_fill_super(struct super_block *sb, struct afs_fs_context *ctx)
/* allocate the root inode and dentry */
if (as->dyn_root) {
inode = afs_iget_pseudo_dir(sb, true);
- sb->s_flags |= SB_RDONLY;
} else {
sprintf(sb->s_id, "%llu", as->volume->vid);
afs_activate_volume(as->volume);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-11 10:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <157606006065.21869.6615813521356169209.stgit@warthog.procyon.org.uk>
2019-12-11 10:27 ` [PATCH 2/8] afs: Fix SELinux setting security label on /afs David Howells
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.