Lines Matching defs:file
12 #include <linux/file.h>
133 void ima_add_violation(struct file *file, const unsigned char *filename,
138 struct inode *inode = file_inode(file);
140 .file = file,
211 * On failure, 'measure' policy rules will result in a file data
219 * Unlike in the case of actually calculating the file hash, in
231 * ima_collect_measurement - collect file measurement
233 * Calculate the file hash, if it doesn't already exist,
241 struct file *file, void *buf, loff_t size,
245 struct inode *inode = file_inode(file);
246 struct inode *real_inode = d_real_inode(file_dentry(file));
247 const char *filename = file->f_path.dentry->d_name.name;
257 * the file digest without collecting the modsig in a previous
267 * Detecting file change is based on i_version. On filesystems
270 * assume the file changed.
272 result = vfs_getattr_nosec(&file->f_path, &stat, STATX_CHANGE_COOKIE,
290 result = ima_calc_file_hash(file, &hash.hdr);
316 if (file->f_flags & O_DIRECT)
327 * ima_store_measurement - store file measurement
334 * - multiple copies of the same file on either the same or
342 struct file *file, const unsigned char *filename,
350 struct inode *inode = file_inode(file);
353 .file = file,
363 * appraisal, but a file measurement from earlier might already exist in
377 if ((!result || result == -EEXIST) && !(file->f_flags & O_DIRECT)) {
409 audit_log_format(ab, "file=");