Lines Matching refs:fown
718 struct fown_struct *fown, int sig) in sigio_perm() argument
725 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
726 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
727 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
728 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm()
734 struct fown_struct *fown, in send_sigio_to_task() argument
741 int signum = READ_ONCE(fown->signum); in send_sigio_to_task()
743 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
789 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
796 read_lock_irqsave(&fown->lock, flags); in send_sigio()
798 type = fown->pid_type; in send_sigio()
799 pid = fown->pid; in send_sigio()
807 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
812 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
817 read_unlock_irqrestore(&fown->lock, flags); in send_sigio()
821 struct fown_struct *fown, enum pid_type type) in send_sigurg_to_task() argument
823 if (sigio_perm(p, fown, SIGURG)) in send_sigurg_to_task()
827 int send_sigurg(struct fown_struct *fown) in send_sigurg() argument
835 read_lock_irqsave(&fown->lock, flags); in send_sigurg()
837 type = fown->pid_type; in send_sigurg()
838 pid = fown->pid; in send_sigurg()
848 send_sigurg_to_task(p, fown, type); in send_sigurg()
853 send_sigurg_to_task(p, fown, type); in send_sigurg()
858 read_unlock_irqrestore(&fown->lock, flags); in send_sigurg()
1006 struct fown_struct *fown; in kill_fasync_rcu() local
1016 fown = &fa->fa_file->f_owner; in kill_fasync_rcu()
1020 if (!(sig == SIGURG && fown->signum == 0)) in kill_fasync_rcu()
1021 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu()