Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/
DSECCOMP_PRIORITY.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
6 # The syscalls below are prioritized above other syscalls when checking seccomp policy, in
DSECCOMP_ALLOWLIST_SYSTEM.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_BLOCKLIST_COMMON.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_ALLOWLIST_APP.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_BLOCKLIST_APP.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSECCOMP_ALLOWLIST_COMMON.TXT1 # This file is used to populate seccomp's allowlist policy in combination with SYSCALLS.TXT.
2 # Note that the resultant policy is applied only to zygote spawned processes.
DSYSCALLS.TXT296 int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
301 int sched_get_priority_max(int policy) all
302 int sched_get_priority_min(int policy) all
/bionic/libc/bionic/
Dpthread_getschedparam.cpp36 int pthread_getschedparam(pthread_t t, int* policy, sched_param* param) { in pthread_getschedparam() argument
43 *policy = sched_getscheduler(tid); in pthread_getschedparam()
Dpthread_setschedparam.cpp38 int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) { in pthread_setschedparam() argument
44 return (sched_setscheduler(tid, policy, param) == -1) ? errno : 0; in pthread_setschedparam()
Dpthread_attr.cpp107 int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) { in pthread_attr_setschedpolicy() argument
108 attr->sched_policy = policy; in pthread_attr_setschedpolicy()
113 int pthread_attr_getschedpolicy(const pthread_attr_t* attr, int* policy) { in pthread_attr_getschedpolicy() argument
114 *policy = attr->sched_policy; in pthread_attr_getschedpolicy()
Dpthread_create.cpp166 int policy; in __init_thread() local
170 policy = sched_getscheduler(0); in __init_thread()
171 need_set = ((policy & SCHED_RESET_ON_FORK) != 0); in __init_thread()
173 if (policy == -1) { in __init_thread()
184 policy = thread->attr.sched_policy; in __init_thread()
193 if (sched_setscheduler(thread->tid, policy, &param) == -1) { in __init_thread()
195 "pthread_create sched_setscheduler(%d, {%d}) call failed: %m", policy, in __init_thread()
Dspawn.cpp310 int posix_spawnattr_setschedpolicy(posix_spawnattr_t* attr, int policy) { in posix_spawnattr_setschedpolicy() argument
311 (*attr)->schedpolicy = policy; in posix_spawnattr_setschedpolicy()
315 int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* policy) { in posix_spawnattr_getschedpolicy() argument
316 *policy = (*attr)->schedpolicy; in posix_spawnattr_getschedpolicy()
/bionic/libc/tools/
DAndroid.bp16 // Generate the C++ policy sources for app and system seccomp-bpf filters.
/bionic/libc/kernel/uapi/asm-x86/asm/
Dkvm.h542 __u32 policy; member
573 __u32 policy; member
589 __u32 policy; member
617 __u32 policy; member
/bionic/libc/kernel/uapi/linux/
Dfscrypt.h61 } policy; member
Dxfrm.h367 struct xfrm_userpolicy_info policy; member
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h52 int policy; member
/bionic/tests/
Dpthread_test.cpp640 int policy; in TEST_F() local
642 EXPECT_DEATH(pthread_getschedparam(dead_thread, &policy, &param), in TEST_F()
648 int policy; in TEST_F() local
650 EXPECT_EQ(ESRCH, pthread_getschedparam(null_thread, &policy, &param)); in TEST_F()
657 int policy = 0; in TEST_F() local
659 EXPECT_DEATH(pthread_setschedparam(dead_thread, policy, &param), in TEST_F()
665 int policy = 0; in TEST_F() local
667 EXPECT_EQ(ESRCH, pthread_setschedparam(null_thread, policy, &param)); in TEST_F()