| /linux/fs/ |
| H A D | fcntl.c | 843 struct fown_struct *fown, int sig) in sigio_perm() argument 850 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm() 851 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm() 852 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm() 853 !security_file_send_sigiotask(p, fown, sig)); in sigio_perm() 859 struct fown_struct *fown, in send_sigio_to_task() argument 866 int signum = READ_ONCE(fown->signum); in send_sigio_to_task() 868 if (!sigio_perm(p, fown, signum)) in send_sigio_to_task() 914 void send_sigio(struct fown_struct *fown, int fd, int band) in send_sigio() argument 921 read_lock_irqsave(&fown->lock, flags); in send_sigio() [all …]
|
| /linux/tools/testing/selftests/landlock/ |
| H A D | scoped_signal_test.c | 427 FIXTURE(fown) {}; 437 FIXTURE_VARIANT(fown) 443 FIXTURE_VARIANT_ADD(fown, no_sandbox) { 449 FIXTURE_VARIANT_ADD(fown, sandbox_before_fork) { 455 FIXTURE_VARIANT_ADD(fown, sandbox_before_setown) { 461 FIXTURE_VARIANT_ADD(fown, sandbox_after_setown) { in FIXTURE_SETUP() argument 466 FIXTURE_SETUP(fown) in FIXTURE_TEARDOWN() argument 471 FIXTURE_TEARDOWN(fown) 479 TEST_F(fown, sigurg_socket) in TEST_F() 422 FIXTURE(fown) FIXTURE() argument 432 FIXTURE_VARIANT(fown) FIXTURE_VARIANT() argument 438 FIXTURE_VARIANT_ADD(fown,no_sandbox) FIXTURE_VARIANT_ADD() argument 444 FIXTURE_VARIANT_ADD(fown,sandbox_before_fork) FIXTURE_VARIANT_ADD() argument 450 FIXTURE_VARIANT_ADD(fown,sandbox_before_setown) FIXTURE_VARIANT_ADD() argument 456 FIXTURE_VARIANT_ADD(fown,sandbox_after_setown) FIXTURE_VARIANT_ADD() argument 474 TEST_F(fown,sigurg_socket) TEST_F() argument
|
| /linux/security/landlock/ |
| H A D | task.c | 458 struct fown_struct *fown, int signum) in hook_file_send_sigiotask() argument 467 lockdep_assert_held(&fown->lock); in hook_file_send_sigiotask() 468 subject = &landlock_file(fown->file)->fown_subject; in hook_file_send_sigiotask() 488 if (task_tgid(tsk) == landlock_file(fown->file)->fown_tg) in hook_file_send_sigiotask() 513 .layer_plus_one = landlock_file(fown->file)->fown_layer + 1, in hook_file_send_sigiotask()
|
| H A D | fs.c | 2015 static bool control_current_fowner(struct fown_struct *const fown) in control_current_fowner() argument 2023 lockdep_assert_held(&fown->lock); in control_current_fowner() 2030 if (fown->pid_type != PIDTYPE_PID && fown->pid_type != PIDTYPE_TGID) in control_current_fowner() 2038 p = pid_task(fown->pid, fown->pid_type); in control_current_fowner()
|
| /linux/fs/notify/dnotify/ |
| H A D | dnotify.c | 96 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/include/linux/ |
| H A D | security.h | 499 struct fown_struct *fown, int sig); 1230 struct fown_struct *fown, 1215 security_file_send_sigiotask(struct task_struct * tsk,struct fown_struct * fown,int sig) security_file_send_sigiotask() argument
|
| H A D | lsm_hook_defs.h | 214 struct fown_struct *fown, int sig)
|
| H A D | fs.h | 1347 extern void send_sigio(struct fown_struct *fown, int fd, int band); in file_inode()
|
| /linux/security/ |
| H A D | security.c | 2723 * @fown: signal sender 2726 * Check permission for the file owner @fown to send SIGIO or SIGURG to the 2728 * that the fown_struct, @fown, is never outside the context of a struct file, 2730 * obtained: container_of(fown, struct file, f_owner). 2735 struct fown_struct *fown, int sig) 2737 return call_int_hook(file_send_sigiotask, tsk, fown, sig); in security_file_open() 2705 security_file_send_sigiotask(struct task_struct * tsk,struct fown_struct * fown,int sig) security_file_send_sigiotask() argument
|
| /linux/security/smack/ |
| H A D | smack_lsm.c | 1966 * @fown: the object the signal come from 1975 struct fown_struct *fown, int signum) in smack_file_send_sigiotask() 1988 file = fown->file; in smack_file_send_sigiotask() 1972 smack_file_send_sigiotask(struct task_struct * tsk,struct fown_struct * fown,int signum) smack_file_send_sigiotask() argument
|
| /linux/security/selinux/ |
| H A D | hooks.c | 4361 struct fown_struct *fown, int signum) in selinux_file_send_sigiotask() 4369 file = fown->file; in selinux_file_send_sigiotask() 4350 selinux_file_send_sigiotask(struct task_struct * tsk,struct fown_struct * fown,int signum) selinux_file_send_sigiotask() argument
|