Gentoo Archives: gentoo-hardened

From: "Jan Dušek" <j.d@×××××××××.cz>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] vixie-cron not working at all
Date: Mon, 08 Mar 2004 14:24:18
Message-Id: 404C820A.2010103@most.ujep.cz
1 Hi, is there a reason why shouldn't vixie-cron work at all on my SELinux?
2
3 Here is what happens:
4
5 (I'm in permissive mode.)
6 $ crontab /etc/crontab
7 $ crontab -e
8
9 this is what I got:
10 # for vixie cron
11 # remember to give cron a sighup when updating this file
12 #
13 # $Header: /home/cvsroot/gentoo-x86/sys-apps/vixie-cron/files/crontab,v
14 1.3 2003
15 #
16
17 # Global variables
18 SHELL=/bin/bash
19 PATH=/sbin:/bin:/usr/sbin:/usr/bin
20 MAILTO=root
21 HOME=/
22
23 # just test
24 * * * * * echo "1" > /tmp/test.txt
25
26 # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
27 */15 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons
28 0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly
29 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily
30 15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly
31 30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly
32
33 # EOF
34
35 $ killall -HUP cron
36 (or even)
37 $ /etc/init.d/vixie-cron restart
38
39 This works on my non-SELinux systems but on the SELinux system nothing
40 happens. The cron jobs just aren't executed (tested on the /tmp/test.txt
41 file).
42
43 The only error I get regarging this is the well known urandom thing:
44
45 avc: denied { read } for pid=4385 exe=/usr/bin/crontab name=urandom
46 dev=08:03 ino=325496 scontext=root:sysadm_r:sysadm_crontab_t
47 tcontext=system_u:object_r:random_device_t tclass=chr_file
48
49
50 Btw this all happens when in permissive mode so it shouldn't be
51 SELinux's fault, but it works on all my non-SELinux gentoo systems so I
52 though there may be some relation...
53
54
55 Any ideas?
56
57 --jd
58
59 --
60 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] vixie-cron not working at all Daniel <nulusdan@××××××××××××.net>