commit | 44f7e4f42190fdb5309b818d5acc0ff6b0f87249 | [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 | 8dbab358f01ed0957ff4d5b1c505981dfe93d5de [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