Home
last modified time | relevance | path

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

/linux-6.12.1/fs/
Dfcntl.c832 struct fown_struct *fown, int sig) in sigio_perm() argument
839 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
840 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
841 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
842 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm()
848 struct fown_struct *fown, in send_sigio_to_task() argument
855 int signum = READ_ONCE(fown->signum); in send_sigio_to_task()
857 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task()
903 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument
910 read_lock_irqsave(&fown->lock, flags); in send_sigio()
[all …]
/linux-6.12.1/tools/testing/selftests/landlock/
Dscoped_signal_test.c326 FIXTURE(fown) {}; in FIXTURE() argument
336 FIXTURE_VARIANT(fown) in FIXTURE_VARIANT() argument
342 FIXTURE_VARIANT_ADD(fown, no_sandbox) { in FIXTURE_VARIANT_ADD() argument
348 FIXTURE_VARIANT_ADD(fown, sandbox_before_fork) { in FIXTURE_VARIANT_ADD() argument
354 FIXTURE_VARIANT_ADD(fown, sandbox_before_setown) { in FIXTURE_VARIANT_ADD() argument
360 FIXTURE_VARIANT_ADD(fown, sandbox_after_setown) { in FIXTURE_VARIANT_ADD() argument
365 FIXTURE_SETUP(fown) in FIXTURE_SETUP() argument
370 FIXTURE_TEARDOWN(fown) in FIXTURE_TEARDOWN() argument
378 TEST_F(fown, sigurg_socket) in TEST_F() argument
/linux-6.12.1/security/landlock/
Dtask.c286 struct fown_struct *fown, int signum) in hook_file_send_sigiotask() argument
292 lockdep_assert_held(&fown->lock); in hook_file_send_sigiotask()
294 landlock_file(fown->file)->fown_domain, signal_scope); in hook_file_send_sigiotask()
/linux-6.12.1/fs/notify/dnotify/
Ddnotify.c97 struct fown_struct *fown; in dnotify_handle_event() local
113 fown = file_f_owner(dn->dn_filp); in dnotify_handle_event()
114 send_sigio(fown, dn->dn_fd, POLL_MSG); in dnotify_handle_event()
/linux-6.12.1/include/linux/
Dsecurity.h435 struct fown_struct *fown, int sig);
1115 struct fown_struct *fown, in security_file_send_sigiotask() argument
Dlsm_hook_defs.h205 struct fown_struct *fown, int sig)
Dfs.h1119 extern void send_sigio(struct fown_struct *fown, int fd, int band);
/linux-6.12.1/security/
Dsecurity.c3077 struct fown_struct *fown, int sig) in security_file_send_sigiotask() argument
3079 return call_int_hook(file_send_sigiotask, tsk, fown, sig); in security_file_send_sigiotask()
/linux-6.12.1/security/smack/
Dsmack_lsm.c1940 struct fown_struct *fown, int signum) in smack_file_send_sigiotask() argument
1953 file = fown->file; in smack_file_send_sigiotask()
/linux-6.12.1/security/selinux/
Dhooks.c3943 struct fown_struct *fown, int signum) in selinux_file_send_sigiotask() argument
3951 file = fown->file; in selinux_file_send_sigiotask()