selinux September 2007 archive
Main Archive Page > Month Archives  > selinux archives
selinux: Re: [PATCH] 1/2 SELinux: Add get, set, and cloning of s

Re: [PATCH] 1/2 SELinux: Add get, set, and cloning of superblock security information

From: Casey Schaufler <casey_at_nospam>
Date: Thu Sep 06 2007 - 15:59:03 GMT
To: Eric Paris <eparis@redhat.com>, selinux@tycho.nsa.gov, nfs@lists.sourceforge.net

  • Eric Paris <eparis@redhat.com> wrote:

> Adds security_get_sb_mnt_opts, security_set_sb_mnt_opts, and
> security_clont_sb_mnt_opts to the LSM and to SELinux. This is in
> preparation for NFS to be able to own its own mount options and remove
> the NFS specific code from SELinux.

What is the purpose of security_clone_sb_mnt_opts? I see where it is being used, but it's not clear to me why it is necessary. The old SELinux code doesn't clone the options, it filters out the ones it cares about. If that is the behavior you'd expect of this hook, I suggest the name reflect that, perhaps security_filter_sb_mnt_opts.

Casey Schaufler
casey@schaufler-ca.com -- 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.