Skip to contentSkip to conversation

Security mount data & sb_copy_data hook.

RFC PATCH James Morris 1 participant 1 message Jan 30, 2004 1 message not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Chris Wright
Quoted 1 line

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.

Quoted 4 lines

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

Signature · 9 lines
James Morris
<[email protected]>



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.