Re: Polyinstantiation in cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 25, 2008, at 6:43 AM, Stephen Smalley wrote:

On Mon, 2008-11-24 at 22:00 -0600, Joe Nall wrote:
I created a normal user (urss) and added a crontab entry for that user
that runs a script. I can get the script launched at level, but not
polyinstantiated. A 'cat /proc/mounts' shows no polyinstantiation for
the cron session, but a normal login session has properly
polyinstantiated directories.

The crontab entry looks like:

SELINUX_ROLE_TYPE=user_u:user_r:user_t:UNCLASSIFIED-UNCLASSIFIED
* * * * * /opt/jcdx/libexec/urss-rss2email-cron.sh
SELINUX_ROLE_TYPE=user_u:user_r:user_t:UNCLASSIFIED-UNCLASSIFIED
* * * * * /opt/jcdx/libexec/urss-delivermail-cron.sh

The relevant portion of /opt/jcdx/libexec/urss-delivermail-cron.sh

#!/bin/bash
id
ls -Z /var/mailboxes
cat /proc/mounts

Have I missed some cron specific pam configuration? Did this work for
RHEL 5.X LSPP?

Does /etc/pam.d/cron contain pam_namespace.so?

It did not and that fixed it. I'll do some more research and file a bugzilla if required. Thanks.

joe




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

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux