All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis Ressel <aranea@aixah.de>
To: selinux@tycho.nsa.gov
Subject: Re: Web Application access to files in /mnt/
Date: Sun, 12 Jan 2014 18:05:20 +0100	[thread overview]
Message-ID: <20140112180520.32098337@gentp.lnet> (raw)
In-Reply-To: <1389390257.20258.71.camel@x220.localdomain>

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

Additionally, I'd mount /mnt/store0 with the mount option
context=system_u:object_r:my_app_content_t and only grant your
application access on that, instead of file_t.

If you don't need the separation proposed by Dominick Grift (e.g.
because the video files are public anyway), you could even just do a
"mount -o context=system_u:object_r:httpd_sys_content_t ?? /mnt/store0"
without having to create a custom policy.


Regards,
Luis Ressel


-- 
Luis Ressel <aranea@aixah.de>
GPG fpr: F08D 2AF6 655E 25DE 52BC  E53D 08F5 7F90 3029 B5BD

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

  parent reply	other threads:[~2014-01-12 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-10 21:08 Web Application access to files in /mnt/ Ken Smith
2014-01-10 21:44 ` Dominick Grift
2014-01-12 17:04   ` luis
2014-01-12 17:05   ` Luis Ressel [this message]
2014-01-13 15:12     ` Daniel J Walsh

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=20140112180520.32098337@gentp.lnet \
    --to=aranea@aixah.de \
    --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.