[SELINUX] Handle fuse binary mount data.

From: James Morris (jmorris_at_redhat.com)
Date: 02/29/04

  • Next message: Matthias Andree: "lk-changelog.pl 0.235"
    Date:	Sun, 29 Feb 2004 16:38:51 -0500 (EST)
    To: Andrew Morton <akpm@osdl.org>
    
    

    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/


  • Next message: Matthias Andree: "lk-changelog.pl 0.235"

    Relevant Pages