From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Erich Schubert <erich@debian.org>
Cc: russell@coker.com.au, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: [idea] file contexts "alternate" keyword
Date: Sat, 4 Sep 2004 15:06:09 +0100 [thread overview]
Message-ID: <20040904140609.GF4084@lkcl.net> (raw)
In-Reply-To: <1094297930.6427.7.camel@wintermute.xmldesign.de>
On Sat, Sep 04, 2004 at 01:38:50PM +0200, Erich Schubert wrote:
> Hi,
>
> > This sounds like a reasonable feature request. But we need a good way of
> > implementing it.
>
> We could require that they have the exact same pattern and follow each
> other in the file_contexts file.
> Maybe adding some flag as suggested earlier, like "alternate".
>
> /var/www(/.*)? system_u:object_r:httpd_sys_script_exec_t alternate
> /var/www(/.*)? system_u:object_r:httpd_sys_content_t
>
> (maybe adding "default" to the second, to make it more userfriendly)
the solution to ensuring that a setfiles run (make relabel)
is done correctly is to record, in a separate file/database
(e.g. file_context_alt_labels) what the present "fourth
parameter" is.
[a database would be better than a flat file].
the index would need to be the regexp (e.g. /var/www/(/.*)?) and the
data would need to be the "fourth parameter" (e.g. "alternate").
l.
--
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 prev parent reply other threads:[~2004-09-04 13:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-03 16:57 [idea] file contexts "alternate" keyword Luke Kenneth Casson Leighton
2004-09-03 19:47 ` Erich Schubert
2004-09-03 20:53 ` Luke Kenneth Casson Leighton
2004-09-04 0:33 ` Erich Schubert
2004-09-04 7:48 ` Russell Coker
2004-09-04 11:38 ` Erich Schubert
2004-09-04 14:06 ` Luke Kenneth Casson Leighton [this message]
2004-09-04 14:13 ` Erich Schubert
2004-09-04 15:22 ` Luke Kenneth Casson Leighton
2004-09-04 17:53 ` Erich Schubert
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=20040904140609.GF4084@lkcl.net \
--to=lkcl@lkcl.net \
--cc=erich@debian.org \
--cc=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.