security context for temporalily mounted filesystems
Hi!
last days I labelling the mount point (/floppy, /cdrom, ..) and the correspond links as root_t.
I think, it is good to add this to the standard distribution.
Carsten
#
# Temporarily mounted filesystems
#
/media(|/.*)? system_u:object_r:root_t
/mnt(|/.*)? system_u:object_r:root_t
/cdrom system_u:object_r:root_t
/cdrw system_u:object_r:root_t
/floppy system_u:object_r:root_t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org
iEYEABECAAYFAj1TyAgACgkQ4oaNQP0tWXAd7gCggBTgoj7EAugwVy9VfLCBK+yr WLwAoIZIqDeJS80qO89q2Pq4Wezt3AAM
=cQHh
-----END PGP SIGNATURE-----
Quoted 3 lines · Carsten Grohmann
last days I labelling the mount point (/floppy, /cdrom, ..) and the correspond links as
root_t.
I think, it is good to add this to the standard distribution.
What is the justification in doing this?
That is, what benefit do you get?
Also, when you say /floppy, I assume you mean the directory on / called "floppy", and not the root directory on the mounted floppy disk drive?
Signature · 6 lines
Brian May <[email protected]> -- 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.
Am Sonntag, 11. August 2002 01:53 schrieb Brian May:
Quoted 8 lines · Carsten Grohmann
Quoted 3 lines
last days I labelling the mount point (/floppy, /cdrom, ..) and the correspond links as
root_t.
I think, it is good to add this to the standard distribution.What is the justification in doing this?
That is, what benefit do you get?
I discussed with Russel, about my SuSE rules. He wrote in this discussion the file_t is only unkown entries. Draw the consequence we should not label this entries not as file_t.
Quoted 2 lines
Also, when you say /floppy, I assume you mean the directory on / called "floppy", and not the root directory on the mounted floppy disk drive?
I mean both mount point and the link to it. On SuSE /floppy is an link to /mnt/floppy or /media/floppy. So I labeled both the link and the link target ( the mount point ) as root_t. During a mount genfs relabelling the mountpoint to the right type. So I think there will be no problem with the root_t.
Carsten
--
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.
Quoted 6 lines · Carsten Grohmann
Am Sonntag, 11. August 2002 01:53 schrieb Brian May:
Quoted 5 lines · Carsten Grohmann
Quoted 3 lines
last days I labelling the mount point (/floppy, /cdrom, ..) and the correspond links as
root_t.
I think, it is good to add this to the standard distribution.
Quoted 7 lines
Quoted 3 lines
What is the justification in doing this?
That is, what benefit do you get?
I discussed with Russel, about my SuSE rules. He wrote in this discussion the
file_tis only unkown entries. Draw the consequence we should not label this entries not asfile_t.
True.
Quoted 8 lines
Quoted 2 lines
Also, when you say /floppy, I assume you mean the directory on / called "floppy", and not the root directory on the mounted floppy disk drive?
I mean both mount point and the link to it. On SuSE /floppy is an link to
/mnt/floppyor /media/floppy. So I labeled both the link and the link target ( the mount point ) asroot_t. During a mount genfs relabelling the mountpoint to the right type. So I think there will be no problem with theroot_t.
I am not recommending root_t for everything, and I am not certain that it's the best thing to do. However as I haven't had a better idea and it's a lot better than file_t I can't suggest anything else.
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.
Am Sonntag, 11. August 2002 16:55 schrieb Russell Coker:
Quoted 27 lines · Carsten Grohmann
Quoted 6 lines
Am Sonntag, 11. August 2002 01:53 schrieb Brian May:
Quoted 5 lines · Carsten Grohmann
Quoted 3 lines
last days I labelling the mount point (/floppy, /cdrom, ..) and the correspond links as
root_t.
I think, it is good to add this to the standard distribution.Quoted 7 lines
Quoted 3 lines
What is the justification in doing this?
That is, what benefit do you get?
I discussed with Russel, about my SuSE rules. He wrote in this discussion the
file_tis only unkown entries. Draw the consequence we should not label this entries not asfile_t.True.
Quoted 9 lines
Quoted 3 lines
Also, when you say /floppy, I assume you mean the directory on / called "floppy", and not the root directory on the mounted floppy disk drive?
I mean both mount point and the link to it. On SuSE /floppy is an link to
/mnt/floppyor /media/floppy. So I labeled both the link and the link target ( the mount point ) asroot_t. During a mount genfs relabelling the mountpoint to the right type. So I think there will be no problem with theroot_t.
Quoted 3 lines
I am not recommending
root_tfor everything, and I am not certain that it's the best thing to do. However as I haven't had a better idea and it's a lot better thanfile_tI can't suggest anything else.
Who is an new type: usermountpoint_t and a new domain usermount_t like mount_t to allow the users in user_r to allow mount removeable disk devices?
I will post the changed rules tomorrow. Now I only test it and it works fine I guess.
Carsten
--
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Carsten Grohmann
Who is an new type:
usermountpoint_tand a new domainusermount_tlikemount_tto allow the users inuser_rto allow mount removeable disk devices?
I'm not sure I understand this.
However are you using Brian May's policy for multiple mount domains or my policy that is a derivative of his policy? I think that some variation of the policy that Brian and I are working on for mount has a chance of getting into the CVS and it might be best for you to use it.
Quoted 4 lines
I will post the changed rules tomorrow. Now I only test it and it works fine I guess.
Carsten
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.
Am Montag, 12. August 2002 00:01 schrieb Russell Coker:
Quoted 9 lines · Carsten Grohmann
Quoted 3 lines
Who is an new type:
usermountpoint_tand a new domainusermount_tlikemount_tto allow the users inuser_rto allow mount removeable disk devices?I'm not sure I understand this.
However are you using Brian May's policy for multiple mount domains or my policy that is a derivative of his policy? I think that some variation
I don't
Quoted 7 lines
of the policy that Brian and I are working on for mount has a chance of getting into the CVS and it might be best for you to use it.
Quoted 4 lines
I will post the changed rules tomorrow. Now I only test it and it works fine I guess.
Carsten
Hi Russel, Hi Brain and all Others
I am sorry, that I don't write clearly, what I want.
This time I look the mount_t domain (from Brain) in your policy. I missing that the user_r is not able to mount some not all devices.
I suggest:
1. To define a new type usermountpoint_t. With this type we could labelling the mountpoints for /floppy /cdrom and similar.
2. To define a new domain usermount_t based on the
mount_t domain, but only with rigths to mount the new type and removeable_device_t.
3 Get user_r access to the new domain.
After this normal users could mount floppy disks and cdroms.
The file_type_auto_trans macro is called twice one time in mount.te and the other time in mount_domain. You could remove it from mount.te I think.
Carsten
--
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.
Quoted 3 lines · Russell Coker
I am not recommending
root_tfor everything, and I am not certain that it's the best thing to do. However as I haven't had a better idea and it's a lot better thanfile_tI can't suggest anything else.
You don't normally want mount to be able to mount over / do you?
However, if you give both the same type you will not be able to distinguish the two cases.
I would suggest:
If /usr is mounted:
Give /usr on the root filesystem a type that allows mount to mount a filesystem on it, and / on that file system should be root_t.
If /usr is not mounted:
/usr should be root_t.
Signature · 6 lines
Brian May <[email protected]> -- 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.
SCC Patent
In reply to Carsten GrohmannHi,
Is anybody familiar with Peter Neumann's (the same person who moderates the RISKS mailing list) work on secure operating systems in the late 1970's? Some people are saying that the SCC patent is based on the same basic ideas first worked out by Neumann. I took a brief look at one of his papers on citeseer:
http://citeseer.nj.nec.com/242537.html
but it appeared to be more about formally proving that an OS is secure than type enforcement.
David
--
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.