capabilities: do not special case exec of init
authorEric Paris <eparis@redhat.com>
Fri, 1 Apr 2011 21:08:28 +0000 (17:08 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 4 Apr 2011 00:31:06 +0000 (10:31 +1000)
commit4bf2ea77dba76a22f49db3c10773896aaeeb8f66
treea59c1f924c022864f259ed56b6326a35ab2ceee2
parent17f60a7da150fdd0cfb9756f86a262daa72c835f
capabilities: do not special case exec of init

When the global init task is exec'd we have special case logic to make sure
the pE is not reduced.  There is no reason for this.  If init wants to drop
it's pE is should be allowed to do so.  Remove this special logic.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Andrew G. Morgan <morgan@kernel.org>
Signed-off-by: James Morris <jmorris@namei.org>
security/commoncap.c