Home
last modified time | relevance | path

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

/kernel/liteos_a/testsuites/unittest/security/capability/smoke/
Dcap_test_001.cpp61 struct __user_cap_header_struct capheader; in TestChild() local
67 …(void)memset_s(&capheader, sizeof(struct __user_cap_header_struct), 0, sizeof(struct __user_cap_he… in TestChild()
72 capheader.version = _LINUX_CAPABILITY_VERSION_3; in TestChild()
78 ret = capset(&capheader, &capdata[0]); in TestChild()
80 ret = capget(&capheader, &capdatac[0]); in TestChild()
82 capheader.pid = INVAILD_PID; in TestChild()
83 ret = capget(&capheader, &capdatac[0]); in TestChild()
86 capheader.pid = 3; in TestChild()
87 kill(capheader.pid, 0); in TestChild()
89 ret = capget(&capheader, &capdatac[0]); in TestChild()
[all …]