Skip to contentSkip to conversation

sub-domains and chroot

DISCUSSION Russell Coker 1 participant 1 message Mar 22, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Has any thought been given to the idea of allowing users to create their own sub domains?

SE Linux well satisfies the needs of the sys-admin who wants to lock down their system. But what about the non-administrative user who is running buggy or potentially malicious code and wants to use different restrictions for it?

The first possibility that comes to mind is that I could create user_a_t through user_z_t and then the user can do what they like with them, then we have SE domains to segregate trusted and untrusted programs in one account (with the user deciding which ones are trusted) and the Unix permissions to protect accounts from each other.

Another thing I have been thinking of is chroot() environments. I am planning on writing a sample policy to have a sshd inside the chroot which gets an automatic transition to chroot_login_t (which has access to setuid, setgid, and most things other than killing processes in other domains and chroot). Then from that type executing any program in the chroot causes an automatic domain transition to a domain which can't do any network operations either. Then certain programs inside the chroot (such as apache) could trigger domain transitions to allow network access. The problem with this is that I would like to limit an apache instance in a chroot to binding to only a particular IP address. Is this possible? It seems that there are only domains defined for eth0, eth1, etc. I want to limit it to eth0:1...

Signature · 10 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.


--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.