Home
last modified time | relevance | path

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

/system/extras/ext4_utils/
Dcontents.c481 struct vfs_cap_data cap_data; in inode_set_capabilities() local
482 memset(&cap_data, 0, sizeof(cap_data)); in inode_set_capabilities()
484 cap_data.magic_etc = VFS_CAP_REVISION | VFS_CAP_FLAGS_EFFECTIVE; in inode_set_capabilities()
485 cap_data.data[0].permitted = (uint32_t) (capabilities & 0xffffffff); in inode_set_capabilities()
486 cap_data.data[0].inheritable = 0; in inode_set_capabilities()
487 cap_data.data[1].permitted = (uint32_t) (capabilities >> 32); in inode_set_capabilities()
488 cap_data.data[1].inheritable = 0; in inode_set_capabilities()
491 XATTR_CAPS_SUFFIX, &cap_data, sizeof(cap_data)); in inode_set_capabilities()
/system/core/adb/
Dfile_sync_service.cpp64 vfs_cap_data cap_data = {}; in update_capabilities() local
65 cap_data.magic_etc = VFS_CAP_REVISION | VFS_CAP_FLAGS_EFFECTIVE; in update_capabilities()
66 cap_data.data[0].permitted = (capabilities & 0xffffffff); in update_capabilities()
67 cap_data.data[0].inheritable = 0; in update_capabilities()
68 cap_data.data[1].permitted = (capabilities >> 32); in update_capabilities()
69 cap_data.data[1].inheritable = 0; in update_capabilities()
70 return setxattr(path, XATTR_NAME_CAPS, &cap_data, sizeof(cap_data), 0) != -1; in update_capabilities()