Lines Matching refs:file
274 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
381 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link()
388 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_path_link()
389 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
411 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
506 struct aa_label *flabel, struct file *file, in __file_path_perm() argument
512 .uid = file_inode(file)->i_uid, in __file_path_perm()
513 .mode = file_inode(file)->i_mode in __file_path_perm()
530 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
543 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
548 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
553 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
561 struct aa_label *flabel, struct file *file, in __file_sock_perm() argument
564 struct socket *sock = (struct socket *) file->private_data; in __file_sock_perm()
581 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
596 int aa_file_perm(const char *op, struct aa_label *label, struct file *file, in aa_file_perm() argument
605 AA_BUG(!file); in aa_file_perm()
607 fctx = file_ctx(file); in aa_file_perm()
631 if (file->f_path.mnt && path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
632 error = __file_path_perm(op, label, flabel, file, request, in aa_file_perm()
635 else if (S_ISSOCK(file_inode(file)->i_mode)) in aa_file_perm()
636 error = __file_sock_perm(op, label, flabel, file, request, in aa_file_perm()
656 struct file *file; in revalidate_tty() local
660 file = file_priv->file; in revalidate_tty()
662 if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE, in revalidate_tty()
673 static int match_file(const void *p, struct file *file, unsigned int fd) in match_file() argument
677 if (aa_file_perm(OP_INHERIT, label, file, aa_map_file_to_perms(file), in match_file()
688 struct file *devnull = NULL; in aa_inherit_files()