Lines Matching refs:file

232 	aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE],  in __aa_path_perm()
348 state = aa_str_perms(rules->file, in profile_path_link()
349 rules->file->start[AA_CLASS_FILE], lname, in profile_path_link()
356 state = aa_dfa_null_transition(rules->file->dfa, state); in profile_path_link()
357 aa_str_perms(rules->file, state, tname, cond, &perms); in profile_path_link()
379 aa_str_perms(rules->file, rules->file->start[AA_CLASS_FILE], in profile_path_link()
480 struct aa_label *flabel, struct file *file, in __file_path_perm() argument
485 vfsuid_t vfsuid = i_uid_into_vfsuid(file_mnt_idmap(file), in __file_path_perm()
486 file_inode(file)); in __file_path_perm()
489 .mode = file_inode(file)->i_mode in __file_path_perm()
507 &file->f_path, buffer, in __file_path_perm()
521 profile, &file->f_path, in __file_path_perm()
527 profile, &file->f_path, in __file_path_perm()
532 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
541 struct aa_label *flabel, struct file *file, in __file_sock_perm() argument
551 error = aa_sock_file_perm(subj_cred, label, op, request, file); in __file_sock_perm()
556 request, file)); in __file_sock_perm()
559 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
570 static bool __unix_needs_revalidation(struct file *file, struct aa_label *label, in __unix_needs_revalidation() argument
573 struct socket *sock = (struct socket *) file->private_data; in __unix_needs_revalidation()
577 if (!S_ISSOCK(file_inode(file)->i_mode)) in __unix_needs_revalidation()
605 struct aa_label *label, struct file *file, in aa_file_perm() argument
614 AA_BUG(!file); in aa_file_perm()
616 fctx = file_ctx(file); in aa_file_perm()
631 __unix_needs_revalidation(file, label, request) || in aa_file_perm()
641 if (path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
642 error = __file_path_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
645 else if (S_ISSOCK(file_inode(file)->i_mode)) in aa_file_perm()
646 error = __file_sock_perm(op, subj_cred, label, flabel, file, in aa_file_perm()
666 struct file *file; in revalidate_tty() local
670 file = file_priv->file; in revalidate_tty()
672 if (aa_file_perm(OP_INHERIT, subj_cred, label, file, in revalidate_tty()
688 static int match_file(const void *p, struct file *file, unsigned int fd) in match_file() argument
692 if (aa_file_perm(OP_INHERIT, cl->cred, cl->label, file, in match_file()
693 aa_map_file_to_perms(file), IN_ATOMIC)) in match_file()
707 struct file *devnull = NULL; in aa_inherit_files()