All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom <tom@lemuria.org>
To: selinux@tycho.nsa.gov
Subject: Apache 2 file contexts
Date: Tue, 8 Oct 2002 16:00:33 +0200	[thread overview]
Message-ID: <20021008160033.A5253@lemuria.org> (raw)

Having just installed Apache 2 (from the sid Debian packages) on my
SELinux test system, I found that it works flawless once some additions
to the apache.fc file have been made. Here's a preliminary patch, I
haven't yet experimented with CGIs, vhosts and SSL:


*** /usr/share/selinux/policy/default/file_contexts/program/apache.fc   Wed Oct  2 02:12:59 2002
--- apache.fc   Tue Oct  8 17:54:13 2002
***************
*** 9,22 ****
  /etc/httpd/conf(/.*)?         system_u:object_r:httpd_config_t
  /etc/httpd/logs                       system_u:object_r:httpd_log_files_t
  /etc/httpd/modules            system_u:object_r:httpd_modules_t
  /usr/lib/apache(/.*)?         system_u:object_r:httpd_modules_t
  /usr/sbin/httpd                       system_u:object_r:httpd_exec_t
  /usr/sbin/apache              system_u:object_r:httpd_exec_t
  /usr/sbin/suexec              system_u:object_r:httpd_suexec_exec_t
  /usr/lib/cgi-bin/(nph-)?cgiwrap(d)? system_u:object_r:httpd_suexec_exec_t
  /usr/lib/apache/suexec                system_u:object_r:httpd_suexec_exec_t
  /var/log/httpd(/.*)?          system_u:object_r:httpd_log_files_t
! /var/log/apache(/.*)?         system_u:object_r:httpd_log_files_t
  /var/log/cgiwrap.log.*                system_u:object_r:httpd_log_files_t
  /var/cache/ssl.*\.sem         system_u:object_r:httpd_cache_t
! /var/run/apache.pid.*         system_u:object_r:httpd_var_run_t
--- 9,28 ----
  /etc/httpd/conf(/.*)?         system_u:object_r:httpd_config_t
  /etc/httpd/logs                       system_u:object_r:httpd_log_files_t
  /etc/httpd/modules            system_u:object_r:httpd_modules_t
+ /etc/apache(2)?(/.*)?         system_u:object_r:httpd_config_t
+ /etc/vhosts                   system_u:object_r:httpd_config_t
+ /usr/lib/cgi-bin(/.*)?                system_u:object_r:httpd_sys_script_t
  /usr/lib/apache(/.*)?         system_u:object_r:httpd_modules_t
+ /usr/lib/apache2/modules(/.*)?        system_u:object_r:httpd_modules_t
  /usr/sbin/httpd                       system_u:object_r:httpd_exec_t
  /usr/sbin/apache              system_u:object_r:httpd_exec_t
+ /usr/sbin/apache2             system_u:object_r:httpd_exec_t
  /usr/sbin/suexec              system_u:object_r:httpd_suexec_exec_t
+ /usr/lib/apache2/suexec2      system_u:object_r:httpd_suexec_exec_t
  /usr/lib/cgi-bin/(nph-)?cgiwrap(d)? system_u:object_r:httpd_suexec_exec_t
  /usr/lib/apache/suexec                system_u:object_r:httpd_suexec_exec_t
  /var/log/httpd(/.*)?          system_u:object_r:httpd_log_files_t
! /var/log/apache(2)?(/.*)?     system_u:object_r:httpd_log_files_t
  /var/log/cgiwrap.log.*                system_u:object_r:httpd_log_files_t
  /var/cache/ssl.*\.sem         system_u:object_r:httpd_cache_t
! /var/run/apache(2)?.pid.*     system_u:object_r:httpd_var_run_t


-- 
PGP/GPG key: http://web.lemuria.org/pubkey.html
pub  1024D/2D7A04F5 2002-05-16 Tom Vogt <tom@lemuria.org>
     Key fingerprint = C731 64D1 4BCF 4C20 48A4  29B2 BF01 9FA1 2D7A 04F5

--
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.

             reply	other threads:[~2002-10-08 14:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 14:00 Tom [this message]
2002-10-08 17:06 ` Apache 2 file contexts Russell Coker
2002-10-09 10:29   ` Tom
2002-10-09 15:25   ` Tom
2002-10-09 19:34     ` Russell Coker

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=20021008160033.A5253@lemuria.org \
    --to=tom@lemuria.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.