• Home
  • Raw
  • Download

Lines Matching refs:filedata

285 static int load_data(const struct vfs_cap_data *filedata, int size)  in load_data()  argument
292 magic = FIXUP(filedata->magic_etc); in load_data()
310 m.data.v3[0].permitted = FIXUP(filedata->data[0].permitted); in load_data()
311 m.data.v3[1].permitted = FIXUP(filedata->data[1].permitted); in load_data()
312 m.data.v3[0].inheritable = FIXUP(filedata->data[0].inheritable); in load_data()
313 m.data.v3[1].inheritable = FIXUP(filedata->data[1].inheritable); in load_data()
333 struct vfs_cap_data filedata; in capng_get_caps_fd()
340 rc = fgetxattr(fd, XATTR_NAME_CAPS, &filedata, sizeof(filedata)); in capng_get_caps_fd()
344 rc = load_data(&filedata, rc); in capng_get_caps_fd()
507 static int save_data(struct vfs_cap_data *filedata, int *size) in save_data() argument
511 filedata->data[0].permitted = FIXUP(m.data.v1.permitted); in save_data()
512 filedata->data[0].inheritable = FIXUP(m.data.v1.inheritable); in save_data()
513 filedata->magic_etc = FIXUP(VFS_CAP_REVISION_1); in save_data()
522 filedata->data[0].permitted = FIXUP(m.data.v3[0].permitted); in save_data()
523 filedata->data[0].inheritable = FIXUP(m.data.v3[0].inheritable); in save_data()
524 filedata->data[1].permitted = FIXUP(m.data.v3[1].permitted); in save_data()
525 filedata->data[1].inheritable = FIXUP(m.data.v3[1].inheritable); in save_data()
526 filedata->magic_etc = FIXUP(VFS_CAP_REVISION_2 | eff); in save_data()
540 struct vfs_cap_data filedata; in capng_apply_caps_fd()
556 save_data(&filedata, &size); in capng_apply_caps_fd()
557 rc = fsetxattr(fd, XATTR_NAME_CAPS, &filedata, size, 0); in capng_apply_caps_fd()