All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] two fixups for mount_t: uses mount.tmpfs and manage lock files
@ 2010-12-21  3:16 HarryCiao
  2011-01-10 14:10 ` Christopher J. PeBenito
  0 siblings, 1 reply; 5+ messages in thread
From: HarryCiao @ 2010-12-21  3:16 UTC (permalink / raw)
  To: refpolicy



1. Since the mount program would make use of the shell script of mount.tmpfs
to preserve the mountpoint's security context across mounting if it ever
makes sense, the mount domain should have been able to execute the shell
and rw its fifo files.
 
type=1400 audit(1292851031.156:19): avc: denied { execute } for pid=513 comm="mount" name="bash" dev=sda ino=98324 scontext=system_u:system_r:mount_t:s0-s15:c0.c1023 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file
type=1400 audit(1288069794.081:6): avc: denied { getattr } for pid=92 comm="mount.tmpfs" path="pipe:[2444]" dev=pipefs ino=2444 scontext=system_u:system_r:mount_t tcontext=system_u:system_r:mount_t tclass=fifo_file
type=1400 audit(1288069794.085:7): avc: denied { write } for pid=92 comm="mount.tmpfs" path="pipe:[2444]" dev=pipefs ino=2444 scontext=system_u:system_r:mount_t tcontext=system_u:system_r:mount_t tclass=fifo_file
type=1400 audit(1288069794.149:8): avc: denied { read } for pid=93 comm="grep" path="pipe:[2444]" dev=pipefs ino=2444 scontext=system_u:system_r:mount_t tcontext=system_u:system_r:mount_t tclass=fifo_file
type=1400 audit(1288069794.225:9): avc: denied { ioctl } for pid=95 comm="ls" path="pipe:[2446]" dev=pipefs ino=2446 scontext=system_u:system_r:mount_t tcontext=system_u:system_r:mount_t tclass=fifo_file
 
 
2. While the mount program writes into /etc/mtab, it needs to create
a lock file under /var/lock/, otherwise the /etc/mtab would be empty.
 
type=1400 audit(1287984885.601:19): avc: denied { write } for pid=471 comm="mount" name="lock" dev=sda ino=114693 scontext=system_u:system_r:mount_t tcontext=system_u:object_r:var_lock_t tclass=dir
can't create lock file /var/lock/mtab~471: Permission denied (use -n flag to override) 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20101221/958c011d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mount_t-uses-tmpfs-helper.patch
Type: application/octet-stream
Size: 2551 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20101221/958c011d/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-mount_t-manage-lock-files.patch
Type: application/octet-stream
Size: 1290 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20101221/958c011d/attachment-0001.obj 

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

end of thread, other threads:[~2011-01-17 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-21  3:16 [refpolicy] two fixups for mount_t: uses mount.tmpfs and manage lock files HarryCiao
2011-01-10 14:10 ` Christopher J. PeBenito
2011-01-11  3:46   ` HarryCiao
2011-01-17 11:06     ` HarryCiao
2011-01-17 14:07       ` Christopher J. PeBenito

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.