/external/linux-kselftest/tools/testing/selftests/capabilities/ |
validate_cap.c | 12 #ifndef PR_CAP_AMBIENT 13 #define PR_CAP_AMBIENT 47 72 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != bool_arg(argv, 4)) {
|
test_execve.c | 23 #ifndef PR_CAP_AMBIENT 24 #define PR_CAP_AMBIENT 47 285 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != EPERM) { 302 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) { 313 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { 320 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 1) { 325 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0) != 0) 329 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) { 335 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) 343 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) [all...] |
/bionic/tests/ |
sys_prctl_test.cpp | 68 TEST(sys_prctl, pr_cap_ambient) { 69 // PR_CAP_AMBIENT was introduced in v4.3. Android devices should always 71 #if defined(__ANDROID__) || defined(PR_CAP_AMBIENT) 79 auto err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0); 88 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_SYS_ADMIN, 0, 0); 92 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_SYS_ADMIN, 0, 0); 95 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, CAP_SYS_ADMIN, 0, 0); 99 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, ULONG_MAX, 0, 0); 103 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, ULONG_MAX, 0, 0); 107 err = prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_LOWER, ULONG_MAX, 0, 0) [all...] |
/external/minijail/ |
system.h | 21 #ifndef PR_CAP_AMBIENT 22 #define PR_CAP_AMBIENT 47
|
system.c | 137 return prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) >=
|
libminijail.c | [all...] |
/external/strace/xlat/ |
prctl_options.h | 137 #if !(defined(PR_CAP_AMBIENT) || (defined(HAVE_DECL_PR_CAP_AMBIENT) && HAVE_DECL_PR_CAP_AMBIENT)) 138 # define PR_CAP_AMBIENT 47 197 XLAT(PR_CAP_AMBIENT),
|
/system/core/init/ |
capabilities.cpp | 75 return prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) >= 0; 152 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0) != 0) { 153 PLOG(ERROR) << "prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, " << cap << ") failed";
|
/bionic/libc/kernel/uapi/linux/ |
prctl.h | 127 #define PR_CAP_AMBIENT 47
|
/external/kernel-headers/original/uapi/linux/ |
prctl.h | 195 #define PR_CAP_AMBIENT 47
|
/frameworks/base/core/java/com/android/internal/os/ |
WrapperInit.java | 216 Os.prctl(OsConstants.PR_CAP_AMBIENT, OsConstants.PR_CAP_AMBIENT_RAISE, i, 0,
|
/system/extras/runconuid/ |
runconuid.cpp | 68 prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, i, 0, 0);
|
/external/strace/ |
prctl.c | 37 #include "xlat/pr_cap_ambient.h" 212 case PR_CAP_AMBIENT: 214 printxval64(pr_cap_ambient, arg2,
|
/system/core/debuggerd/handler/ |
debuggerd_handler.cpp | 232 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, i, 0, 0) != 0) {
|
/prebuilts/go/darwin-x86/src/syscall/ |
exec_linux.go | 107 PR_CAP_AMBIENT = 0x2f 290 _, _, err1 = RawSyscall6(SYS_PRCTL, PR_CAP_AMBIENT, uintptr(PR_CAP_AMBIENT_RAISE), c, 0, 0, 0)
|
zerrors_linux_s390x.go | [all...] |
/prebuilts/go/linux-x86/src/syscall/ |
exec_linux.go | 107 PR_CAP_AMBIENT = 0x2f 290 _, _, err1 = RawSyscall6(SYS_PRCTL, PR_CAP_AMBIENT, uintptr(PR_CAP_AMBIENT_RAISE), c, 0, 0, 0)
|
zerrors_linux_s390x.go | [all...] |
/libcore/luni/src/main/native/ |
android_system_OsConstants.cpp | 418 #if defined(PR_CAP_AMBIENT) 419 initConstant(env, c, "PR_CAP_AMBIENT", PR_CAP_AMBIENT); [all...] |
/libcore/luni/src/main/java/android/system/ |
OsConstants.java | 392 /** @hide */ public static final int PR_CAP_AMBIENT = placeholder(); [all...] |
/system/core/debuggerd/ |
debuggerd_test.cpp | 518 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0) != 0) {
|