Home
last modified time | relevance | path

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

/external/squashfs-tools/squashfs-tools/
Dandroid.c105 struct vfs_cap_data cap_data; in set_caps() local
106 memset(&cap_data, 0, sizeof(cap_data)); in set_caps()
109 return cap_data; in set_caps()
111 cap_data.magic_etc = VFS_CAP_REVISION_2 | VFS_CAP_FLAGS_EFFECTIVE; in set_caps()
112 cap_data.data[0].permitted = (uint32_t) capabilities; in set_caps()
113 cap_data.data[0].inheritable = 0; in set_caps()
114 cap_data.data[1].permitted = (uint32_t) (capabilities >> 32); in set_caps()
115 cap_data.data[1].inheritable = 0; in set_caps()
117 return cap_data; in set_caps()
/external/e2fsprogs/contrib/android/
Dperms.c123 struct vfs_cap_data cap_data; in set_perms_and_caps() local
160 memset(&cap_data, 0, sizeof(cap_data)); in set_perms_and_caps()
161 cap_data.magic_etc = VFS_CAP_REVISION_2 | VFS_CAP_FLAGS_EFFECTIVE; in set_perms_and_caps()
162 cap_data.data[0].permitted = (uint32_t) (capabilities & 0xffffffff); in set_perms_and_caps()
163 cap_data.data[1].permitted = (uint32_t) (capabilities >> 32); in set_perms_and_caps()
165 &cap_data, sizeof(cap_data)); in set_perms_and_caps()
/external/syzkaller/executor/
Dcommon_linux.h1708 struct __user_cap_data_struct cap_data[2] = {}; in namespace_sandbox_proc() local
1711 if (syscall(SYS_capget, &cap_hdr, &cap_data)) in namespace_sandbox_proc()
1713 cap_data[0].effective &= ~(1 << CAP_SYS_PTRACE); in namespace_sandbox_proc()
1714 cap_data[0].permitted &= ~(1 << CAP_SYS_PTRACE); in namespace_sandbox_proc()
1715 cap_data[0].inheritable &= ~(1 << CAP_SYS_PTRACE); in namespace_sandbox_proc()
1716 if (syscall(SYS_capset, &cap_hdr, &cap_data)) in namespace_sandbox_proc()
/external/syzkaller/pkg/csource/
Dgenerated.go3186 struct __user_cap_data_struct cap_data[2] = {};
3189 if (syscall(SYS_capget, &cap_hdr, &cap_data))
3191 cap_data[0].effective &= ~(1 << CAP_SYS_PTRACE);
3192 cap_data[0].permitted &= ~(1 << CAP_SYS_PTRACE);
3193 cap_data[0].inheritable &= ~(1 << CAP_SYS_PTRACE);
3194 if (syscall(SYS_capset, &cap_hdr, &cap_data))
/external/syzkaller/sys/linux/
Dsys.txt264 capget(hdr ptr[in, cap_header], data ptr[in, cap_data])
265 capset(hdr ptr[in, cap_header], data ptr[in, cap_data])
696 cap_data {