Lines Matching refs:inode
142 static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, in hmac_add_misc() argument
158 hmac_misc.ino = inode->i_ino; in hmac_add_misc()
159 hmac_misc.generation = inode->i_generation; in hmac_add_misc()
169 hmac_misc.uid = from_kuid(&init_user_ns, inode->i_uid); in hmac_add_misc()
170 hmac_misc.gid = from_kgid(&init_user_ns, inode->i_gid); in hmac_add_misc()
171 hmac_misc.mode = inode->i_mode; in hmac_add_misc()
175 crypto_shash_update(desc, (u8 *)&inode->i_sb->s_uuid, UUID_SIZE); in hmac_add_misc()
216 struct inode *inode = d_backing_inode(dentry); in evm_calc_hmac_or_hash() local
225 if (!(inode->i_opflags & IOP_XATTR) || in evm_calc_hmac_or_hash()
226 inode->i_sb->s_user_ns != &init_user_ns) in evm_calc_hmac_or_hash()
296 hmac_add_misc(desc, inode, type, data->digest); in evm_calc_hmac_or_hash()
323 static int evm_is_immutable(struct dentry *dentry, struct inode *inode) in evm_is_immutable() argument
329 iint = integrity_iint_find(inode); in evm_is_immutable()
359 struct inode *inode = d_backing_inode(dentry); in evm_update_evmxattr() local
367 rc = evm_is_immutable(dentry, inode); in evm_update_evmxattr()
382 } else if (rc == -ENODATA && (inode->i_opflags & IOP_XATTR)) { in evm_update_evmxattr()
388 int evm_init_hmac(struct inode *inode, const struct xattr *lsm_xattr, in evm_init_hmac() argument
400 hmac_add_misc(desc, inode, EVM_XATTR_HMAC, hmac_val); in evm_init_hmac()