Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: rawhide strict & crond: msg#00222

Subject: Re: rawhide strict & crond
Hi;

It looked that way : 

[root@dragon bin]# ls -lZ /var/spool/cron/
-rw-------  root     root     root:object_r:sysadm_cron_spool_t apache

I created the cron entry as root/sysadm_r with the -u flag for user
apache. 

After i changed it to root:object_r:user_cron_spool_t it worked !
THX

hb

Am Dienstag, den 26.04.2005, 07:35 -0400 schrieb Stephen Smalley: 
> On Tue, 2005-04-26 at 10:05 +0200, Holger Burde wrote:
> > I tried to run a cron job from the apache account but nothing happends
> > beside a entry in /var/log/cron :
> > 
> > Apr 26 10:51:49 dragon crond[4284]: (CRON) STARTUP (V5.0)
> > Apr 26 10:51:49 dragon crond[4284]: (apache) ENTRYPOINT FAILED
> > (cron/apache)
> > 
> > (wrong context? )
> 
> Yes; crond applies an entrypoint permission check of its own between the
> security context for the cron job process and the security context on
> the crontab file to prevent tricking a more trusted cron job process
> (e.g. root's cron jobs) from running untrustworthy input.  What does ls
> -Z /var/spool/cron/ show?  In the absence of an explicit user identity
> for apache in the SELinux policy, I'd expect the apache crontab to be
> labeled <user>:object_r:user_cron_spool_t (the <user> doesn't matter;
> could be system_u or user_u or root).
> 
> > audit2allow -i /var/log/messages -l
> > nothing ...
> 
> Yes, it isn't a kernel denial; it is a check by crond.
> 
-- 
Holger Burde <hburde@xxxxxxxxxxx>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe