Lines Matching refs:dentry

245 					    d_backing_inode(path->dentry));  in common_perm_cond()
248 d_backing_inode(path->dentry)->i_mode in common_perm_cond()
251 if (!path_mediated_fs(path->dentry)) in common_perm_cond()
268 struct dentry *dentry, u32 mask, in common_perm_dir_dentry() argument
271 struct path path = { .mnt = dir->mnt, .dentry = dentry }; in common_perm_dir_dentry()
286 struct dentry *dentry, u32 mask) in common_perm_rm() argument
288 struct inode *inode = d_backing_inode(dentry); in common_perm_rm()
292 if (!inode || !path_mediated_fs(dentry)) in common_perm_rm()
299 return common_perm_dir_dentry(op, dir, dentry, mask, &cond); in common_perm_rm()
313 struct dentry *dentry, u32 mask, umode_t mode) in common_perm_create() argument
317 if (!path_mediated_fs(dir->dentry)) in common_perm_create()
320 return common_perm_dir_dentry(op, dir, dentry, mask, &cond); in common_perm_create()
323 static int apparmor_path_unlink(const struct path *dir, struct dentry *dentry) in apparmor_path_unlink() argument
325 return common_perm_rm(OP_UNLINK, dir, dentry, AA_MAY_DELETE); in apparmor_path_unlink()
328 static int apparmor_path_mkdir(const struct path *dir, struct dentry *dentry, in apparmor_path_mkdir() argument
331 return common_perm_create(OP_MKDIR, dir, dentry, AA_MAY_CREATE, in apparmor_path_mkdir()
335 static int apparmor_path_rmdir(const struct path *dir, struct dentry *dentry) in apparmor_path_rmdir() argument
337 return common_perm_rm(OP_RMDIR, dir, dentry, AA_MAY_DELETE); in apparmor_path_rmdir()
340 static int apparmor_path_mknod(const struct path *dir, struct dentry *dentry, in apparmor_path_mknod() argument
343 return common_perm_create(OP_MKNOD, dir, dentry, AA_MAY_CREATE, mode); in apparmor_path_mknod()
356 static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry, in apparmor_path_symlink() argument
359 return common_perm_create(OP_SYMLINK, dir, dentry, AA_MAY_CREATE, in apparmor_path_symlink()
363 static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir, in apparmor_path_link()
364 struct dentry *new_dentry) in apparmor_path_link()
381 static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, in apparmor_path_rename()
382 const struct path *new_dir, struct dentry *new_dentry, in apparmor_path_rename()
398 .dentry = old_dentry }; in apparmor_path_rename()
400 .dentry = new_dentry }; in apparmor_path_rename()
466 if (!path_mediated_fs(file->f_path.dentry)) in apparmor_file_open()
530 if (unlikely(file->f_path.dentry == aa_null.dentry)) in common_file_perm()