logo       

Re: httpd controls ?: msg#00191

Subject: Re: httpd controls ?
On Wed, 30 Mar 2005 10:35:22 -0500, Stephen Smalley <sds@xxxxxxxxxxxxx> wrote:
> On Wed, 2005-03-30 at 09:32 -0600, Christofer C. Bell wrote:
> > Look into use of the audit2allow utility for converting denied
> > messages into rules that allow the behavior that was denied. The the
> > short of it is:
> >
> > # cd /etc/selinux/targeted/src
> > # audit2allow -d -l -o domains/misc/local.te && make load
> >
> > Repeat until your script works and then clean up the local.te file's
> > formatting (not necessary).
> 
> The problem with the above sequence is it will directly allow those
> permissions to the original domain of the script; hence, all CGI scripts
> would end up having those permissions.  Better to define a separate
> httpd_passwd_t domain modeled after the passwd_t domain in the strict
> policy and set up a domain transition into this domain only for the
> script in question.

That's a very good point and really bears spelling out.  How would one
go about creating the new domain and then implementing the proper
transition for just one set of CGI scripts?  I ask because I (was)
running Open WebMail and ran into the case where I needed to
effectively disable SELinux controls over all CGI scripts to allow OWM
to run.  I would have preferred the case where these controls were
removed *only* for the relavent scripts, allowing the remaining
scripts to keep the protections afforded by the default policy.

-- 
Chris

"Build a man a fire and he will be warm for the rest of the night.  Set
a man on fire and he will be warm for the rest of his life."  -- Unknown



<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