All of lore.kernel.org
 help / color / mirror / Atom feed
* prelink, cron-job and SELinux compliance
@ 2008-03-08 10:01 Stefan Schulze Frielinghaus
  2008-03-10 13:00 ` Daniel J Walsh
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Schulze Frielinghaus @ 2008-03-08 10:01 UTC (permalink / raw)
  To: selinux

In RHEL/CentOS 5.1 a cron job (/etc/cron.daily/prelink) runs prelink.
The cron job itself removes a file (/etc/prelink.cache) if necessary and
updates the database. This does not work with the strict SELinux policy.

To solve this I patched the prelink application to
use /var/cache/prelink/prelink.cache instead of /etc/prelink.cache
This would make it more easier to write SELinux policies. But know my
actual question is how to modify the cron job to work properly? All cron
jobs on my system are labeled as bin_t. This would mean that
system_crond_t needs write/create etc. permissions
on /var/cache/prelink. Thats not really nice and I would prefer to
create a domain like cron_script_prelink_t for /etc/cron.daily/prelink
which gets all the rights to manage /var/cache/prelink.

What are your ideas to handle cron scripts properly?


--
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] 4+ messages in thread

end of thread, other threads:[~2008-03-17 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-08 10:01 prelink, cron-job and SELinux compliance Stefan Schulze Frielinghaus
2008-03-10 13:00 ` Daniel J Walsh
2008-03-16 11:45   ` Stefan Schulze Frielinghaus
2008-03-17 18:37     ` Daniel J Walsh

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.