How should we handle automount.
Needs to be able to create/remove mounton arbitrary directories in arbitrary locations?
file_domain_auto_trans(automount_t, file_type, autofs_t, dir) ???? Then how do we allow automount to delete the directory?
Signature · 4 lines
-- 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 2 lines · Daniel J Walsh
Needs to be able to create/remove mounton arbitrary directories in arbitrary locations?
Allowing it to do so on arbitrary directories doesn't seem desirable, any more than allowing mount to mount on arbitrary directories. Can we identify a reasonable set of mount point directories that might be used by automount?
Quoted 1 line
file_domain_auto_trans(automount_t, file_type, autofs_t, dir)????
s/domain/type
autofs_t is for the autofs inodes themselves, so I don't think you want to apply them to the mount point directories. Does automount always re- create the mount point directory, or does it re-use one if it already exists?
Quoted 1 line
Then how do we allow automount to delete the directory?
It would need permissions to the parent, so you need to be able to enumerate or identify by attribute what directory types might be used.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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 13 lines · Stephen Smalley
Quoted 3 lines · Daniel J Walsh
Needs to be able to create/remove mounton arbitrary directories in arbitrary locations?
Allowing it to do so on arbitrary directories doesn't seem desirable, any more than allowing mount to mount on arbitrary directories. Can we identify a reasonable set of mount point directories that might be used by automount?
Automount Maintainer response:
Unfortunately, no. The users of automount create a varied array of directory hierarchies.
Quoted 10 lines
Quoted 5 lines
file_domain_auto_trans(automount_t, file_type, autofs_t, dir)????s/domain/type
Typo.
Quoted 7 lines
autofs_tis for the autofs inodes themselves, so I don't think you want to apply them to the mount point directories. Does automount always re- create the mount point directory, or does it re-use one if it already exists?
I was just looking for a type with mounton type. Maybe we could create an automont_mnt_t
file_type_auto_trans(automount_t, file_type, automount_mnt_t, dir)
Quoted 9 lines
Quoted 3 lines
Then how do we allow automount to delete the directory?
It would need permissions to the parent, so you need to be able to enumerate or identify by attribute what directory types might be used.
Yup that is the problem. If there was a way to say automount can only remove automount_mnt_t directories.
Dan
Signature · 4 lines
-- 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.