Lines Matching refs:filedata
281 static int load_data(const struct vfs_cap_data *filedata, int size) in load_data() argument
288 magic = FIXUP(filedata->magic_etc); in load_data()
306 m.data.v3[0].permitted = FIXUP(filedata->data[0].permitted); in load_data()
307 m.data.v3[1].permitted = FIXUP(filedata->data[1].permitted); in load_data()
308 m.data.v3[0].inheritable = FIXUP(filedata->data[0].inheritable); in load_data()
309 m.data.v3[1].inheritable = FIXUP(filedata->data[1].inheritable); in load_data()
329 struct vfs_cap_data filedata; in capng_get_caps_fd()
336 rc = fgetxattr(fd, XATTR_NAME_CAPS, &filedata, sizeof(filedata)); in capng_get_caps_fd()
340 rc = load_data(&filedata, rc); in capng_get_caps_fd()
503 static int save_data(struct vfs_cap_data *filedata, int *size) in save_data() argument
507 filedata->data[0].permitted = FIXUP(m.data.v1.permitted); in save_data()
508 filedata->data[0].inheritable = FIXUP(m.data.v1.inheritable); in save_data()
509 filedata->magic_etc = FIXUP(VFS_CAP_REVISION_1); in save_data()
518 filedata->data[0].permitted = FIXUP(m.data.v3[0].permitted); in save_data()
519 filedata->data[0].inheritable = FIXUP(m.data.v3[0].inheritable); in save_data()
520 filedata->data[1].permitted = FIXUP(m.data.v3[1].permitted); in save_data()
521 filedata->data[1].inheritable = FIXUP(m.data.v3[1].inheritable); in save_data()
522 filedata->magic_etc = FIXUP(VFS_CAP_REVISION_2 | eff); in save_data()
536 struct vfs_cap_data filedata; in capng_apply_caps_fd()
552 save_data(&filedata, &size); in capng_apply_caps_fd()
553 rc = fsetxattr(fd, XATTR_NAME_CAPS, &filedata, size, 0); in capng_apply_caps_fd()