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.TXT284 int sched_setscheduler(pid_t pid, int policy, const struct sched_param* param) all
289 int sched_get_priority_max(int policy) all
290 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.cpp106 int pthread_attr_setschedpolicy(pthread_attr_t* attr, int policy) { in pthread_attr_setschedpolicy() argument
107 attr->sched_policy = policy; in pthread_attr_setschedpolicy()
112 int pthread_attr_getschedpolicy(const pthread_attr_t* attr, int* policy) { in pthread_attr_getschedpolicy() argument
113 *policy = attr->sched_policy; in pthread_attr_getschedpolicy()
Dpthread_create.cpp153 int policy; in __init_thread() local
157 policy = sched_getscheduler(0); in __init_thread()
158 need_set = ((policy & SCHED_RESET_ON_FORK) != 0); in __init_thread()
160 if (policy == -1) { in __init_thread()
172 policy = thread->attr.sched_policy; in __init_thread()
181 if (sched_setscheduler(thread->tid, policy, &param) == -1) { in __init_thread()
183 "pthread_create sched_setscheduler(%d, {%d}) call failed: %s", policy, in __init_thread()
Dspawn.cpp264 int posix_spawnattr_setschedpolicy(posix_spawnattr_t* attr, int policy) { in posix_spawnattr_setschedpolicy() argument
265 (*attr)->schedpolicy = policy; in posix_spawnattr_setschedpolicy()
269 int posix_spawnattr_getschedpolicy(const posix_spawnattr_t* attr, int* policy) { in posix_spawnattr_getschedpolicy() argument
270 *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/linux/
Dfscrypt.h69 } policy; member
Dxfrm.h373 struct xfrm_userpolicy_info policy; member
Dkvm.h1287 __u32 policy; member
1311 __u32 policy; member
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h64 int policy; member
/bionic/tests/
Dpthread_test.cpp613 int policy; in TEST_F() local
615 EXPECT_DEATH(pthread_getschedparam(dead_thread, &policy, &param), in TEST_F()
621 int policy; in TEST_F() local
623 EXPECT_EQ(ESRCH, pthread_getschedparam(null_thread, &policy, &param)); in TEST_F()
630 int policy = 0; in TEST_F() local
632 EXPECT_DEATH(pthread_setschedparam(dead_thread, policy, &param), in TEST_F()
638 int policy = 0; in TEST_F() local
640 EXPECT_EQ(ESRCH, pthread_setschedparam(null_thread, policy, &param)); in TEST_F()