All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Possible regression and bug in userdom_base_user_template
@ 2010-02-24 10:54 Michal Svoboda
  2010-02-24 14:29 ` Christopher J. PeBenito
  2010-02-24 14:36 ` Daniel J Walsh
  0 siblings, 2 replies; 15+ messages in thread
From: Michal Svoboda @ 2010-02-24 10:54 UTC (permalink / raw)
  To: refpolicy

Hi,

I use a call like userdom_base_user_template(foo) to create foo_u, foo_r
and foo_t. On my debian installation with refpolicy 20080702, this
creates the following:

sesearch --allow -s foo_t -p execute_no_trans
   allow foo_t ld_so_t : file { ioctl read getattr execute execute_no_trans } ; 
   allow foo_t usr_t : file { ioctl read getattr lock execute execute_no_trans } ; 

Fast forward to today's refpolicy (or at least the one in fedora 12),
and you get

   allow foo_usertype application_exec_type : file { ioctl read getattr lock execute execute_no_trans open } ;
   allow foo_usertype bin_t : file { ioctl read getattr lock execute execute_no_trans open } ;
   allow foo_usertype chroot_exec_t : file { ioctl read getattr lock execute execute_no_trans open } ;
   allow foo_t usr_t : file { ioctl read getattr execute execute_no_trans open } ;
   allow foo_usertype ld_so_t : file { ioctl read getattr execute execute_no_trans open } ;
   allow foo_usertype shell_exec_t : file { ioctl read getattr lock execute execute_no_trans open } ;

So here go my questions:
1) What's the story with the usr_t? The only executable files with that
label are possibly in /usr/games, and that one could have its own
usrgames_t or so.
2) Why such an implosion of executable permissions? On the old system,
the new user can't execute almost anything, on the new system such an
identity equals free shell access.

Regards,
Michal Svoboda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100224/bb69f532/attachment-0001.bin 

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

end of thread, other threads:[~2010-03-03 20:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 10:54 [refpolicy] Possible regression and bug in userdom_base_user_template Michal Svoboda
2010-02-24 14:29 ` Christopher J. PeBenito
2010-02-24 15:10   ` Alan Rouse
2010-02-24 14:36 ` Daniel J Walsh
2010-03-01 10:22   ` Michal Svoboda
2010-03-01 13:39     ` Daniel J Walsh
2010-03-01 13:42     ` Christopher J. PeBenito
2010-03-01 15:01       ` Michal Svoboda
2010-03-01 15:32         ` Christopher J. PeBenito
2010-03-01 17:03           ` Michal Svoboda
2010-03-01 17:48             ` Martin Orr
2010-03-01 20:14               ` Michal Svoboda
2010-03-02 14:13                 ` Christopher J. PeBenito
2010-03-02 14:19                   ` Daniel J Walsh
2010-03-03 20:22                     ` Michal Svoboda

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.