{"push_id":839736712,"size":1,"distinct_size":1,"ref":"refs/heads/android-6.0","head":"38c4f36fde0d3e2ec84a335a59232e8f2b3f9d3b","before":"127ac175eeed44820d0c19e6c684b799b666678b","commits":[{"sha":"38c4f36fde0d3e2ec84a335a59232e8f2b3f9d3b","author":{"email":"fbe788dcd509b324901fbdfe505a4d610d560569@google.com","name":"Jeff Vander Stoep"},"message":"mm: reorder can_do_mlock to fix audit denial\n\nA userspace call to mmap(MAP_LOCKED) may result in the successful locking\nof memory while also producing a confusing audit log denial.  can_do_mlock\nchecks capable and rlimit.  If either of these return positive\ncan_do_mlock returns true.  The capable check leads to an LSM hook used by\napparmour and selinux which produce the audit denial.  Reordering so\nrlimit is checked first eliminates the denial on success, only recording a\ndenial when the lock is unsuccessful as a result of the denial.\n\n(cherry picked from e48e8c45925185c02b23ae461671be29c91101d5)\n\nBug: 19590990\nSigned-off-by: Jeff Vander Stoep <jeffv@google.com>\nAcked-by: Nick Kralevich <nnk@google.com>\nCc: Jeff Vander Stoep <jeffv@google.com>\nCc: Sasha Levin <sasha.levin@oracle.com>\nCc: \"Paul E. McKenney\" <paulmck@linux.vnet.ibm.com>\nCc: Rik van Riel <riel@redhat.com>\nCc: Vlastimil Babka <vbabka@suse.cz>\nCc: Paul Cassella <cassella@cray.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>","distinct":true,"url":"https://api.github.com/repos/kldoc/android_kernel_lge_mako/commits/38c4f36fde0d3e2ec84a335a59232e8f2b3f9d3b"}]}