All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <russell@coker.com.au>
To: selinux@tycho.nsa.gov
Subject: tmpfs_t
Date: Sat, 25 Jan 2003 16:57:08 +0100	[thread overview]
Message-ID: <200301251657.08983.russell@coker.com.au> (raw)

I have been looking into using tmpfs as /tmp .

Currently tmpfs is labeled tmpfs_t and there is no policy for allowing file 
creation under it.  So I have experimented with labelling it as tmp_t and 
changing the tmp_domain() macro to have the following rule:
allow $1_tmp_t tmp_t:filesystem associate;

To do this properly I would also have to change every
allow whatever fs_t:filesystem getattr;
to:
allow whatever { fs_t tmp_t }:filesystem getattr;

Or should I instead leave the tmpfs filesystem labelled as tmpfs_t and add 
appropriate file_type_auto_trans() rules for it?

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
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:[~2003-01-25 15:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-25 15:57 Russell Coker [this message]
2003-01-27 11:16 ` tmpfs_t Carsten Grohmann
  -- strict thread matches above, loose matches on Subject: below --
2003-01-27 13:20 tmpfs_t Stephen D. Smalley
2003-02-01 22:51 ` tmpfs_t Russell Coker
2003-02-04 18:36 tmpfs_t Stephen D. 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=200301251657.08983.russell@coker.com.au \
    --to=russell@coker.com.au \
    --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.