Re: Selinux problem - help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Track wrote:
Hi

I'm trying to get httpd to serve an index.cgi page, but I think that
selinux is stopping it. Could some one please help me fix this. The
file is located in /opt/web/serve/index.cgi.

The error I'm getting is:

audit(1152698374.032:438): avc:  denied  { execute } for  pid=15894
comm="httpd" name="index.cgi" dev=cciss/c0d0p7 ino=23920735
scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t
tclass=file

audit(1152698442.617:439): avc:  denied  { write } for  pid=15973
comm="httpd" name=".stats.conf.swp" dev=cciss/c0d0p2 ino=56213
scontext=root:system_r:httpd_t tcontext=root:object_r:httpd_config_t
tclass=file

audit(1152698535.680:440): avc:  denied  { write } for  pid=16073
comm="httpd" name=".stats.conf.swp" dev=cciss/c0d0p2 ino=56213
scontext=root:system_r:httpd_t tcontext=root:object_r:httpd_config_t
tclass=file

audit(1152698608.814:441): avc:  denied  { write } for  pid=16156
comm="httpd" name=".stats.conf.swp" dev=cciss/c0d0p2 ino=56213
scontext=root:system_r:httpd_t tcontext=root:object_r:httpd_config_t
tclass=file

audit(1152698609.891:442): avc:  denied  { execute } for  pid=16166
comm="httpd" name="index.cgi" dev=cciss/c0d0p7 ino=23920735
scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t
tclass=file

You should read "man httpd_selinux" and set contexts appropriately.

Your script should be httpd_sys_script_exec_t rather than usr_t.

You appear to be trying to write (from the server itself) to a file ".stats.conf.swp", which is a httpd configuration file (httpd_config_t). Is that really supposed to be happening?

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux