• Home
  • Raw
  • Download

Lines Matching refs:file

285 	aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms);  in __aa_path_perm()
390 state = aa_str_perms(profile->file.dfa, profile->file.start, lname, in profile_path_link()
397 state = aa_dfa_null_transition(profile->file.dfa, state); in profile_path_link()
398 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
420 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
509 struct aa_label *flabel, struct file *file, in __file_path_perm() argument
515 .uid = file_inode(file)->i_uid, in __file_path_perm()
516 .mode = file_inode(file)->i_mode in __file_path_perm()
531 profile_path_perm(op, profile, &file->f_path, buffer, in __file_path_perm()
544 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
549 profile_path_perm(op, profile, &file->f_path, in __file_path_perm()
554 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
562 struct aa_label *flabel, struct file *file, in __file_sock_perm() argument
565 struct socket *sock = (struct socket *) file->private_data; in __file_sock_perm()
582 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()
627 if (file->f_path.mnt && path_mediated_fs(file->f_path.dentry)) in aa_file_perm()
628 error = __file_path_perm(op, label, flabel, file, request, in aa_file_perm()
631 else if (S_ISSOCK(file_inode(file)->i_mode)) in aa_file_perm()
632 error = __file_sock_perm(op, label, flabel, file, request, in aa_file_perm()
652 struct file *file; in revalidate_tty() local
656 file = file_priv->file; in revalidate_tty()
658 if (aa_file_perm(OP_INHERIT, label, file, MAY_READ | MAY_WRITE)) in revalidate_tty()
668 static int match_file(const void *p, struct file *file, unsigned int fd) in match_file() argument
672 if (aa_file_perm(OP_INHERIT, label, file, aa_map_file_to_perms(file))) in match_file()
682 struct file *devnull = NULL; in aa_inherit_files()