From: Scott Cain <cain@cshl.org>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: FC3, Apache and CGI web app
Date: Wed, 02 Feb 2005 23:30:40 -0500 [thread overview]
Message-ID: <1107405040.3391.17.camel@localhost.localdomain> (raw)
In-Reply-To: <42016640.3050807@redhat.com>
On Wed, 2005-02-02 at 18:46 -0500, Daniel J Walsh wrote:
> Scott Cain wrote:
> > [...snip...]
> >
> First make sure you have the latest policy, via yum
>
> yum update selinux-policy-targeted
>
Check!
> Next make sure httpd_unified is set
>
> setsebool -P httpd_unified 1
Check; # sudo cat /etc/selinux/targeted/booleans
allow_ypbind=1
dhcpd_disable_trans=0
httpd_disable_trans=1
httpd_enable_cgi=1
httpd_enable_homedirs=1
httpd_ssi_exec=1
httpd_tty_comm=1
httpd_unified=1
mysqld_disable_trans=0
named_disable_trans=0
named_write_master_zones=0
nscd_disable_trans=0
ntpd_disable_trans=0
portmap_disable_trans=0
postgresql_disable_trans=0
snmpd_disable_trans=0
squid_disable_trans=0
syslogd_disable_trans=0
winbind_disable_trans=0
ypbind_disable_trans=0
>
> Now try it.
Check (and I restarted httpd, to answer Colin's question)
>
> Look for AVC messages in /var/log/messages which will tell you what is
> being denied.
> http://fedora.redhat.com/docs/selinux-apache-fc3/
> has a lot of information on settingup apache and SElinux.
Here we go from /var/log/messages:
Feb 2 23:23:13 localhost kernel: audit(1107404593.566:0): avc: denied
{ read } for pid=3792 exe=/usr/bin/perl name=tmp dev=hda2 ino=4243590
scontext=root:system_r:httpd_sys_script_t
tcontext=system_u:object_r:tmp_t tclass=lnk_file
So what can I do to make this work?
Thanks,
Scott
>
> Dan
>
>
--
------------------------------------------------------------------------
Scott Cain, Ph. D. cain@cshl.org
GMOD Coordinator (http://www.gmod.org/) 216-392-3087
Cold Spring Harbor Laboratory
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2005-02-03 4:34 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-02 21:07 FC3, Apache and CGI web app Scott Cain
2005-02-02 23:46 ` Daniel J Walsh
2005-02-03 4:30 ` Scott Cain [this message]
2005-02-03 14:51 ` Daniel J Walsh
2005-02-03 15:25 ` Scott Cain
2005-02-03 15:35 ` Daniel J Walsh
2005-02-03 15:48 ` Scott Cain
2005-02-03 15:52 ` Stephen Smalley
2005-02-03 15:59 ` Daniel J Walsh
2005-02-03 16:01 ` Scott Cain
2005-02-03 16:11 ` Daniel J Walsh
2005-02-03 16:57 ` Scott Cain
2005-02-03 3:01 ` Colin Walters
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1107405040.3391.17.camel@localhost.localdomain \
--to=cain@cshl.org \
--cc=dwalsh@redhat.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.