From: Kenny <selinux@kfk2.com>
To: selinux@tycho.nsa.gov
Subject: Restrict File creation types
Date: 10 Jun 2004 12:26:12 -0500 [thread overview]
Message-ID: <20040610172612.25551.qmail@web.different1.com> (raw)
How would I go about restricting all files created in a certain
directory to a set of types. Eg:
I have Dir Types:
Dir_Type1_t
Dir_Type2_t
and file Types:
File_type_1a_t
File_type_1b_t
File_type_2a_t
File_type_2b_t
I want all files in Dir_Type1_t to be of types File_type_1a_t or
File_type_1b_t no matter the domain of the creating process
and all files in Dir_Type2_t to be of types File_type_2a_t or
File_type_2b_t.
(mkdir -Z user:object_r:File_type_2a_t TEST in a dir of type
Dir_Type2_t should fail as any user/role/domain)
I've tried looking through the logs with auditallow on for all the Dir
and File types, but didn't see anything where both types where listed
in the same allow statement. Is this even possible?
Kenny
--
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.
next reply other threads:[~2004-06-10 17:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 17:26 Kenny [this message]
2004-06-10 19:08 ` Restrict File creation types 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=20040610172612.25551.qmail@web.different1.com \
--to=selinux@kfk2.com \
--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.