Lines Matching defs:idmap
338 * @idmap: idmap of the mount the inode was found from
343 * If the inode has been found through an idmapped mount the idmap of
344 * the vfsmount must be passed through @idmap. This function will then
345 * take care to map the inode according to @idmap before checking
351 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry)
355 error = __vfs_removexattr(idmap, dentry, XATTR_NAME_CAPS);
420 int cap_inode_getsecurity(struct mnt_idmap *idmap,
441 size = vfs_getxattr_alloc(idmap, dentry, XATTR_NAME_CAPS, &tmpbuf,
463 vfsroot = make_vfsuid(idmap, fs_ns, kroot);
553 * @idmap: idmap of the mount the inode was found from
561 * If the inode has been found through an idmapped mount the idmap of
562 * the vfsmount must be passed through @idmap. This function will then
563 * take care to map the inode according to @idmap before checking
569 int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry,
587 if (!capable_wrt_inode_uidgid(idmap, inode, CAP_SETFCAP))
589 if (size == XATTR_CAPS_SZ_2 && (idmap == &nop_mnt_idmap))
598 rootid = from_vfsuid(idmap, fs_ns, vfsrootid);
663 * @idmap: idmap of the mount the inode was found from
669 * If the inode has been found through an idmapped mount the idmap of
670 * the vfsmount must be passed through @idmap. This function will then
671 * take care to map the inode according to @idmap before checking
675 int get_vfs_caps_from_disk(struct mnt_idmap *idmap,
728 rootvfsuid = make_vfsuid(idmap, fs_ns, rootkuid);
1050 * @idmap: idmap of the mount the inode was found from
1057 * If the inode has been found through an idmapped mount the idmap of
1058 * the vfsmount must be passed through @idmap. This function will then
1059 * take care to map the inode according to @idmap before checking
1066 int cap_inode_removexattr(struct mnt_idmap *idmap,
1081 if (!capable_wrt_inode_uidgid(idmap, inode, CAP_SETFCAP))