security: remove security_sb_post_mountroot hook
authorH. Peter Anvin <hpa@zytor.com>
Sun, 30 Dec 2007 00:20:25 +0000 (16:20 -0800)
committerJames Morris <jmorris@namei.org>
Fri, 25 Jan 2008 00:29:50 +0000 (11:29 +1100)
commitbced95283e9434611cbad8f2ff903cd396eaea72
tree5d56afc7a5f239ebc53a1800a508f16b8d8701b0
parent42d7896ebc5f7268b1fe6bbd20f2282e20ae7895
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:

     http://marc.info/?l=linux-kernel&m=118485683612916&w=2

Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/security.h
init/do_mounts.c
security/dummy.c
security/security.c