All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple contexts
@ 2005-01-10 20:50 Ivan Gyurdiev
  2005-01-10 23:23 ` Luke Kenneth Casson Leighton
                   ` (2 more replies)
  0 siblings, 3 replies; 42+ messages in thread
From: Ivan Gyurdiev @ 2005-01-10 20:50 UTC (permalink / raw)
  To: SELinux; +Cc: dwalsh

Why doesn't SElinux support multiple contexts per file?
It seems to me that this feature would be very useful. 
Is this technically not feasible?

I've been trying to get the following setup working on FC3 (rawhide):

/var/www/html.userX  - 
	virtual server for userX.mydomain labeled httpd_sys_content_t
/home/userX - 
	home folder for userX, exported via Samba (not yet, but
	it will be, once dwalsh puts in booleans for samba reading home)

/home/userX/webserver - symlink to /var/www/html.userX 

Now, /var/www/html.userX needs to be accessed both by smbd and httpd.
I need to label it with both samba_share_t and httpd_sys_content_t.

I have to edit the cryptic m4 policy file to add a type that's
accessible by both. Why is this necessary? Why can't selinux
either
	(1) Label the file with both contexts, and permit
	the operation if any context permits it

	or
		
	(2) Create a type with the properties of both
	with less user interaction (without needing to 
	modify the policy manually)

Since I'm unfamiliar with how SElinux works internally,
this might be a stupid question, but it seems to me that 
the user should not be required to understand how a policy
file works to label a file for use by two restricted programs.

-- 
Ivan Gyurdiev <ivg2@cornell.edu>
Cornell University


--
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.

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2005-01-20 20:52 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 20:50 Multiple contexts Ivan Gyurdiev
2005-01-10 23:23 ` Luke Kenneth Casson Leighton
2005-01-11  1:51   ` Luke Kenneth Casson Leighton
2005-01-11 20:09   ` Stephen Smalley
2005-01-11 21:48     ` Luke Kenneth Casson Leighton
2005-01-12 14:00       ` Stephen Smalley
2005-01-12 14:44         ` Luke Kenneth Casson Leighton
2005-01-12 15:00           ` Stephen Smalley
2005-01-12 18:18             ` Luke Kenneth Casson Leighton
2005-01-12 18:03               ` Stephen Smalley
2005-01-12 18:29                 ` Luke Kenneth Casson Leighton
2005-01-12 21:27                   ` Stephen Smalley
2005-01-12 22:41                     ` Luke Kenneth Casson Leighton
2005-01-13 15:55                       ` Stephen Smalley
2005-01-12 23:01                     ` Luke Kenneth Casson Leighton
2005-01-13 16:03                       ` Stephen Smalley
2005-01-13 16:44                       ` Stephen Smalley
2005-01-13 17:17                         ` Luke Kenneth Casson Leighton
2005-01-13 17:08                           ` Stephen Smalley
2005-01-12 19:07                 ` Luke Kenneth Casson Leighton
2005-01-11 15:18 ` Stephen Smalley
2005-01-11 20:08 ` Stephen Smalley
2005-01-12 20:11   ` Ivan Gyurdiev
2005-01-12 21:40     ` Stephen Bennett
2005-01-12 21:48       ` Stephen Smalley
2005-01-12 23:07       ` Luke Kenneth Casson Leighton
2005-01-13 16:06         ` Stephen Smalley
2005-01-12 21:47     ` Stephen Smalley
2005-01-12 23:08       ` Ivan Gyurdiev
2005-01-13 16:10         ` Stephen Smalley
2005-01-13 18:37           ` Luke Kenneth Casson Leighton
2005-01-13 23:17         ` Thomas Bleher
2005-01-14  7:07           ` Ivan Gyurdiev
2005-01-20 20:52             ` Ivan Gyurdiev
2005-01-12 23:32       ` Luke Kenneth Casson Leighton
2005-01-13 13:56         ` James Carter
2005-01-13 16:46           ` Luke Kenneth Casson Leighton
2005-01-13 16:16         ` Stephen Smalley
2005-01-13 16:48           ` Luke Kenneth Casson Leighton
2005-01-13 16:37             ` Stephen Smalley
2005-01-13 17:19               ` Luke Kenneth Casson Leighton
2005-01-13 17:10                 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.