* Re: file_type_auto_trans is not sufficient
[not found] ` <1117551440.15167.25.camel@dhcp83-8.boston.redhat.com>
@ 2005-05-31 21:21 ` Luke Kenneth Casson Leighton
2005-06-01 11:21 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Luke Kenneth Casson Leighton @ 2005-05-31 21:21 UTC (permalink / raw)
To: Ivan Gyurdiev
Cc: Karl MacMillan, 'Stephen Smalley', SELinux, dwalsh, linux-kernel
On Tue, May 31, 2005 at 10:57:20AM -0400, Ivan Gyurdiev wrote:
>
> > The other option, of course, is to change the applications to use/create many
> > more directories, each with a separate type to allow the file_type_auto_trans
> > rules to work. Your orbit example might mean that there is a /tmp/orbit
> > directory where all orbit files are created.
>
> The problem is not multiple source domains - that can be addressed
> through macros. The problem is that those domains use the same directory
> (Usually /tmp, or /home), for their own purposes, and they need the same
> transition (same directory and target class (dir/file)).
>
> Because you can have only one transition, this creates a problem.
...
thinking "sideways" again - as i am wont to do.
how about... a "sideways" solution to this - at the kernel level?
a "silent" redirection / remount, on a per-application basis?
no, i'm not joking.
an option to "mount" which allows a specific APPLICATION (or group of
applications) to have any files/directories it creates/accesses in a
subdirectory ACTUALLY occur ELSEWHERE.
e.g.:
mount -o redirectexe=/usr/bin/mozilla-firefox /tmp /tmp/mozilla
mount -o redirectexe=/usr/bin/gnomeshite,/usr/bin/gnomemoreshite /tmp /tmp/gconf
hm, that could get out-of-hand - the number of programs involved
that would need redirection..
*thinks* ... some other mechanism for "grouping" executables...
you could even hang it off of an selinux context (!) or selinux domain
(!) such that a set of executables, possibly those executed by
certain users, would result in filesystem redirection - but not others.
at your own discretion.
then, you _could_ specify /tmp/gconf equals "a different file context".
l.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: file_type_auto_trans is not sufficient
2005-05-31 21:21 ` file_type_auto_trans is not sufficient Luke Kenneth Casson Leighton
@ 2005-06-01 11:21 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2005-06-01 11:21 UTC (permalink / raw)
To: Luke Kenneth Casson Leighton
Cc: Ivan Gyurdiev, Karl MacMillan, SELinux, dwalsh, linux-kernel
On Tue, 2005-05-31 at 22:21 +0100, Luke Kenneth Casson Leighton wrote:
> thinking "sideways" again - as i am wont to do.
>
> how about... a "sideways" solution to this - at the kernel level?
>
> a "silent" redirection / remount, on a per-application basis?
>
> no, i'm not joking.
>
> an option to "mount" which allows a specific APPLICATION (or group of
> applications) to have any files/directories it creates/accesses in a
> subdirectory ACTUALLY occur ELSEWHERE.
That's polyinstantiated directories. See Chad Seller's postings.
However, it uses the kernel's existing support for per-process
namespaces and bind mounts rather than anything new in the kernel.
--
Stephen Smalley
National Security Agency
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-01 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <200505311412.j4VECK5F030983@gotham.columbia.tresys.com>
[not found] ` <1117551440.15167.25.camel@dhcp83-8.boston.redhat.com>
2005-05-31 21:21 ` file_type_auto_trans is not sufficient Luke Kenneth Casson Leighton
2005-06-01 11:21 ` Stephen Smalley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®