From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: SELinux ML <selinux@tycho.nsa.gov>
Subject: Re: file_contexts patch
Date: Sat, 17 Jul 2004 11:15:34 +0100 [thread overview]
Message-ID: <20040717101533.GB8887@lkcl.net> (raw)
In-Reply-To: <20040716201531.GB4940@obadja.jmh.mhn.de>
thomas,
i note the addition of /var/run/usb here.
is that because SuSE has modified the hotplug package
to place state information in that directory?
please advise, because i have raised a bug-request with
the debian hotplug maintainers, and i believe that the
upstream maintainers favour the use of /etc/hotplug/run
rather than /var/run/something.
the reason stated is because /var could be on a different partition
that may not have been mounted (bearing in mind that
/etc/init.d/mountall.sh is called first to mount local
partitions, and hotplug is pretty much immediately next,
and pretty much everything else is tertiary).
personally i think that reason is not good enough, because
if say you have /var on a firmware-based usb memory stick
(requiring a hotplug-generated event to load the firmware),
or /var is nfs-mounted over a firmware-based usb network card,
then you're really asking for a lot of trouble.
so, _if_ SuSE have made that decision, it would be good to know
the reasoning and to have some way of arm-twisting the hotplug
maintainers to a more sensible decision [that is FHS compliant
aside from anything else].
l.
On Fri, Jul 16, 2004 at 10:15:31PM +0200, Thomas Bleher wrote:
> The attached patch adds some file_contexts and most importantly labels
> libs under /opt correctly.
>
> Please apply.
>
> Thomas
>
> --
> http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages
> GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
> diff -urN orig/file_contexts/program/hotplug.fc mod/file_contexts/program/hotplug.fc
> --- orig/file_contexts/program/hotplug.fc 2004-06-19 10:31:43.000000000 +0200
> +++ mod/file_contexts/program/hotplug.fc 2004-07-16 22:10:08.000000000 +0200
> @@ -5,4 +5,5 @@
> /etc/hotplug/.*agent -- system_u:object_r:sbin_t
> /etc/hotplug/.*rc -- system_u:object_r:sbin_t
> /etc/hotplug/hotplug.functions -- system_u:object_r:sbin_t
> +/var/run/usb(/.*)? system_u:object_r:hotplug_var_run_t
>
--
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-07-17 10:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-16 20:15 file_contexts patch Thomas Bleher
2004-07-16 22:02 ` Russell Coker
2004-07-16 22:42 ` Thomas Bleher
2004-07-17 1:59 ` Russell Coker
2004-07-17 19:53 ` Thomas Bleher
2004-07-18 2:58 ` Russell Coker
2004-07-18 15:03 ` Thomas Bleher
2004-07-18 23:59 ` Russell Coker
2004-07-24 19:08 ` Thomas Bleher
2004-07-26 20:25 ` Stephen Smalley
2004-07-26 22:06 ` Thomas Bleher
2004-07-28 6:48 ` Russell Coker
2004-07-28 19:25 ` Stephen Smalley
2004-07-27 0:36 ` Valdis.Kletnieks
2004-07-27 13:38 ` Stephen Smalley
2004-07-27 17:17 ` Valdis.Kletnieks
2004-07-28 2:53 ` Russell Coker
2004-07-30 13:33 ` Stephen Smalley
2004-07-17 10:15 ` Luke Kenneth Casson Leighton [this message]
2004-07-17 13:52 ` Thomas Bleher
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=20040717101533.GB8887@lkcl.net \
--to=lkcl@lkcl.net \
--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.