[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

    • RE: Error mounting root fs on 72:01 using Promise FastTrak TX2000 (PDC20271)
      ... I think the patch should be included in the official kernel ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • [2.6 patch] cdrom.c: make several functions static (fwd)
      ... The patch forwarded below still applies and compiles against ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ... There had been need of rain for many days. ...
      (Linux-Kernel)
    • [2.6 patch] some parport_pc.c cleanups (fwd)
      ... The patch forwarded below still applies and compiles against ... extern struct parport *parport_pc_probe_port (unsigned long base, ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [2.4 patch] fix a compile warning in tipar.c (fwd)
      ... [2.4 patch] fix a compile warning in tipar.c ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • RE: kernel BUG at kernel/timer.c:370!
      ... Subject: kernel BUG at kernel/timer.c:370! ... Could you please apply the below patch, wait for the problem to reoccur, ... Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)