lkml.org 
[lkml]   [2004]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[SELINUX] Handle fuse binary mount data.
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.881 / U:0.080 seconds]
©2003-2011 Jasper Spaans. Advertise on this site