Home
last modified time | relevance | path

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

/linux/fs/
H A Dfcntl.c843 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 Dscoped_signal_test.c427 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 Dtask.c458 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 Dfs.c2015 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 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/include/linux/
H A Dsecurity.h499 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 Dlsm_hook_defs.h214 struct fown_struct *fown, int sig)
H A Dfs.h1347 extern void send_sigio(struct fown_struct *fown, int fd, int band); in file_inode()
/linux/security/
H A Dsecurity.c2723 * @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 Dsmack_lsm.c1966 * @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 Dhooks.c4361 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