X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=security%2Fselinux%2Fhooks.c;h=72cd0e5d3c9ebf2e28d2e1188b9d327b29be6b55;hb=5d0dd51ddb446e7c058023420f5b7d4404501980;hp=52fa3cfdfd5b86e4328140c2d82698b3971c0dab;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 52fa3cfdf..72cd0e5d3 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -63,7 +63,6 @@ #include #include #include -#include #include "avc.h" #include "objsec.h" @@ -1685,9 +1684,6 @@ static int selinux_bprm_set_security(struct linux_binprm *bprm) if (rc) return rc; - /* Clear any possibly unsafe personality bits on exec: */ - current->personality &= ~PER_CLEAR_ON_SETID; - /* Set the security field to the new SID. */ bsec->sid = newsid; }