policy for a cron-job
Hi,
since a couple of days I'm trying to create a policy for a cron-job. But every time system_crond_t won't change its context to mypackage_t. Here is my policy maybe someone can give me a hind?
daemon_domain(gentoo_rsync_mirror)
type gentoo_rsync_mirror_log_t, file_type, sysadmfile;
role system_r types gentoo_rsync_mirror_t;
role sysadm_r types gentoo_rsync_mirror_t;
ifdef(crond.te', system_crond_entry(gentoo_rsync_mirror_exec_t, gentoo_rsync_mirror_t) ')
Through this policy I wanted to write the next allow statements but the only thing I get from the avc is this one:
audit(1107421381.490:0): avc: denied { execute_no_trans } for pid=14902 exe=/bin/bash path=/opt/gentoo-rsync/rsync-gentoo-portage.sh dev=hda8 ino=730082 scontext=system_u:system_r:system_crond_t tcontext=system_u:object_r:gentoo_rsync_mirror_exec_t tclass=file
I don't unterstand the problem of my policy file because I have told the cron entry stuff. Any ideas?
-Stefan