All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] Add support for the samhain program
@ 2010-11-09  3:33 HarryCiao
       [not found] ` <SNT139-w4060518B7D42FDC9CB94CEAB320@phx.gbl>
  0 siblings, 1 reply; 17+ messages in thread
From: HarryCiao @ 2010-11-09  3:33 UTC (permalink / raw)
  To: refpolicy


Hi SELinux experts:

I have tried to add support for the samhain program, which is used to check filesystem integrity. Please help comment on the attached implementation of the samhain.pp, many thanks! 

I have tested it on the samhain-2.5.5 package with the default configuration by the follow commands, and samhain could detect changes as to be monitored in its configuration file (/etc/samhainrc):

(In sysadm_r role, install samhain.pp and update sysadm.pp)
1. Initialize database:
newrole -l s15:c0.c1023 -- -c "samhain -t init"

2. Check samhain daemon status:
run_init /etc/init.d/samhain status

3. Start samhain in daemon mode:
run_init /etc/init.d/samhain start
or,
newrole -l s15:c0.c1023 -- -c "samhain -t check -D"

4. Stop samhain daemon:
run_init /etc/init.d/samhain stop


Tow more questions:
1. sysadm or secadm, who is a better choice to call samhain_admin() for? sysadm could manage /var/log/, /var/lib/ already but doesn't belong to the mlsfilewrite attribute, well secadm has the opposite abilities.

Or some other better solution?

2. Would the samhain_run_init_script() make sense if the samhain_admin() is called for secadm?

Thanks a lot!

Best regards,
Harry 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20101109/e6e1395d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v0-Add-support-for-the-samhain-program.patch
Type: text/x-patch
Size: 10489 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20101109/e6e1395d/attachment-0001.bin 

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

end of thread, other threads:[~2010-12-16 13:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09  3:33 [refpolicy] Add support for the samhain program HarryCiao
     [not found] ` <SNT139-w4060518B7D42FDC9CB94CEAB320@phx.gbl>
2010-11-11 12:18   ` [refpolicy] FW: " Dominick Grift
2010-11-12 10:27     ` HarryCiao
2010-11-12 11:53       ` Dominick Grift
2010-11-15  1:54         ` HarryCiao
2010-11-15 12:35           ` Dominick Grift
2010-11-16  7:03             ` HarryCiao
2010-11-16  7:11               ` HarryCiao
2010-11-17 14:02                 ` Christopher J. PeBenito
2010-11-18  6:33                   ` HarryCiao
2010-11-19 15:20                     ` Christopher J. PeBenito
2010-11-22 10:57                       ` HarryCiao
2010-11-30 15:07                         ` Christopher J. PeBenito
2010-12-04 12:54                           ` HarryCiao
2010-12-15 19:08                             ` Christopher J. PeBenito
2010-12-16 10:17                               ` HarryCiao
2010-12-16 13:28                                 ` 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.