HomeSort by relevance Sort by last modified time
    Searched refs:PR_CAP_AMBIENT (Results 1 - 15 of 15) sorted by null

  /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/linux-kselftest/tools/testing/selftests/capabilities/
validate_cap.c 10 #ifndef PR_CAP_AMBIENT
11 #define PR_CAP_AMBIENT 47
66 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != bool_arg(argv, 4)) {
test_execve.c 21 #ifndef PR_CAP_AMBIENT
22 #define PR_CAP_AMBIENT 47
273 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != -1 || errno != EPERM) {
287 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_RAW, 0, 0, 0) != -1 || errno != EPERM) {
296 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
302 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 1) {
307 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0, 0) != 0)
310 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0) {
315 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0)
322 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_NET_BIND_SERVICE, 0, 0, 0) != 0)
    [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 72 return prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_IS_SET, CAP_CHOWN, 0, 0) >= 0;
143 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, cap, 0, 0) != 0) {
144 PLOG(ERROR) << "prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, " << cap << ") failed";
  /bionic/libc/kernel/uapi/linux/
prctl.h 154 #define PR_CAP_AMBIENT 47
  /external/kernel-headers/original/uapi/linux/
prctl.h 194 #define PR_CAP_AMBIENT 47
  /frameworks/base/core/java/com/android/internal/os/
WrapperInit.java 210 Os.prctl(OsConstants.PR_CAP_AMBIENT, OsConstants.PR_CAP_AMBIENT_RAISE, i, 0,
  /external/strace/
prctl.c 36 #include "xlat/pr_cap_ambient.h"
211 case PR_CAP_AMBIENT:
213 printxval64(pr_cap_ambient, arg2,
  /system/core/debuggerd/handler/
debuggerd_handler.cpp 229 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_RAISE, i, 0, 0) != 0) {
  /libcore/luni/src/main/java/android/system/
OsConstants.java 390 /** @hide */ public static final int PR_CAP_AMBIENT = placeholder();
    [all...]
  /system/core/debuggerd/
debuggerd_test.cpp 511 if (prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0) != 0) {
  /libcore/luni/src/main/native/
android_system_OsConstants.cpp 415 #if defined(PR_CAP_AMBIENT)
416 initConstant(env, c, "PR_CAP_AMBIENT", PR_CAP_AMBIENT);
  /prebuilts/go/darwin-x86/src/syscall/
zerrors_linux_s390x.go     [all...]
  /prebuilts/go/linux-x86/src/syscall/
zerrors_linux_s390x.go     [all...]

Completed in 1347 milliseconds