Lines Matching refs:fown

840                              struct fown_struct *fown, int sig)  in sigio_perm()  argument
847 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
848 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
849 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
850 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm()
856 struct fown_struct *fown, in send_sigio_to_task() argument
863 int signum = READ_ONCE(fown->signum); in send_sigio_to_task()
865 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
911 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
918 read_lock_irqsave(&fown->lock, flags); in send_sigio()
920 type = fown->pid_type; in send_sigio()
921 pid = fown->pid; in send_sigio()
929 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
934 send_sigio_to_task(p, fown, fd, band, type); in send_sigio()
939 read_unlock_irqrestore(&fown->lock, flags); in send_sigio()
943 struct fown_struct *fown, enum pid_type type) in send_sigurg_to_task() argument
945 if (sigio_perm(p, fown, SIGURG)) in send_sigurg_to_task()
951 struct fown_struct *fown; in send_sigurg() local
958 fown = file_f_owner(file); in send_sigurg()
959 if (!fown) in send_sigurg()
962 read_lock_irqsave(&fown->lock, flags); in send_sigurg()
964 type = fown->pid_type; in send_sigurg()
965 pid = fown->pid; in send_sigurg()
975 send_sigurg_to_task(p, fown, type); in send_sigurg()
980 send_sigurg_to_task(p, fown, type); in send_sigurg()
985 read_unlock_irqrestore(&fown->lock, flags); in send_sigurg()
1127 struct fown_struct *fown; in kill_fasync_rcu() local
1137 fown = file_f_owner(fa->fa_file); in kill_fasync_rcu()
1138 if (!fown) in kill_fasync_rcu()
1143 if (!(sig == SIGURG && fown->signum == 0)) in kill_fasync_rcu()
1144 send_sigio(fown, fa->fa_fd, band); in kill_fasync_rcu()