Lines Matching refs:fown
694 struct fown_struct *fown, int sig) in sigio_perm() argument
701 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
702 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
703 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
704 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm()
710 struct fown_struct *fown, in send_sigio_to_task() argument
717 int signum = READ_ONCE(fown->signum); in send_sigio_to_task()
719 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
765 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
772 read_lock_irqsave(&fown->lock, flags); in send_sigio()
774 type = fown->pid_type; in send_sigio()
775 pid = fown->pid; in send_sigio()
783 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
788 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
793 read_unlock_irqrestore(&fown->lock, flags); in send_sigio()
797 struct fown_struct *fown, enum pid_type type) in send_sigurg_to_task() argument
799 if (sigio_perm(p, fown, SIGURG)) in send_sigurg_to_task()
803 int send_sigurg(struct fown_struct *fown) in send_sigurg() argument
811 read_lock_irqsave(&fown->lock, flags); in send_sigurg()
813 type = fown->pid_type; in send_sigurg()
814 pid = fown->pid; in send_sigurg()
824 send_sigurg_to_task(p, fown, type); in send_sigurg()
829 send_sigurg_to_task(p, fown, type); in send_sigurg()
834 read_unlock_irqrestore(&fown->lock, flags); in send_sigurg()
982 struct fown_struct *fown; in kill_fasync_rcu() local
992 fown = &fa->fa_file->f_owner; in kill_fasync_rcu()
996 if (!(sig == SIGURG && fown->signum == 0)) in kill_fasync_rcu()
997 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu()