security: Add proper checks for Android specific capability checks
authorTushar Behera <tushar.behera@linaro.org>
Mon, 26 Mar 2012 11:24:15 +0000 (16:54 +0530)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:45 +0000 (13:40 -0700)
commit4c726b2fbce30c4f164fc6173e033aae2d4b4e40
tree3bea5bfec89b1dea122d92dc92c6b061e2382506
parent4a52216c236ea5bf9b42dbf4a3571781a72b983c
security: Add proper checks for Android specific capability checks

Commit b641072 ("security: Add AID_NET_RAW and AID_NET_ADMIN capability
check in cap_capable().") introduces additional checks for AID_NET_xxx
macros. Since the header file including those macros are conditionally
included, the checks should also be conditionally executed.

Change-Id: Iaec5208d5b95a46b1ac3f2db8449c661e803fa5b
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
security/commoncap.c