From: Daniel J Walsh <dwalsh@redhat.com>
To: Scott Cain <cain@cshl.org>
Cc: selinux@tycho.nsa.gov
Subject: Re: FC3, Apache and CGI web app
Date: Thu, 03 Feb 2005 09:51:33 -0500 [thread overview]
Message-ID: <42023A75.7050501@redhat.com> (raw)
In-Reply-To: <1107405040.3391.17.camel@localhost.localdomain>
Scott Cain wrote:
>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
>
>
>
You would have to write policy at this point. Allowing scripts to read
sym links off of /tmp would
be considered dangerous.
But this would a bug, since you have httpd_disable_trans set to 1, you
should not be running as httpd_sys_script_t.
selinux-policy-targeted-1.17.30-2.76 Will prevent this transition.
I have put out a version on
ftp://people.redhat.com/dwalsh/SELinux/FC3
This will go into Fedora-testing tonight. Please try it out and see if
it fixes the transition problem. IE your scripts should be running under
unconfined_t.
Dan
>So what can I do to make this work?
>
>Thanks,
>Scott
>
>
>
>>Dan
>>
>>
>>
>>
--
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 14:51 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
2005-02-03 14:51 ` Daniel J Walsh [this message]
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=42023A75.7050501@redhat.com \
--to=dwalsh@redhat.com \
--cc=cain@cshl.org \
--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.