This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / security / selinux / hooks.c
index 52fa3cf..72cd0e5 100644 (file)
@@ -63,7 +63,6 @@
 #include <net/ipv6.h>
 #include <linux/hugetlb.h>
 #include <linux/major.h>
-#include <linux/personality.h>
 
 #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;
        }