From: Russell Coker <russell@coker.com.au>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: Problem relabeling journalfile
Date: Tue, 16 Sep 2003 02:51:25 +1000 [thread overview]
Message-ID: <200309160251.25816.russell@coker.com.au> (raw)
In-Reply-To: <1063640607.13311.156.camel@moss-spartans.epoch.ncsc.mil>
On Tue, 16 Sep 2003 01:43, Stephen Smalley wrote:
> Patch below. Note that you should escape dot since it will otherwise be
> interpreted as "any character" by the regular expression matching code,
> and we should include entries for common filesystem mount points to
> cover most cases, similar to the existing entries for lost+found. We
> can likely drop out the persistent label mapping entries entirely aside
> from backward compatibility support for the old SELinux.
Do you think it would be beneficial to have a method of specifying rules that
apply relative to the root of a file system instead of to the root?
EG:
FS/.journal
FS/lost\+found
FS/quota.user
FS/quota.group
With the current operation of setfiles for completeness we have to add such
entries for every new mount point. Having setfiles accept such a spec when
labeling an entire file system would be easy to code, and it wouldn't be
really difficult to manage the case of "setfiles -s".
--
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.
next prev parent reply other threads:[~2003-09-15 16:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-15 14:50 Problem relabeling journalfile Dale Amon
2003-09-15 14:53 ` Stephen Smalley
2003-09-15 15:29 ` Dale Amon
2003-09-15 15:43 ` Stephen Smalley
2003-09-15 16:51 ` Russell Coker [this message]
2003-09-15 17:46 ` Stephen Smalley
2003-09-15 18:40 ` Colin Walters
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=200309160251.25816.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=sds@epoch.ncsc.mil \
--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.