Skip to contentSkip to conversation

automount policy

PATCH Russell Coker 3 participants 5 messages Sep 1, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The attached patch is needed for the latest rawhide automount.

Signature · 4 lines
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
program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +1 -1
@@ -66,4 +66,4 @@
 allow automount_t home_root_t:dir { getattr };
 allow automount_t mnt_t:dir { getattr search };
 
-allow initrc_t automount_etc_t:file getattr;
+allow initrc_t automount_etc_t:file { getattr read };
#1 lore raw
Quoted 11 lines · Russell Coker

The attached patch is needed for the latest rawhide automount.

------------------------------------------------------------------------

program/unused/automount.te line 69

Quoted 5 lines
program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +1 -1
@@ -66,4 +66,4 @@
 allow automount_t home_root_t:dir { getattr };
 allow automount_t mnt_t:dir { getattr search };
 
-allow initrc_t automount_etc_t:file getattr;
+allow initrc_t automount_etc_t:file { getattr read };

Why add this allow for everyone if it's just for rawhide?

Joshua Brindle
Hardened Gentoo

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#2 lore raw
Quoted 4 lines · Joshua Brindle

program/unused/automount.te line 69

Quoted 2 lines
program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +1 -1
-allow initrc_t automount_etc_t:file getattr;
+allow initrc_t automount_etc_t:file { getattr read };

Why add this allow for everyone if it's just for rawhide?

It appears to also be necessary for Debian. If Gentoo is different then we could have ifdef(distro_gentoo', ', ` before it.

Signature · 9 lines
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 [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 11 lines · Russell Coker
Quoted 7 lines · Joshua Brindle

program/unused/automount.te line 69

Quoted 4 lines
program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +1 -1
-allow initrc_t automount_etc_t:file getattr;
+allow initrc_t automount_etc_t:file { getattr read };

Why add this allow for everyone if it's just for rawhide?

Quoted 4 lines

It appears to also be necessary for Debian. If Gentoo is different then we could have ifdef(distro_gentoo', ', ` before it.

alright, fair enough.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#4 lore raw
In reply to Joshua Brindle
Quoted 16 lines · Joshua Brindle
Quoted 14 lines · Russell Coker

The attached patch is needed for the latest rawhide automount.

------------------------------------------------------------------------

--- /usr/src/se/policy/domains/program/unused/automount.te 2004-08-28
12:05:01.000000000 +1000
+++ domains/program/unused/automount.te 2004-09-01
12:36:44.000000000 +1000

program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +0 -0
@@ -66,4 +66,4 @@
 allow automount_t home_root_t:dir { getattr };
 allow automount_t mnt_t:dir { getattr search };
 
Quoted 5 lines

program/unused/automount.te line 69

Quoted 4 lines
program/unused/automount.te renamed from usr/src/se/policy/domains/program/unused/automount.te +1 -1
-allow initrc_t automount_etc_t:file getattr;
+allow initrc_t automount_etc_t:file { getattr read };

Why add this allow for everyone if it's just for rawhide?

hey, i recognise that patch. sort-of.

it's not just rawhide.

i recently added automount to my debian system, and decided it would be best (for me) to add a type autmount_etc_t for /etc/auto.[usb,misc,net].

it looks like rawhide's picked it up.

i only sent the patch adding automount_etc_t on last week!

btw i seem to have missed /etc/auto.master from my patch [making it automount_etc_t], which might, if added, mean that allow automount_t etc_t:file { getattr read } can be _removed_. worth a try.

also btw guys i thoroughly recommend the approach of doing modifications to usb-mount which put stuff into /etc/auto.usb instead of having this utterly ridiculous requirement of "warning warning please run unmount before removing the usb
disk you might lose data otherwise" _no_ sane non-technical user is ever going to bother with "unmount" it makes them think of wild beasts which is going to put them off.

modified usb-mount at http://hands.com/~lkcl/usb-mount in case you're interested [it's a bit hacked up so i could use some help with the use of sed and awk]

l.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.