under SELinux cron launch scripts in wrong contexts

Bug #553902 reported by montjoie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
selinux (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: selinux

After a fresh install of an ubuntu hardy i installed selinux (via apt-get install selinux)
i created a basic cron:
cat /etc/cron.d/testeur :
* * * * * syncuser /usr/bin/testeur

I check the context of my cron and it is pam_console_t

ps auxZ |grep -iE 'cron|test'
system_u:system_r:initrc_t root 4050 0.0 0.8 18620 1004 ? Ss 09:30 0:00 /usr/sbin/cron
system_u:system_r:initrc_t root 4150 0.0 0.8 27156 992 ? S 09:33 0:00 /USR/SBIN/CRON
system_u:system_r:pam_console_t root 4151 0.0 0.4 3944 564 ? Ss 09:33 0:00 /bin/sh -c /usr/bin/testeur
system_u:system_r:pam_console_t root 4152 0.0 0.9 8900 1136 ? S 09:33 0:00 /bin/bash /usr/bin/testeur

I made no modification of anything.
The selinux config/modules is not modified

For me pam_console_t is certainly not the right context for a cron

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.