path: root/security/security.c
diff options
authorH. Peter Anvin <>2007-12-29 16:20:25 -0800
committerJames Morris <>2008-01-25 11:29:50 +1100
commitbced95283e9434611cbad8f2ff903cd396eaea72 (patch)
tree5d56afc7a5f239ebc53a1800a508f16b8d8701b0 /security/security.c
parent42d7896ebc5f7268b1fe6bbd20f2282e20ae7895 (diff)
security: remove security_sb_post_mountroot hook
The security_sb_post_mountroot() hook is long-since obsolete, and is fundamentally broken: it is never invoked if someone uses initramfs. This is particularly damaging, because the existence of this hook has been used as motivation for not using initramfs. Stephen Smalley confirmed on 2007-07-19 that this hook was originally used by SELinux but can now be safely removed: Cc: Stephen Smalley <> Cc: James Morris <> Cc: Eric Paris <> Cc: Chris Wright <> Signed-off-by: H. Peter Anvin <> Signed-off-by: James Morris <>
Diffstat (limited to 'security/security.c')
1 files changed, 0 insertions, 5 deletions
diff --git a/security/security.c b/security/security.c
index b13b54f0af8..5068808343d 100644
--- a/security/security.c
+++ b/security/security.c
@@ -288,11 +288,6 @@ void security_sb_post_remount(struct vfsmount *mnt, unsigned long flags, void *d
security_ops->sb_post_remount(mnt, flags, data);
-void security_sb_post_mountroot(void)
- security_ops->sb_post_mountroot();
void security_sb_post_addmount(struct vfsmount *mnt, struct nameidata *mountpoint_nd)
security_ops->sb_post_addmount(mnt, mountpoint_nd);