All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Justin R. Smith" <jsmith@mcs.drexel.edu>
To: selinux@tycho.nsa.gov
Subject: Additions to file_contexts
Date: 08 Oct 2001 16:02:13 -0400	[thread overview]
Message-ID: <1002571333.3666.57.camel@jsmith.org> (raw)

I run Java servlets (using the Jakarta Tomcat engine) from my web site,
so I added the following lines to the setfiles/file_context file, since
servlets are LIKE scripts (sort of):

/var/www/tomcat(|/.*)           system_u:object_r:httpd_user_script_rw_t
/var/www/classes(|/.*)          system_u:object_r:httpd_user_script_rw_t

Note: /var/www/classes is a directory containing classes used by all
servlets and is in the Java CLASSPATH. /var/www/tomcat contains tomcat
and all deployed web applications.

I also had to make my html content writable because my cgi scripts and
servlets frequently write to it. 

In addition, Tomcat likes to compile jsp into servlets and, therefore,
must be able to write to its work directory.

-- 



--
You have received this message because you are subscribed to the selinux 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:[~2001-10-08 20:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-08 20:02 Justin R. Smith [this message]
2001-10-09 15:34 ` Additions to file_contexts Stephen Smalley

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=1002571333.3666.57.camel@jsmith.org \
    --to=jsmith@mcs.drexel.edu \
    --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.