Research
.
Skip Search Box

SELinux Mailing List

Re: [PATCH][RFC] Security mount data & sb_copy_data hook.

From: James Morris <jmorris_at_redhat.com>
Date: Fri, 30 Jan 2004 13:14:21 -0500 (EST)


On Fri, 30 Jan 2004, Chris Wright wrote:

> > Any feedback on this will be most appreciated.
>
> Hrm, I'm not really fond of the extra page, and extra hook.
> Unfortunately, it doesn't seem like doing something generic in
> lib/parser.c is feasible since not each fs uses it, and touching each
> fs to find this is even uglier.

The extra page isn't really an issue as mounting a fileystem is not performance critical.

> Would it be possible to handle it all
> in the module with something like:
>
> mount -tselinux -oreal_type=$fstype,context=foo,the_fs_opts dev mntpnt

I'm not sure how this could be done cleanly without further reaching into the vfs (e.g. to hijack the real filesystem ops etc.). Perhaps better when we have a proper filesystem stacking mechanism available.

  • James -- James Morris <jmorris@redhat.com>
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Fri 30 Jan 2004 - 13:14:53 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service