Lines Matching refs:fown
709 struct fown_struct *fown, int sig) in sigio_perm() argument
716 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
717 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
718 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
719 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm()
725 struct fown_struct *fown, in send_sigio_to_task() argument
732 int signum = READ_ONCE(fown->signum); in send_sigio_to_task()
734 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
778 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
784 read_lock(&fown->lock); in send_sigio()
786 type = fown->pid_type; in send_sigio()
787 pid = fown->pid; in send_sigio()
795 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
800 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
805 read_unlock(&fown->lock); in send_sigio()
809 struct fown_struct *fown, enum pid_type type) in send_sigurg_to_task() argument
811 if (sigio_perm(p, fown, SIGURG)) in send_sigurg_to_task()
815 int send_sigurg(struct fown_struct *fown) in send_sigurg() argument
822 read_lock(&fown->lock); in send_sigurg()
824 type = fown->pid_type; in send_sigurg()
825 pid = fown->pid; in send_sigurg()
835 send_sigurg_to_task(p, fown, type); in send_sigurg()
840 send_sigurg_to_task(p, fown, type); in send_sigurg()
845 read_unlock(&fown->lock); in send_sigurg()
993 struct fown_struct *fown; in kill_fasync_rcu() local
1002 fown = &fa->fa_file->f_owner; in kill_fasync_rcu()
1006 if (!(sig == SIGURG && fown->signum == 0)) in kill_fasync_rcu()
1007 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu()