logo       

Re: HELP: transition denied regardless of policy?: msg#00182

Subject: Re: HELP: transition denied regardless of policy?
On Thu, 2005-05-26 at 03:39 +0200, Aleksander Adamowski wrote:
> Hi!
> 
> I'm having a problem with FC3 strict policy. Basically, I've customised 
> the policy to cover all that I need on that system, but there's one last 
> denial that I'm unable to remedy:
> 
> May 26 03:26:01 machinename kernel: audit(1117070761.996:0): avc:  
> denied  { transition } for  pid=11773 exe=/bin/bash 
> path=/home/twiki/bin/mailnotify dev=hda1 ino=51463 
> scontext=root:sysadm_r:sysadm_crond_t tcontext=root:system_r:twiki_t 
> tclass=process

Note that the above transition involves a role change, not just a type
change.  Hence, you are hitting a constraint in policy/constraints that
says that a process may not change roles unless it meets certain
restrictions.  The role transition is occurring because you have
declared it as a daemon domain, thus it is trying to transition to the
system_r role for system processes.

Questions:
- Do you truly want this to run in the same domain when it is run from
httpd as when it is run from the cron job?  This implies that it has the
same permissions in both cases.  For example, I might envision the cron
job as being more trusted (as it was set up by the admin) than the
process spawned from httpd, and I doubt you want a httpd-spawned process
to be able to attack the cron job if it happens to be running
simultaneously.  You can define two different domains, with a shared
exec type, such that the cron job will transition to one domain and
httpd will transition to another domain when they run the program.
- Is using daemon_domain truly appropriate here?  I'm a little
skeptical.
- Why are you giving it access to unlabeled_t?  Suggests some other
problem with your filesystem labels or use of non-labeled fs.

-- 
Stephen Smalley
National Security Agency



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

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
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