Improve personality initialization

1. Personality parameter should be unsigned int (not long)
2. Do not reset bits outside of PER_MASK when setting
   personality value.
3. Set personality for static executables.

Bug: http://b/21900686
Change-Id: I4c7e34079cbd59b818ce221eed325c05b9bb2303
(cherry picked from commit f643eb38c3)
This commit is contained in:
Dmitriy Ivanov
2015-06-30 15:10:51 -07:00
parent 7f46cf9a5f
commit c2247478d5
4 changed files with 19 additions and 9 deletions

View File

@@ -34,7 +34,7 @@
__BEGIN_DECLS
extern int personality (unsigned long persona);
extern int personality (unsigned int persona);
__END_DECLS