Lines Matching refs:call_int_hook

735 #define call_int_hook(FUNC, IRC, ...) ({			\  macro
753 return call_int_hook(binder_set_context_mgr, 0, mgr); in security_binder_set_context_mgr()
759 return call_int_hook(binder_transaction, 0, from, to); in security_binder_transaction()
765 return call_int_hook(binder_transfer_binder, 0, from, to); in security_binder_transfer_binder()
771 return call_int_hook(binder_transfer_file, 0, from, to, file); in security_binder_transfer_file()
776 return call_int_hook(ptrace_access_check, 0, child, mode); in security_ptrace_access_check()
781 return call_int_hook(ptrace_traceme, 0, parent); in security_ptrace_traceme()
789 return call_int_hook(capget, 0, target, in security_capget()
798 return call_int_hook(capset, 0, new, old, in security_capset()
807 return call_int_hook(capable, 0, cred, ns, cap, opts); in security_capable()
812 return call_int_hook(quotactl, 0, cmds, type, id, sb); in security_quotactl()
817 return call_int_hook(quota_on, 0, dentry); in security_quota_on()
822 return call_int_hook(syslog, 0, type); in security_syslog()
827 return call_int_hook(settime, 0, ts, tz); in security_settime64()
855 return call_int_hook(bprm_creds_for_exec, 0, bprm); in security_bprm_creds_for_exec()
860 return call_int_hook(bprm_creds_from_file, 0, bprm, file); in security_bprm_creds_from_file()
867 ret = call_int_hook(bprm_check_security, 0, bprm); in security_bprm_check()
885 return call_int_hook(fs_context_dup, 0, fc, src_fc); in security_fs_context_dup()
912 rc = call_int_hook(sb_alloc_security, 0, sb); in security_sb_alloc()
941 return call_int_hook(sb_eat_lsm_opts, 0, options, mnt_opts); in security_sb_eat_lsm_opts()
948 return call_int_hook(sb_mnt_opts_compat, 0, sb, mnt_opts); in security_sb_mnt_opts_compat()
955 return call_int_hook(sb_remount, 0, sb, mnt_opts); in security_sb_remount()
961 return call_int_hook(sb_kern_mount, 0, sb); in security_sb_kern_mount()
966 return call_int_hook(sb_show_options, 0, m, sb); in security_sb_show_options()
971 return call_int_hook(sb_statfs, 0, dentry); in security_sb_statfs()
977 return call_int_hook(sb_mount, 0, dev_name, path, type, flags, data); in security_sb_mount()
982 return call_int_hook(sb_umount, 0, mnt, flags); in security_sb_umount()
987 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()
995 return call_int_hook(sb_set_mnt_opts, in security_sb_set_mnt_opts()
1006 return call_int_hook(sb_clone_mnt_opts, 0, oldsb, newsb, in security_sb_clone_mnt_opts()
1013 return call_int_hook(move_mount, 0, from_path, to_path); in security_move_mount()
1019 return call_int_hook(path_notify, 0, path, mask, obj_type); in security_path_notify()
1028 rc = call_int_hook(inode_alloc_security, 0, inode); in security_inode_alloc()
1085 return call_int_hook(dentry_create_files_as, 0, dentry, mode, in security_dentry_create_files_as()
1102 return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, in security_inode_init_security()
1106 ret = call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, qstr, in security_inode_init_security()
1129 return call_int_hook(inode_init_security_anon, 0, inode, name, in security_inode_init_security_anon()
1139 return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, in security_old_inode_init_security()
1150 return call_int_hook(path_mknod, 0, dir, dentry, mode, dev); in security_path_mknod()
1158 return call_int_hook(path_mkdir, 0, dir, dentry, mode); in security_path_mkdir()
1166 return call_int_hook(path_rmdir, 0, dir, dentry); in security_path_rmdir()
1173 return call_int_hook(path_unlink, 0, dir, dentry); in security_path_unlink()
1182 return call_int_hook(path_symlink, 0, dir, dentry, old_name); in security_path_symlink()
1190 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); in security_path_link()
1201 return call_int_hook(path_rename, 0, old_dir, old_dentry, new_dir, in security_path_rename()
1210 return call_int_hook(path_truncate, 0, path); in security_path_truncate()
1217 return call_int_hook(path_chmod, 0, path, mode); in security_path_chmod()
1224 return call_int_hook(path_chown, 0, path, uid, gid); in security_path_chown()
1229 return call_int_hook(path_chroot, 0, path); in security_path_chroot()
1237 return call_int_hook(inode_create, 0, dir, dentry, mode); in security_inode_create()
1246 return call_int_hook(inode_link, 0, old_dentry, dir, new_dentry); in security_inode_link()
1253 return call_int_hook(inode_unlink, 0, dir, dentry); in security_inode_unlink()
1261 return call_int_hook(inode_symlink, 0, dir, dentry, old_name); in security_inode_symlink()
1268 return call_int_hook(inode_mkdir, 0, dir, dentry, mode); in security_inode_mkdir()
1276 return call_int_hook(inode_rmdir, 0, dir, dentry); in security_inode_rmdir()
1283 return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev); in security_inode_mknod()
1295 int err = call_int_hook(inode_rename, 0, new_dir, new_dentry, in security_inode_rename()
1301 return call_int_hook(inode_rename, 0, old_dir, old_dentry, in security_inode_rename()
1309 return call_int_hook(inode_readlink, 0, dentry); in security_inode_readlink()
1317 return call_int_hook(inode_follow_link, 0, dentry, inode, rcu); in security_inode_follow_link()
1324 return call_int_hook(inode_permission, 0, inode, mask); in security_inode_permission()
1333 ret = call_int_hook(inode_setattr, 0, dentry, attr); in security_inode_setattr()
1344 return call_int_hook(inode_getattr, 0, path); in security_inode_getattr()
1359 ret = call_int_hook(inode_setxattr, 1, mnt_userns, dentry, name, value, in security_inode_setxattr()
1385 return call_int_hook(inode_getxattr, 0, dentry, name); in security_inode_getxattr()
1392 return call_int_hook(inode_listxattr, 0, dentry); in security_inode_listxattr()
1406 ret = call_int_hook(inode_removexattr, 1, mnt_userns, dentry, name); in security_inode_removexattr()
1419 return call_int_hook(inode_need_killpriv, 0, dentry); in security_inode_need_killpriv()
1425 return call_int_hook(inode_killpriv, 0, mnt_userns, dentry); in security_inode_killpriv()
1471 return call_int_hook(inode_listsecurity, 0, inode, buffer, buffer_size); in security_inode_listsecurity()
1482 return call_int_hook(inode_copy_up, 0, src, new); in security_inode_copy_up()
1510 return call_int_hook(kernfs_init_security, 0, kn_dir, kn); in security_kernfs_init_security()
1517 ret = call_int_hook(file_permission, 0, file, mask); in security_file_permission()
1530 rc = call_int_hook(file_alloc_security, 0, file); in security_file_alloc()
1551 return call_int_hook(file_ioctl, 0, file, cmd, arg); in security_file_ioctl()
1592 ret = call_int_hook(mmap_file, 0, file, prot, in security_mmap_file()
1601 return call_int_hook(mmap_addr, 0, addr); in security_mmap_addr()
1609 ret = call_int_hook(file_mprotect, 0, vma, reqprot, prot); in security_file_mprotect()
1617 return call_int_hook(file_lock, 0, file, cmd); in security_file_lock()
1622 return call_int_hook(file_fcntl, 0, file, cmd, arg); in security_file_fcntl()
1633 return call_int_hook(file_send_sigiotask, 0, tsk, fown, sig); in security_file_send_sigiotask()
1638 return call_int_hook(file_receive, 0, file); in security_file_receive()
1645 ret = call_int_hook(file_open, 0, file); in security_file_open()
1658 rc = call_int_hook(task_alloc, 0, task, clone_flags); in security_task_alloc()
1679 rc = call_int_hook(cred_alloc_blank, 0, cred, gfp); in security_cred_alloc_blank()
1707 rc = call_int_hook(cred_prepare, 0, new, old, gfp); in security_prepare_creds()
1727 return call_int_hook(kernel_act_as, 0, new, secid); in security_kernel_act_as()
1732 return call_int_hook(kernel_create_files_as, 0, new, inode); in security_kernel_create_files_as()
1739 ret = call_int_hook(kernel_module_request, 0, kmod_name); in security_kernel_module_request()
1750 ret = call_int_hook(kernel_read_file, 0, file, id, contents); in security_kernel_read_file()
1762 ret = call_int_hook(kernel_post_read_file, 0, file, buf, size, id); in security_kernel_post_read_file()
1773 ret = call_int_hook(kernel_load_data, 0, id, contents); in security_kernel_load_data()
1786 ret = call_int_hook(kernel_post_load_data, 0, buf, size, id, in security_kernel_post_load_data()
1797 return call_int_hook(task_fix_setuid, 0, new, old, flags); in security_task_fix_setuid()
1803 return call_int_hook(task_fix_setgid, 0, new, old, flags); in security_task_fix_setgid()
1808 return call_int_hook(task_setpgid, 0, p, pgid); in security_task_setpgid()
1813 return call_int_hook(task_getpgid, 0, p); in security_task_getpgid()
1818 return call_int_hook(task_getsid, 0, p); in security_task_getsid()
1837 return call_int_hook(task_setnice, 0, p, nice); in security_task_setnice()
1842 return call_int_hook(task_setioprio, 0, p, ioprio); in security_task_setioprio()
1847 return call_int_hook(task_getioprio, 0, p); in security_task_getioprio()
1853 return call_int_hook(task_prlimit, 0, cred, tcred, flags); in security_task_prlimit()
1859 return call_int_hook(task_setrlimit, 0, p, resource, new_rlim); in security_task_setrlimit()
1864 return call_int_hook(task_setscheduler, 0, p); in security_task_setscheduler()
1869 return call_int_hook(task_getscheduler, 0, p); in security_task_getscheduler()
1874 return call_int_hook(task_movememory, 0, p); in security_task_movememory()
1880 return call_int_hook(task_kill, 0, p, info, sig, cred); in security_task_kill()
1908 return call_int_hook(ipc_permission, 0, ipcp, flag); in security_ipc_permission()
1923 rc = call_int_hook(msg_msg_alloc_security, 0, msg); in security_msg_msg_alloc()
1942 rc = call_int_hook(msg_queue_alloc_security, 0, msq); in security_msg_queue_alloc()
1957 return call_int_hook(msg_queue_associate, 0, msq, msqflg); in security_msg_queue_associate()
1962 return call_int_hook(msg_queue_msgctl, 0, msq, cmd); in security_msg_queue_msgctl()
1968 return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); in security_msg_queue_msgsnd()
1974 return call_int_hook(msg_queue_msgrcv, 0, msq, msg, target, type, mode); in security_msg_queue_msgrcv()
1983 rc = call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1998 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
2003 return call_int_hook(shm_shmctl, 0, shp, cmd); in security_shm_shmctl()
2008 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
2017 rc = call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
2032 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate()
2037 return call_int_hook(sem_semctl, 0, sma, cmd); in security_sem_semctl()
2043 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter); in security_sem_semop()
2082 return call_int_hook(netlink_send, 0, sk, skb); in security_netlink_send()
2087 return call_int_hook(ismaclabel, 0, name); in security_ismaclabel()
2113 return call_int_hook(secctx_to_secid, 0, secdata, seclen, secid); in security_secctx_to_secid()
2131 return call_int_hook(inode_notifysecctx, 0, inode, ctx, ctxlen); in security_inode_notifysecctx()
2137 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen); in security_inode_setsecctx()
2143 return call_int_hook(inode_getsecctx, -EOPNOTSUPP, inode, ctx, ctxlen); in security_inode_getsecctx()
2152 return call_int_hook(post_notification, 0, w_cred, cred, n); in security_post_notification()
2159 return call_int_hook(watch_key, 0, key); in security_watch_key()
2167 return call_int_hook(unix_stream_connect, 0, sock, other, newsk); in security_unix_stream_connect()
2173 return call_int_hook(unix_may_send, 0, sock, other); in security_unix_may_send()
2179 return call_int_hook(socket_create, 0, family, type, protocol, kern); in security_socket_create()
2185 return call_int_hook(socket_post_create, 0, sock, family, type, in security_socket_post_create()
2191 return call_int_hook(socket_socketpair, 0, socka, sockb); in security_socket_socketpair()
2197 return call_int_hook(socket_bind, 0, sock, address, addrlen); in security_socket_bind()
2202 return call_int_hook(socket_connect, 0, sock, address, addrlen); in security_socket_connect()
2207 return call_int_hook(socket_listen, 0, sock, backlog); in security_socket_listen()
2212 return call_int_hook(socket_accept, 0, sock, newsock); in security_socket_accept()
2217 return call_int_hook(socket_sendmsg, 0, sock, msg, size); in security_socket_sendmsg()
2223 return call_int_hook(socket_recvmsg, 0, sock, msg, size, flags); in security_socket_recvmsg()
2228 return call_int_hook(socket_getsockname, 0, sock); in security_socket_getsockname()
2233 return call_int_hook(socket_getpeername, 0, sock); in security_socket_getpeername()
2238 return call_int_hook(socket_getsockopt, 0, sock, level, optname); in security_socket_getsockopt()
2243 return call_int_hook(socket_setsockopt, 0, sock, level, optname); in security_socket_setsockopt()
2248 return call_int_hook(socket_shutdown, 0, sock, how); in security_socket_shutdown()
2253 return call_int_hook(socket_sock_rcv_skb, 0, sk, skb); in security_sock_rcv_skb()
2260 return call_int_hook(socket_getpeersec_stream, -ENOPROTOOPT, sock, in security_socket_getpeersec_stream()
2266 return call_int_hook(socket_getpeersec_dgram, -ENOPROTOOPT, sock, in security_socket_getpeersec_dgram()
2273 return call_int_hook(sk_alloc_security, 0, sk, family, priority); in security_sk_alloc()
2309 return call_int_hook(inet_conn_request, 0, sk, skb, req); in security_inet_conn_request()
2328 return call_int_hook(secmark_relabel_packet, 0, secid); in security_secmark_relabel_packet()
2346 return call_int_hook(tun_dev_alloc_security, 0, security); in security_tun_dev_alloc_security()
2358 return call_int_hook(tun_dev_create, 0); in security_tun_dev_create()
2364 return call_int_hook(tun_dev_attach_queue, 0, security); in security_tun_dev_attach_queue()
2370 return call_int_hook(tun_dev_attach, 0, sk, security); in security_tun_dev_attach()
2376 return call_int_hook(tun_dev_open, 0, security); in security_tun_dev_open()
2382 return call_int_hook(sctp_assoc_request, 0, asoc, skb); in security_sctp_assoc_request()
2389 return call_int_hook(sctp_bind_connect, 0, sk, optname, in security_sctp_bind_connect()
2404 return call_int_hook(sctp_assoc_established, 0, asoc, skb); in security_sctp_assoc_established()
2414 return call_int_hook(ib_pkey_access, 0, sec, subnet_prefix, pkey); in security_ib_pkey_access()
2420 return call_int_hook(ib_endport_manage_subnet, 0, sec, dev_name, port_num); in security_ib_endport_manage_subnet()
2426 return call_int_hook(ib_alloc_security, 0, sec); in security_ib_alloc_security()
2443 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
2450 return call_int_hook(xfrm_policy_clone_security, 0, old_ctx, new_ctxp); in security_xfrm_policy_clone()
2461 return call_int_hook(xfrm_policy_delete_security, 0, ctx); in security_xfrm_policy_delete()
2467 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()
2474 return call_int_hook(xfrm_state_alloc_acquire, 0, x, polsec, secid); in security_xfrm_state_alloc_acquire()
2479 return call_int_hook(xfrm_state_delete_security, 0, x); in security_xfrm_state_delete()
2490 return call_int_hook(xfrm_policy_lookup, 0, ctx, fl_secid); in security_xfrm_policy_lookup()
2519 return call_int_hook(xfrm_decode_session, 0, skb, secid, 1); in security_xfrm_decode_session()
2524 int rc = call_int_hook(xfrm_decode_session, 0, skb, &flic->flowic_secid, in security_skb_classify_flow()
2538 return call_int_hook(key_alloc, 0, key, cred, flags); in security_key_alloc()
2549 return call_int_hook(key_permission, 0, key_ref, cred, need_perm); in security_key_permission()
2555 return call_int_hook(key_getsecurity, 0, key, _buffer); in security_key_getsecurity()
2564 return call_int_hook(audit_rule_init, 0, field, op, rulestr, lsmrule); in security_audit_rule_init()
2569 return call_int_hook(audit_rule_known, 0, krule); in security_audit_rule_known()
2579 return call_int_hook(audit_rule_match, 0, secid, field, op, lsmrule); in security_audit_rule_match()
2586 return call_int_hook(bpf, 0, cmd, attr, size); in security_bpf()
2590 return call_int_hook(bpf_map, 0, map, fmode); in security_bpf_map()
2594 return call_int_hook(bpf_prog, 0, prog); in security_bpf_prog()
2598 return call_int_hook(bpf_map_alloc_security, 0, map); in security_bpf_map_alloc()
2602 return call_int_hook(bpf_prog_alloc_security, 0, aux); in security_bpf_prog_alloc()
2616 return call_int_hook(locked_down, 0, what); in security_locked_down()
2623 return call_int_hook(perf_event_open, 0, attr, type); in security_perf_event_open()
2628 return call_int_hook(perf_event_alloc, 0, event); in security_perf_event_alloc()
2638 return call_int_hook(perf_event_read, 0, event); in security_perf_event_read()
2643 return call_int_hook(perf_event_write, 0, event); in security_perf_event_write()
2650 return call_int_hook(uring_override_creds, 0, new); in security_uring_override_creds()
2655 return call_int_hook(uring_sqpoll, 0); in security_uring_sqpoll()
2659 return call_int_hook(uring_cmd, 0, ioucmd); in security_uring_cmd()