Re: [SELINUX] Handle fuse binary mount data.

From: Andrew Morton
Date: Sun Feb 29 2004 - 18:03:40 EST


Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
>
> On Sun, Feb 29, 2004 at 04:38:51PM -0500, James Morris wrote:
> > /* 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;
>
> Umm, binary mount data is bad enough, but hardcoding filesystem-depend code
> in selinux is just bogus..

Yes, it's rather awkward.

Could we do something such as passing a new mount flag in from userspace?
Add a new flag alongside MS_SYNCHRONOUS, MS_REMOUNT and friends?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/