Lines Matching refs:call_int_hook

117 #define call_int_hook(FUNC, IRC, ...) ({			\  macro
135 return call_int_hook(binder_set_context_mgr, 0, mgr); in security_binder_set_context_mgr()
141 return call_int_hook(binder_transaction, 0, from, to); in security_binder_transaction()
147 return call_int_hook(binder_transfer_binder, 0, from, to); in security_binder_transfer_binder()
153 return call_int_hook(binder_transfer_file, 0, from, to, file); in security_binder_transfer_file()
158 return call_int_hook(ptrace_access_check, 0, child, mode); in security_ptrace_access_check()
163 return call_int_hook(ptrace_traceme, 0, parent); in security_ptrace_traceme()
171 return call_int_hook(capget, 0, target, in security_capget()
180 return call_int_hook(capset, 0, new, old, in security_capset()
187 return call_int_hook(capable, 0, cred, ns, cap, SECURITY_CAP_AUDIT); in security_capable()
193 return call_int_hook(capable, 0, cred, ns, cap, SECURITY_CAP_NOAUDIT); in security_capable_noaudit()
198 return call_int_hook(quotactl, 0, cmds, type, id, sb); in security_quotactl()
203 return call_int_hook(quota_on, 0, dentry); in security_quota_on()
208 return call_int_hook(syslog, 0, type); in security_syslog()
213 return call_int_hook(settime, 0, ts, tz); in security_settime()
241 return call_int_hook(bprm_set_creds, 0, bprm); in security_bprm_set_creds()
248 ret = call_int_hook(bprm_check_security, 0, bprm); in security_bprm_check()
266 return call_int_hook(bprm_secureexec, 0, bprm); in security_bprm_secureexec()
271 return call_int_hook(sb_alloc_security, 0, sb); in security_sb_alloc()
281 return call_int_hook(sb_copy_data, 0, orig, copy); in security_sb_copy_data()
287 return call_int_hook(sb_remount, 0, sb, data); in security_sb_remount()
292 return call_int_hook(sb_kern_mount, 0, sb, flags, data); in security_sb_kern_mount()
297 return call_int_hook(sb_show_options, 0, m, sb); in security_sb_show_options()
302 return call_int_hook(sb_statfs, 0, dentry); in security_sb_statfs()
308 return call_int_hook(sb_mount, 0, dev_name, path, type, flags, data); in security_sb_mount()
313 return call_int_hook(sb_umount, 0, mnt, flags); in security_sb_umount()
318 return call_int_hook(sb_pivotroot, 0, old_path, new_path); in security_sb_pivotroot()
326 return call_int_hook(sb_set_mnt_opts, in security_sb_set_mnt_opts()
335 return call_int_hook(sb_clone_mnt_opts, 0, oldsb, newsb); in security_sb_clone_mnt_opts()
341 return call_int_hook(sb_parse_opts_str, 0, options, opts); in security_sb_parse_opts_str()
348 return call_int_hook(inode_alloc_security, 0, inode); in security_inode_alloc()
361 return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode, in security_dentry_init_security()
378 return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, in security_inode_init_security()
382 ret = call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, qstr, in security_inode_init_security()
407 return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, in security_old_inode_init_security()
418 return call_int_hook(path_mknod, 0, dir, dentry, mode, dev); in security_path_mknod()
426 return call_int_hook(path_mkdir, 0, dir, dentry, mode); in security_path_mkdir()
434 return call_int_hook(path_rmdir, 0, dir, dentry); in security_path_rmdir()
441 return call_int_hook(path_unlink, 0, dir, dentry); in security_path_unlink()
450 return call_int_hook(path_symlink, 0, dir, dentry, old_name); in security_path_symlink()
458 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); in security_path_link()
470 int err = call_int_hook(path_rename, 0, new_dir, new_dentry, in security_path_rename()
476 return call_int_hook(path_rename, 0, old_dir, old_dentry, new_dir, in security_path_rename()
485 return call_int_hook(path_truncate, 0, path); in security_path_truncate()
492 return call_int_hook(path_chmod, 0, path, mode); in security_path_chmod()
499 return call_int_hook(path_chown, 0, path, uid, gid); in security_path_chown()
504 return call_int_hook(path_chroot, 0, path); in security_path_chroot()
512 return call_int_hook(inode_create, 0, dir, dentry, mode); in security_inode_create()
521 return call_int_hook(inode_link, 0, old_dentry, dir, new_dentry); in security_inode_link()
528 return call_int_hook(inode_unlink, 0, dir, dentry); in security_inode_unlink()
536 return call_int_hook(inode_symlink, 0, dir, dentry, old_name); in security_inode_symlink()
543 return call_int_hook(inode_mkdir, 0, dir, dentry, mode); in security_inode_mkdir()
551 return call_int_hook(inode_rmdir, 0, dir, dentry); in security_inode_rmdir()
558 return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev); in security_inode_mknod()
570 int err = call_int_hook(inode_rename, 0, new_dir, new_dentry, in security_inode_rename()
576 return call_int_hook(inode_rename, 0, old_dir, old_dentry, in security_inode_rename()
584 return call_int_hook(inode_readlink, 0, dentry); in security_inode_readlink()
592 return call_int_hook(inode_follow_link, 0, dentry, inode, rcu); in security_inode_follow_link()
599 return call_int_hook(inode_permission, 0, inode, mask); in security_inode_permission()
608 ret = call_int_hook(inode_setattr, 0, dentry, attr); in security_inode_setattr()
619 return call_int_hook(inode_getattr, 0, path); in security_inode_getattr()
633 ret = call_int_hook(inode_setxattr, 1, dentry, name, value, size, in security_inode_setxattr()
659 return call_int_hook(inode_getxattr, 0, dentry, name); in security_inode_getxattr()
666 return call_int_hook(inode_listxattr, 0, dentry); in security_inode_listxattr()
679 ret = call_int_hook(inode_removexattr, 1, dentry, name); in security_inode_removexattr()
692 return call_int_hook(inode_need_killpriv, 0, dentry); in security_inode_need_killpriv()
697 return call_int_hook(inode_killpriv, 0, dentry); in security_inode_killpriv()
704 return call_int_hook(inode_getsecurity, -EOPNOTSUPP, inode, name, in security_inode_getsecurity()
712 return call_int_hook(inode_setsecurity, -EOPNOTSUPP, inode, name, in security_inode_setsecurity()
720 return call_int_hook(inode_listsecurity, 0, inode, buffer, buffer_size); in security_inode_listsecurity()
733 ret = call_int_hook(file_permission, 0, file, mask); in security_file_permission()
742 return call_int_hook(file_alloc_security, 0, file); in security_file_alloc()
752 return call_int_hook(file_ioctl, 0, file, cmd, arg); in security_file_ioctl()
792 ret = call_int_hook(mmap_file, 0, file, prot, in security_mmap_file()
801 return call_int_hook(mmap_addr, 0, addr); in security_mmap_addr()
807 return call_int_hook(file_mprotect, 0, vma, reqprot, prot); in security_file_mprotect()
812 return call_int_hook(file_lock, 0, file, cmd); in security_file_lock()
817 return call_int_hook(file_fcntl, 0, file, cmd, arg); in security_file_fcntl()
828 return call_int_hook(file_send_sigiotask, 0, tsk, fown, sig); in security_file_send_sigiotask()
833 return call_int_hook(file_receive, 0, file); in security_file_receive()
840 ret = call_int_hook(file_open, 0, file, cred); in security_file_open()
849 return call_int_hook(task_create, 0, clone_flags); in security_task_create()
859 return call_int_hook(cred_alloc_blank, 0, cred, gfp); in security_cred_alloc_blank()
869 return call_int_hook(cred_prepare, 0, new, old, gfp); in security_prepare_creds()
879 return call_int_hook(kernel_act_as, 0, new, secid); in security_kernel_act_as()
884 return call_int_hook(kernel_create_files_as, 0, new, inode); in security_kernel_create_files_as()
891 ret = call_int_hook(kernel_fw_from_file, 0, file, buf, size); in security_kernel_fw_from_file()
900 return call_int_hook(kernel_module_request, 0, kmod_name); in security_kernel_module_request()
907 ret = call_int_hook(kernel_module_from_file, 0, file); in security_kernel_module_from_file()
916 return call_int_hook(task_fix_setuid, 0, new, old, flags); in security_task_fix_setuid()
921 return call_int_hook(task_setpgid, 0, p, pgid); in security_task_setpgid()
926 return call_int_hook(task_getpgid, 0, p); in security_task_getpgid()
931 return call_int_hook(task_getsid, 0, p); in security_task_getsid()
943 return call_int_hook(task_setnice, 0, p, nice); in security_task_setnice()
948 return call_int_hook(task_setioprio, 0, p, ioprio); in security_task_setioprio()
953 return call_int_hook(task_getioprio, 0, p); in security_task_getioprio()
959 return call_int_hook(task_setrlimit, 0, p, resource, new_rlim); in security_task_setrlimit()
964 return call_int_hook(task_setscheduler, 0, p); in security_task_setscheduler()
969 return call_int_hook(task_getscheduler, 0, p); in security_task_getscheduler()
974 return call_int_hook(task_movememory, 0, p); in security_task_movememory()
980 return call_int_hook(task_kill, 0, p, info, sig, secid); in security_task_kill()
985 return call_int_hook(task_wait, 0, p); in security_task_wait()
1013 return call_int_hook(ipc_permission, 0, ipcp, flag); in security_ipc_permission()
1024 return call_int_hook(msg_msg_alloc_security, 0, msg); in security_msg_msg_alloc()
1034 return call_int_hook(msg_queue_alloc_security, 0, msq); in security_msg_queue_alloc()
1044 return call_int_hook(msg_queue_associate, 0, msq, msqflg); in security_msg_queue_associate()
1049 return call_int_hook(msg_queue_msgctl, 0, msq, cmd); in security_msg_queue_msgctl()
1055 return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); in security_msg_queue_msgsnd()
1061 return call_int_hook(msg_queue_msgrcv, 0, msq, msg, target, type, mode); in security_msg_queue_msgrcv()
1066 return call_int_hook(shm_alloc_security, 0, shp); in security_shm_alloc()
1076 return call_int_hook(shm_associate, 0, shp, shmflg); in security_shm_associate()
1081 return call_int_hook(shm_shmctl, 0, shp, cmd); in security_shm_shmctl()
1086 return call_int_hook(shm_shmat, 0, shp, shmaddr, shmflg); in security_shm_shmat()
1091 return call_int_hook(sem_alloc_security, 0, sma); in security_sem_alloc()
1101 return call_int_hook(sem_associate, 0, sma, semflg); in security_sem_associate()
1106 return call_int_hook(sem_semctl, 0, sma, cmd); in security_sem_semctl()
1112 return call_int_hook(sem_semop, 0, sma, sops, nsops, alter); in security_sem_semop()
1125 return call_int_hook(getprocattr, -EINVAL, p, name, value); in security_getprocattr()
1130 return call_int_hook(setprocattr, -EINVAL, p, name, value, size); in security_setprocattr()
1135 return call_int_hook(netlink_send, 0, sk, skb); in security_netlink_send()
1140 return call_int_hook(ismaclabel, 0, name); in security_ismaclabel()
1146 return call_int_hook(secid_to_secctx, -EOPNOTSUPP, secid, secdata, in security_secid_to_secctx()
1154 return call_int_hook(secctx_to_secid, 0, secdata, seclen, secid); in security_secctx_to_secid()
1166 return call_int_hook(inode_notifysecctx, 0, inode, ctx, ctxlen); in security_inode_notifysecctx()
1172 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen); in security_inode_setsecctx()
1178 return call_int_hook(inode_getsecctx, -EOPNOTSUPP, inode, ctx, ctxlen); in security_inode_getsecctx()
1186 return call_int_hook(unix_stream_connect, 0, sock, other, newsk); in security_unix_stream_connect()
1192 return call_int_hook(unix_may_send, 0, sock, other); in security_unix_may_send()
1198 return call_int_hook(socket_create, 0, family, type, protocol, kern); in security_socket_create()
1204 return call_int_hook(socket_post_create, 0, sock, family, type, in security_socket_post_create()
1210 return call_int_hook(socket_bind, 0, sock, address, addrlen); in security_socket_bind()
1215 return call_int_hook(socket_connect, 0, sock, address, addrlen); in security_socket_connect()
1220 return call_int_hook(socket_listen, 0, sock, backlog); in security_socket_listen()
1225 return call_int_hook(socket_accept, 0, sock, newsock); in security_socket_accept()
1230 return call_int_hook(socket_sendmsg, 0, sock, msg, size); in security_socket_sendmsg()
1236 return call_int_hook(socket_recvmsg, 0, sock, msg, size, flags); in security_socket_recvmsg()
1241 return call_int_hook(socket_getsockname, 0, sock); in security_socket_getsockname()
1246 return call_int_hook(socket_getpeername, 0, sock); in security_socket_getpeername()
1251 return call_int_hook(socket_getsockopt, 0, sock, level, optname); in security_socket_getsockopt()
1256 return call_int_hook(socket_setsockopt, 0, sock, level, optname); in security_socket_setsockopt()
1261 return call_int_hook(socket_shutdown, 0, sock, how); in security_socket_shutdown()
1266 return call_int_hook(socket_sock_rcv_skb, 0, sk, skb); in security_sock_rcv_skb()
1273 return call_int_hook(socket_getpeersec_stream, -ENOPROTOOPT, sock, in security_socket_getpeersec_stream()
1279 return call_int_hook(socket_getpeersec_dgram, -ENOPROTOOPT, sock, in security_socket_getpeersec_dgram()
1286 return call_int_hook(sk_alloc_security, 0, sk, family, priority); in security_sk_alloc()
1321 return call_int_hook(inet_conn_request, 0, sk, skb, req); in security_inet_conn_request()
1339 return call_int_hook(secmark_relabel_packet, 0, secid); in security_secmark_relabel_packet()
1357 return call_int_hook(tun_dev_alloc_security, 0, security); in security_tun_dev_alloc_security()
1369 return call_int_hook(tun_dev_create, 0); in security_tun_dev_create()
1375 return call_int_hook(tun_dev_attach_queue, 0, security); in security_tun_dev_attach_queue()
1381 return call_int_hook(tun_dev_attach, 0, sk, security); in security_tun_dev_attach()
1387 return call_int_hook(tun_dev_open, 0, security); in security_tun_dev_open()
1399 return call_int_hook(xfrm_policy_alloc_security, 0, ctxp, sec_ctx, gfp); in security_xfrm_policy_alloc()
1406 return call_int_hook(xfrm_policy_clone_security, 0, old_ctx, new_ctxp); in security_xfrm_policy_clone()
1417 return call_int_hook(xfrm_policy_delete_security, 0, ctx); in security_xfrm_policy_delete()
1423 return call_int_hook(xfrm_state_alloc, 0, x, sec_ctx); in security_xfrm_state_alloc()
1430 return call_int_hook(xfrm_state_alloc_acquire, 0, x, polsec, secid); in security_xfrm_state_alloc_acquire()
1435 return call_int_hook(xfrm_state_delete_security, 0, x); in security_xfrm_state_delete()
1446 return call_int_hook(xfrm_policy_lookup, 0, ctx, fl_secid, dir); in security_xfrm_policy_lookup()
1475 return call_int_hook(xfrm_decode_session, 0, skb, secid, 1); in security_xfrm_decode_session()
1480 int rc = call_int_hook(xfrm_decode_session, 0, skb, &fl->flowi_secid, in security_skb_classify_flow()
1494 return call_int_hook(key_alloc, 0, key, cred, flags); in security_key_alloc()
1505 return call_int_hook(key_permission, 0, key_ref, cred, perm); in security_key_permission()
1511 return call_int_hook(key_getsecurity, 0, key, _buffer); in security_key_getsecurity()
1520 return call_int_hook(audit_rule_init, 0, field, op, rulestr, lsmrule); in security_audit_rule_init()
1525 return call_int_hook(audit_rule_known, 0, krule); in security_audit_rule_known()
1536 return call_int_hook(audit_rule_match, 0, secid, field, op, lsmrule, in security_audit_rule_match()