Skip to contentSkip to conversation

cron on strict policy

DISCUSSION Shintaro Fujiwara 3 participants 3 messages Jan 3, 2007 – Jan 7, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi
,
I'm in trouble on cron, again.
I've installed strict policy 21 on FC6 to my internet server. I found cron does not run at all.
I imagine it's a role problem perhaps ?
Should I write role statement in cron.te ?

I semodule -r cron ed, and using
refpolicy's cron.te I used to use on FC5.

I edited /etc/crontab and
#crontab /etc/crontab
on permissive mode.

When permissive mode, it runs leaving messages something like "Unauthorized SELinux context but persissive mode continuing" Of course I'm now running my server on strict mode, so the cron goes like this...
This is the cron log.
---------------------------------------
#less /var/log/cron

STARTUP (V5.0)

Dec 30 07:17:20 intrajp crond[1637]: (system_u) Unauthorized SELinux
context (/etc/crontab)
Dec 30 07:17:20 intrajp crond[1637]: (root) Unauthorized SELinux

context (cron/root)

Unauthorized SELinux context
---------------------------------------
This is the security context.
[root@intrajp ~]# ls -laZ /etc/crontab
-rw-r--r-- root root system_u:object_r:system_cron_spool_t:s0 /etc/crontab

Thanks in advance.

My homepage
http://intrajp.no-ip.com/

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 7 lines · Shintaro Fujiwara

Hi
,
I'm in trouble on cron, again.
I've installed strict policy 21 on FC6 to my internet server. I found cron does not run at all.
I imagine it's a role problem perhaps ?
Should I write role statement in cron.te ?

File a bug report against the FC6 cron - it is broken.

Quoted 38 lines

I semodule -r cron ed, and using
refpolicy's cron.te I used to use on FC5.

I edited /etc/crontab and
#crontab /etc/crontab
on permissive mode.

When permissive mode, it runs leaving messages something like "Unauthorized SELinux context but persissive mode continuing" Of course I'm now running my server on strict mode, so the cron goes like this...
This is the cron log.
---------------------------------------
#less /var/log/cron

STARTUP (V5.0)

Dec 30 07:17:20 intrajp crond[1637]: (system_u) Unauthorized SELinux
context (/etc/crontab)
Dec 30 07:17:20 intrajp crond[1637]: (root) Unauthorized SELinux

context (cron/root)

Unauthorized SELinux context
---------------------------------------
This is the security context.
[root@intrajp ~]# ls -laZ /etc/crontab
-rw-r--r-- root root system_u:object_r:system_cron_spool_t:s0 /etc/crontab

Thanks in advance.

My homepage
http://intrajp.no-ip.com/

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 1 line

File a bug report against the FC6 cron - it is broken.

Thank you very much Mr.Smalley.

I cautiously changed my cron.pp to strict-policy's original one.

IT WORKED FINE !

I'm sorry, I've been writing bad .te .fc files and messed up.

I used selinux-policy-strict-2.4.6-13.fc6-noarch.rpm.

I understand my problem was that I try to install refpolicy's cron to strict policy...

All I need to do is to write policy of my own.

Thank you !

2007-01-05 (金) の 10:38 -0500 に Stephen Smalley さんは書きました:

Quoted 9 lines · Shintaro Fujiwara
Quoted 7 lines

Hi
,
I'm in trouble on cron, again.
I've installed strict policy 21 on FC6 to my internet server. I found cron does not run at all.
I imagine it's a role problem perhaps ?
Should I write role statement in cron.te ?

Quoted 40 lines

File a bug report against the FC6 cron - it is broken.

Quoted 38 lines

I semodule -r cron ed, and using
refpolicy's cron.te I used to use on FC5.

I edited /etc/crontab and
#crontab /etc/crontab
on permissive mode.

When permissive mode, it runs leaving messages something like "Unauthorized SELinux context but persissive mode continuing" Of course I'm now running my server on strict mode, so the cron goes like this...
This is the cron log.
---------------------------------------
#less /var/log/cron

STARTUP (V5.0)

Dec 30 07:17:20 intrajp crond[1637]: (system_u) Unauthorized SELinux
context (/etc/crontab)
Dec 30 07:17:20 intrajp crond[1637]: (root) Unauthorized SELinux

context (cron/root)

Unauthorized SELinux context
---------------------------------------
This is the security context.
[root@intrajp ~]# ls -laZ /etc/crontab
-rw-r--r-- root root system_u:object_r:system_cron_spool_t:s0 /etc/crontab

Thanks in advance.

My homepage
http://intrajp.no-ip.com/

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.