Searched refs:fown (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/fs/
H A Dfcntl.c433 struct fown_struct *fown, int sig) sigio_perm()
440 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || sigio_perm()
441 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || sigio_perm()
442 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && sigio_perm()
443 !security_file_send_sigiotask(p, fown, sig)); sigio_perm()
449 struct fown_struct *fown, send_sigio_to_task()
456 int signum = ACCESS_ONCE(fown->signum); send_sigio_to_task()
458 if (!sigio_perm(p, fown, signum)) send_sigio_to_task()
490 void send_sigio(struct fown_struct *fown, int fd, int band) send_sigio() argument
497 read_lock(&fown->lock); send_sigio()
499 type = fown->pid_type; send_sigio()
505 pid = fown->pid; send_sigio()
511 send_sigio_to_task(p, fown, fd, band, group); do_each_pid_task()
515 read_unlock(&fown->lock);
519 struct fown_struct *fown, int group) send_sigurg_to_task()
521 if (sigio_perm(p, fown, SIGURG)) send_sigurg_to_task()
525 int send_sigurg(struct fown_struct *fown) send_sigurg() argument
533 read_lock(&fown->lock); send_sigurg()
535 type = fown->pid_type; send_sigurg()
541 pid = fown->pid; send_sigurg()
549 send_sigurg_to_task(p, fown, group); do_each_pid_task()
553 read_unlock(&fown->lock);
701 struct fown_struct *fown; kill_fasync_rcu() local
711 fown = &fa->fa_file->f_owner; kill_fasync_rcu()
715 if (!(sig == SIGURG && fown->signum == 0)) kill_fasync_rcu()
716 send_sigio(fown, fa->fa_fd, band); kill_fasync_rcu()
432 sigio_perm(struct task_struct *p, struct fown_struct *fown, int sig) sigio_perm() argument
448 send_sigio_to_task(struct task_struct *p, struct fown_struct *fown, int fd, int reason, int group) send_sigio_to_task() argument
518 send_sigurg_to_task(struct task_struct *p, struct fown_struct *fown, int group) send_sigurg_to_task() argument
/linux-4.4.14/fs/notify/dnotify/
H A Ddnotify.c94 struct fown_struct *fown; dnotify_handle_event() local
112 fown = &dn->dn_filp->f_owner; dnotify_handle_event()
113 send_sigio(fown, dn->dn_fd, POLL_MSG); dnotify_handle_event()
/linux-4.4.14/security/
H A Dsecurity.c826 struct fown_struct *fown, int sig) security_file_send_sigiotask()
828 return call_int_hook(file_send_sigiotask, 0, tsk, fown, sig); security_file_send_sigiotask()
825 security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig) security_file_send_sigiotask() argument
/linux-4.4.14/include/linux/
H A Dsecurity.h290 struct fown_struct *fown, int sig);
796 struct fown_struct *fown, security_file_send_sigiotask()
795 security_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int sig) security_file_send_sigiotask() argument
H A Dlsm_hooks.h483 * Check permission for the file owner @fown to send SIGIO or SIGURG to the
485 * Note that the fown_struct, @fown, is never outside the context of a
488 * container_of(fown, struct file, f_owner)
490 * @fown contains the file owner information.
1440 struct fown_struct *fown, int sig);
H A Dfs.h1028 extern void send_sigio(struct fown_struct *fown, int fd, int band);
1250 extern int send_sigurg(struct fown_struct *fown);
/linux-4.4.14/security/smack/
H A Dsmack_lsm.c1814 * @fown: the object the signal come from
1823 struct fown_struct *fown, int signum) smack_file_send_sigiotask()
1834 file = container_of(fown, struct file, f_owner); smack_file_send_sigiotask()
1822 smack_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int signum) smack_file_send_sigiotask() argument
/linux-4.4.14/security/selinux/
H A Dhooks.c3475 struct fown_struct *fown, int signum) selinux_file_send_sigiotask()
3483 file = container_of(fown, struct file, f_owner); selinux_file_send_sigiotask()
3474 selinux_file_send_sigiotask(struct task_struct *tsk, struct fown_struct *fown, int signum) selinux_file_send_sigiotask() argument

Completed in 541 milliseconds