Subject: Re: [PATCH][RFC] selinux: remove noop secondary_ops calls From: Stephen Smalley To: James Morris Cc: selinux@tycho.nsa.gov, eparis@redhat.com, linux-security-module@vger.kernel.org In-Reply-To: <1233201347-17568-1-git-send-email-jmorris@namei.org> References: <1233201347-17568-1-git-send-email-jmorris@namei.org> Content-Type: text/plain Date: Thu, 29 Jan 2009 12:45:55 -0500 Message-Id: <1233251155.5109.128.camel@localhost.localdomain> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Wed, 2009-01-28 at 19:55 -0800, James Morris wrote: > These patches remove calls to secondary_ops where there is no > real capability hook, and a couple of SELinux hooks which only > called these noop hooks. > > (Following this, the noop capabilities hooks should also be removed). I don't think you can - the capability stubs now serve as the default/dummy hooks used by security_fixup_ops(), so it has to define a stub for every hook. > Please review. > > James Morris (18): > selinux: remove unused bprm_check_security hook > selinux: remove secondary ops call to bprm_committing_creds > selinux: remove secondary ops call to bprm_committed_creds > selinux: remove secondary ops call to sb_mount > selinux: remove secondary ops call to sb_umount > selinux: remove secondary ops call to inode_link > selinux: remove secondary ops call to inode_unlink > selinux: remove secondary ops call to inode_mknod > selinux: remove secondary ops call to inode_follow_link > selinux: remove secondary ops call to inode_permission > selinux: remove secondary ops call to inode_setattr > selinux: remove secondary ops call to file_mprotect > selinux: remove secondary ops call to task_create > selinux: remove unused cred_commit hook > selinux: remove secondary ops call to task_setrlimit > selinux: remove secondary ops call to task_kill > selinux: remove secondary ops call to unix_stream_connect > selinux: remove secondary ops call to shm_shmat > > security/selinux/hooks.c | 92 +--------------------------------------------- > 1 files changed, 2 insertions(+), 90 deletions(-) > > -- Stephen Smalley National Security Agency -- 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.