public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [SELINUX] Handle fuse binary mount data.
@ 2004-02-29 21:38 James Morris
  2004-02-29 21:55 ` Christoph Hellwig
  0 siblings, 1 reply; 9+ messages in thread
From: James Morris @ 2004-02-29 21:38 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Stephen Smalley, linux-kernel

This patch ensures that fuse filesystems are able to be mounted with 
SELinux enabled.

Please apply.


diff -urN -X dontdiff linux-2.6.3-mm4.o/security/selinux/hooks.c linux-2.6.3-mm4.w/security/selinux/hooks.c
--- linux-2.6.3-mm4.o/security/selinux/hooks.c	2004-02-25 22:42:16.000000000 -0500
+++ linux-2.6.3-mm4.w/security/selinux/hooks.c	2004-02-28 23:44:04.885656768 -0500
@@ -332,8 +332,8 @@
 	name = sb->s_type->name;
 
 	/* Ignore these fileystems with binary mount option data. */
-	if (!strcmp(name, "coda") ||
-	    !strcmp(name, "afs") || !strcmp(name, "smbfs"))
+	if (!strcmp(name, "coda") || !strcmp(name, "afs") ||
+	    !strcmp(name, "smbfs") || !strcmp(name, "fuse"))
 		goto out;
 
 	/* NFS we understand. */
@@ -1897,7 +1897,8 @@
 
 	/* Binary mount data: just copy */
 	if (!strcmp(fstype, "nfs") || !strcmp(fstype, "coda") ||
-	    !strcmp(fstype, "smbfs") || !strcmp(fstype, "afs")) {
+	    !strcmp(fstype, "smbfs") || !strcmp(fstype, "afs") ||
+	    !strcmp(fstype, "fuse")) {
 		copy_page(sec_curr, in_curr);
 		goto out;
 	}


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-03-01 19:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-29 21:38 [SELINUX] Handle fuse binary mount data James Morris
2004-02-29 21:55 ` Christoph Hellwig
2004-02-29 23:02   ` Andrew Morton
2004-02-29 23:41     ` H. Peter Anvin
2004-03-01  1:24     ` James Morris
2004-03-01  1:59       ` H. Peter Anvin
2004-03-01  9:48       ` Urban Widmark
2004-03-01 13:15         ` James Morris
2004-03-01 19:52           ` Urban Widmark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox