commit | d20b48e039ca8c29ca0c1b11f319525ce82aea56 | [log] [tgz] |
---|---|---|
author | Dave Weinstein <olorin@google.com> | Thu Jan 19 18:03:34 2017 -0800 |
committer | Dave Weinstein <olorin@google.com> | Fri Jan 20 09:40:43 2017 -0800 |
tree | 37a3f9c1c79ff98819f3a967357ca7b410aa615d | |
parent | bc73be632cc49c6316516add5c811093aef8b854 [diff] |
Move the kptr_restrict setting from init.rc to init.cpp. Also ensure that it uses the highest supported value, and abort if the value is not above a minimum threshold. Test: Tested against the curent kernel (maximum value of 2, set to 0 by the kernel initially) and against a modified kernel (maximum value of 4, set to 4 by the kernel initially) Bug: 30368199 Change-Id: I608db577258b68b390ffe96f452e1f7c0bc9ad8a