]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fcaps: clear the same personality flags as suid when fcaps are used
authorEric Paris <eparis@redhat.com>
Tue, 17 Apr 2012 20:26:54 +0000 (16:26 -0400)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 19 Jun 2012 10:00:23 +0000 (03:00 -0700)
commit662db20e780cc9d63e54095090ddd5f8c02403e3
tree95f901eb3d095196e9daf7aa673443c9341f4649
parentb7ef7c6cca29bf0e6b83ea298c97e91ceb2b7abf
fcaps: clear the same personality flags as suid when fcaps are used

Bugdb: 13966
If a process increases permissions using fcaps all of the dangerous
personality flags which are cleared for suid apps should also be cleared.
Thus programs given priviledge with fcaps will continue to have address space
randomization enabled even if the parent tried to disable it to make it
easier to attack.
This fixes: CVE-2012-2123

Signed-off-by: Eric Paris <eparis@redhat.com>
Reviewed-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/commoncap.c