OSDN Git Service

ANDROID: net: paranoid: security: Add proper checks for Android specific capability...
authorTushar Behera <tushar.behera@linaro.org>
Mon, 26 Mar 2012 11:24:15 +0000 (16:54 +0530)
committerAmit Pundir <amit.pundir@linaro.org>
Tue, 14 Aug 2018 12:17:11 +0000 (17:47 +0530)
commitc6e90f3915f1e6bc8d6dcdc65aad247b96920918
treec66ad197ae591114f25fc415256d684ed276d38a
parent988d3e08f3a99e8dd256424722bb7cdcca522bad
ANDROID: net: paranoid: 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