Home
last modified time | relevance | path

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

/linux/fs/
H A Dfcntl.c840 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()
[all …]
/linux/tools/testing/selftests/landlock/
H A Dscoped_signal_test.c404 FIXTURE(fown) {}; in TEST_F()
414 FIXTURE_VARIANT(fown) in TEST_F()
420 FIXTURE_VARIANT_ADD(fown, no_sandbox) { in TEST_F()
426 FIXTURE_VARIANT_ADD(fown, sandbox_before_fork) { in TEST_F()
432 FIXTURE_VARIANT_ADD(fown, sandbox_before_setown) { in TEST_F()
438 FIXTURE_VARIANT_ADD(fown, sandbox_after_setown) { in TEST_F()
443 FIXTURE_SETUP(fown) in TEST_F()
448 FIXTURE_TEARDOWN(fown) in TEST_F()
456 TEST_F(fown, sigurg_socket) in TEST_F()
326 FIXTURE(fown) FIXTURE() argument
336 FIXTURE_VARIANT(fown) FIXTURE_VARIANT() argument
342 FIXTURE_VARIANT_ADD(fown,no_sandbox) FIXTURE_VARIANT_ADD() argument
348 FIXTURE_VARIANT_ADD(fown,sandbox_before_fork) FIXTURE_VARIANT_ADD() argument
354 FIXTURE_VARIANT_ADD(fown,sandbox_before_setown) FIXTURE_VARIANT_ADD() argument
360 FIXTURE_VARIANT_ADD(fown,sandbox_after_setown) FIXTURE_VARIANT_ADD() argument
365 FIXTURE_SETUP(fown) FIXTURE_SETUP() argument
370 FIXTURE_TEARDOWN(fown) FIXTURE_TEARDOWN() argument
378 TEST_F(fown,sigurg_socket) TEST_F() argument
/linux/security/landlock/
H A Dtask.c395 struct fown_struct *fown, int signum) in hook_file_send_sigiotask()
401 lockdep_assert_held(&fown->lock); in hook_file_send_sigiotask()
402 subject = &landlock_file(fown->file)->fown_subject; in hook_file_send_sigiotask()
431 .layer_plus_one = landlock_file(fown->file)->fown_layer + 1, in hook_file_send_sigiotask()
391 hook_file_send_sigiotask(struct task_struct * tsk,struct fown_struct * fown,int signum) hook_file_send_sigiotask() argument
H A Dfs.c1893 static bool control_current_fowner(struct fown_struct *const fown)
1901 lockdep_assert_held(&fown->lock);
1908 p = pid_task(fown->pid, fown->pid_type);
1767 control_current_fowner(struct fown_struct * const fown) control_current_fowner() argument
/linux/fs/notify/dnotify/
H A Ddnotify.c96 struct fown_struct *fown; in dnotify_handle_event() local
112 fown = file_f_owner(dn->dn_filp); in dnotify_handle_event()
113 send_sigio(fown, dn->dn_fd, POLL_MSG); in dnotify_handle_event()
/linux/security/
H A Dsecurity.c2705 struct fown_struct *fown, int sig) in security_file_send_sigiotask() argument
2707 return call_int_hook(file_send_sigiotask, tsk, fown, sig); in security_file_send_sigiotask()
/linux/security/smack/
H A Dsmack_lsm.c1959 * @fown: the object the signal come from
1968 struct fown_struct *fown, int signum) in smack_file_send_sigiotask() argument
1981 file = fown->file; in smack_file_send_sigiotask()
/linux/security/selinux/
H A Dhooks.c4224 struct fown_struct *fown, int signum) in selinux_file_send_sigiotask() argument
4232 file = fown->file; in selinux_file_send_sigiotask()