Lines Matching full:int

29 LSM_HOOK(int, 0, binder_set_context_mgr, struct task_struct *mgr)
30 LSM_HOOK(int, 0, binder_transaction, struct task_struct *from,
32 LSM_HOOK(int, 0, binder_transfer_binder, struct task_struct *from,
34 LSM_HOOK(int, 0, binder_transfer_file, struct task_struct *from,
36 LSM_HOOK(int, 0, ptrace_access_check, struct task_struct *child,
37 unsigned int mode)
38 LSM_HOOK(int, 0, ptrace_traceme, struct task_struct *parent)
39 LSM_HOOK(int, 0, capget, struct task_struct *target, kernel_cap_t *effective,
41 LSM_HOOK(int, 0, capset, struct cred *new, const struct cred *old,
44 LSM_HOOK(int, 0, capable, const struct cred *cred, struct user_namespace *ns,
45 int cap, unsigned int opts)
46 LSM_HOOK(int, 0, quotactl, int cmds, int type, int id, struct super_block *sb)
47 LSM_HOOK(int, 0, quota_on, struct dentry *dentry)
48 LSM_HOOK(int, 0, syslog, int type)
49 LSM_HOOK(int, 0, settime, const struct timespec64 *ts,
51 LSM_HOOK(int, 0, vm_enough_memory, struct mm_struct *mm, long pages)
52 LSM_HOOK(int, 0, bprm_creds_for_exec, struct linux_binprm *bprm)
53 LSM_HOOK(int, 0, bprm_creds_from_file, struct linux_binprm *bprm, struct file *file)
54 LSM_HOOK(int, 0, bprm_check_security, struct linux_binprm *bprm)
57 LSM_HOOK(int, 0, fs_context_dup, struct fs_context *fc,
59 LSM_HOOK(int, -ENOPARAM, fs_context_parse_param, struct fs_context *fc,
61 LSM_HOOK(int, 0, sb_alloc_security, struct super_block *sb)
65 LSM_HOOK(int, 0, sb_eat_lsm_opts, char *orig, void **mnt_opts)
66 LSM_HOOK(int, 0, sb_mnt_opts_compat, struct super_block *sb, void *mnt_opts)
67 LSM_HOOK(int, 0, sb_remount, struct super_block *sb, void *mnt_opts)
68 LSM_HOOK(int, 0, sb_kern_mount, struct super_block *sb)
69 LSM_HOOK(int, 0, sb_show_options, struct seq_file *m, struct super_block *sb)
70 LSM_HOOK(int, 0, sb_statfs, struct dentry *dentry)
71 LSM_HOOK(int, 0, sb_mount, const char *dev_name, const struct path *path,
73 LSM_HOOK(int, 0, sb_umount, struct vfsmount *mnt, int flags)
74 LSM_HOOK(int, 0, sb_pivotroot, const struct path *old_path,
76 LSM_HOOK(int, 0, sb_set_mnt_opts, struct super_block *sb, void *mnt_opts,
78 LSM_HOOK(int, 0, sb_clone_mnt_opts, const struct super_block *oldsb,
81 LSM_HOOK(int, 0, sb_add_mnt_opt, const char *option, const char *val,
82 int len, void **mnt_opts)
83 LSM_HOOK(int, 0, move_mount, const struct path *from_path,
85 LSM_HOOK(int, 0, dentry_init_security, struct dentry *dentry,
86 int mode, const struct qstr *name, void **ctx, u32 *ctxlen)
87 LSM_HOOK(int, 0, dentry_create_files_as, struct dentry *dentry, int mode,
91 LSM_HOOK(int, 0, path_unlink, const struct path *dir, struct dentry *dentry)
92 LSM_HOOK(int, 0, path_mkdir, const struct path *dir, struct dentry *dentry,
94 LSM_HOOK(int, 0, path_rmdir, const struct path *dir, struct dentry *dentry)
95 LSM_HOOK(int, 0, path_mknod, const struct path *dir, struct dentry *dentry,
96 umode_t mode, unsigned int dev)
97 LSM_HOOK(int, 0, path_truncate, const struct path *path)
98 LSM_HOOK(int, 0, path_symlink, const struct path *dir, struct dentry *dentry,
100 LSM_HOOK(int, 0, path_link, struct dentry *old_dentry,
102 LSM_HOOK(int, 0, path_rename, const struct path *old_dir,
105 LSM_HOOK(int, 0, path_chmod, const struct path *path, umode_t mode)
106 LSM_HOOK(int, 0, path_chown, const struct path *path, kuid_t uid, kgid_t gid)
107 LSM_HOOK(int, 0, path_chroot, const struct path *path)
111 LSM_HOOK(int, 0, path_notify, const struct path *path, u64 mask,
112 unsigned int obj_type)
113 LSM_HOOK(int, 0, inode_alloc_security, struct inode *inode)
115 LSM_HOOK(int, 0, inode_init_security, struct inode *inode,
118 LSM_HOOK(int, 0, inode_init_security_anon, struct inode *inode,
120 LSM_HOOK(int, 0, inode_create, struct inode *dir, struct dentry *dentry,
122 LSM_HOOK(int, 0, inode_link, struct dentry *old_dentry, struct inode *dir,
124 LSM_HOOK(int, 0, inode_unlink, struct inode *dir, struct dentry *dentry)
125 LSM_HOOK(int, 0, inode_symlink, struct inode *dir, struct dentry *dentry,
127 LSM_HOOK(int, 0, inode_mkdir, struct inode *dir, struct dentry *dentry,
129 LSM_HOOK(int, 0, inode_rmdir, struct inode *dir, struct dentry *dentry)
130 LSM_HOOK(int, 0, inode_mknod, struct inode *dir, struct dentry *dentry,
132 LSM_HOOK(int, 0, inode_rename, struct inode *old_dir, struct dentry *old_dentry,
134 LSM_HOOK(int, 0, inode_readlink, struct dentry *dentry)
135 LSM_HOOK(int, 0, inode_follow_link, struct dentry *dentry, struct inode *inode,
137 LSM_HOOK(int, 0, inode_permission, struct inode *inode, int mask)
138 LSM_HOOK(int, 0, inode_setattr, struct dentry *dentry, struct iattr *attr)
139 LSM_HOOK(int, 0, inode_getattr, const struct path *path)
140 LSM_HOOK(int, 0, inode_setxattr, struct user_namespace *mnt_userns,
142 size_t size, int flags)
144 const char *name, const void *value, size_t size, int flags)
145 LSM_HOOK(int, 0, inode_getxattr, struct dentry *dentry, const char *name)
146 LSM_HOOK(int, 0, inode_listxattr, struct dentry *dentry)
147 LSM_HOOK(int, 0, inode_removexattr, struct user_namespace *mnt_userns,
149 LSM_HOOK(int, 0, inode_need_killpriv, struct dentry *dentry)
150 LSM_HOOK(int, 0, inode_killpriv, struct user_namespace *mnt_userns,
152 LSM_HOOK(int, -EOPNOTSUPP, inode_getsecurity, struct user_namespace *mnt_userns,
154 LSM_HOOK(int, -EOPNOTSUPP, inode_setsecurity, struct inode *inode,
155 const char *name, const void *value, size_t size, int flags)
156 LSM_HOOK(int, 0, inode_listsecurity, struct inode *inode, char *buffer,
159 LSM_HOOK(int, 0, inode_copy_up, struct dentry *src, struct cred **new)
160 LSM_HOOK(int, -EOPNOTSUPP, inode_copy_up_xattr, const char *name)
161 LSM_HOOK(int, 0, kernfs_init_security, struct kernfs_node *kn_dir,
163 LSM_HOOK(int, 0, file_permission, struct file *file, int mask)
164 LSM_HOOK(int, 0, file_alloc_security, struct file *file)
166 LSM_HOOK(int, 0, file_ioctl, struct file *file, unsigned int cmd,
168 LSM_HOOK(int, 0, mmap_addr, unsigned long addr)
169 LSM_HOOK(int, 0, mmap_file, struct file *file, unsigned long reqprot,
171 LSM_HOOK(int, 0, file_mprotect, struct vm_area_struct *vma,
173 LSM_HOOK(int, 0, file_lock, struct file *file, unsigned int cmd)
174 LSM_HOOK(int, 0, file_fcntl, struct file *file, unsigned int cmd,
177 LSM_HOOK(int, 0, file_send_sigiotask, struct task_struct *tsk,
178 struct fown_struct *fown, int sig)
179 LSM_HOOK(int, 0, file_receive, struct file *file)
180 LSM_HOOK(int, 0, file_open, struct file *file)
181 LSM_HOOK(int, 0, task_alloc, struct task_struct *task,
184 LSM_HOOK(int, 0, cred_alloc_blank, struct cred *cred, gfp_t gfp)
186 LSM_HOOK(int, 0, cred_prepare, struct cred *new, const struct cred *old,
191 LSM_HOOK(int, 0, kernel_act_as, struct cred *new, u32 secid)
192 LSM_HOOK(int, 0, kernel_create_files_as, struct cred *new, struct inode *inode)
193 LSM_HOOK(int, 0, kernel_module_request, char *kmod_name)
194 LSM_HOOK(int, 0, kernel_load_data, enum kernel_load_data_id id, bool contents)
195 LSM_HOOK(int, 0, kernel_post_load_data, char *buf, loff_t size,
197 LSM_HOOK(int, 0, kernel_read_file, struct file *file,
199 LSM_HOOK(int, 0, kernel_post_read_file, struct file *file, char *buf,
201 LSM_HOOK(int, 0, task_fix_setuid, struct cred *new, const struct cred *old,
202 int flags)
203 LSM_HOOK(int, 0, task_fix_setgid, struct cred *new, const struct cred * old,
204 int flags)
205 LSM_HOOK(int, 0, task_setpgid, struct task_struct *p, pid_t pgid)
206 LSM_HOOK(int, 0, task_getpgid, struct task_struct *p)
207 LSM_HOOK(int, 0, task_getsid, struct task_struct *p)
212 LSM_HOOK(int, 0, task_setnice, struct task_struct *p, int nice)
213 LSM_HOOK(int, 0, task_setioprio, struct task_struct *p, int ioprio)
214 LSM_HOOK(int, 0, task_getioprio, struct task_struct *p)
215 LSM_HOOK(int, 0, task_prlimit, const struct cred *cred,
216 const struct cred *tcred, unsigned int flags)
217 LSM_HOOK(int, 0, task_setrlimit, struct task_struct *p, unsigned int resource,
219 LSM_HOOK(int, 0, task_setscheduler, struct task_struct *p)
220 LSM_HOOK(int, 0, task_getscheduler, struct task_struct *p)
221 LSM_HOOK(int, 0, task_movememory, struct task_struct *p)
222 LSM_HOOK(int, 0, task_kill, struct task_struct *p, struct kernel_siginfo *info,
223 int sig, const struct cred *cred)
224 LSM_HOOK(int, -ENOSYS, task_prctl, int option, unsigned long arg2,
228 LSM_HOOK(int, 0, ipc_permission, struct kern_ipc_perm *ipcp, short flag)
231 LSM_HOOK(int, 0, msg_msg_alloc_security, struct msg_msg *msg)
233 LSM_HOOK(int, 0, msg_queue_alloc_security, struct kern_ipc_perm *perm)
236 LSM_HOOK(int, 0, msg_queue_associate, struct kern_ipc_perm *perm, int msqflg)
237 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
238 LSM_HOOK(int, 0, msg_queue_msgsnd, struct kern_ipc_perm *perm,
239 struct msg_msg *msg, int msqflg)
240 LSM_HOOK(int, 0, msg_queue_msgrcv, struct kern_ipc_perm *perm,
241 struct msg_msg *msg, struct task_struct *target, long type, int mode)
242 LSM_HOOK(int, 0, shm_alloc_security, struct kern_ipc_perm *perm)
244 LSM_HOOK(int, 0, shm_associate, struct kern_ipc_perm *perm, int shmflg)
245 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd)
246 LSM_HOOK(int, 0, shm_shmat, struct kern_ipc_perm *perm, char __user *shmaddr,
247 int shmflg)
248 LSM_HOOK(int, 0, sem_alloc_security, struct kern_ipc_perm *perm)
250 LSM_HOOK(int, 0, sem_associate, struct kern_ipc_perm *perm, int semflg)
251 LSM_HOOK(int, 0, sem_semctl, struct kern_ipc_perm *perm, int cmd)
252 LSM_HOOK(int, 0, sem_semop, struct kern_ipc_perm *perm, struct sembuf *sops,
253 unsigned nsops, int alter)
254 LSM_HOOK(int, 0, netlink_send, struct sock *sk, struct sk_buff *skb)
257 LSM_HOOK(int, -EINVAL, getprocattr, struct task_struct *p, char *name,
259 LSM_HOOK(int, -EINVAL, setprocattr, const char *name, void *value, size_t size)
260 LSM_HOOK(int, 0, ismaclabel, const char *name)
261 LSM_HOOK(int, -EOPNOTSUPP, secid_to_secctx, u32 secid, char **secdata,
263 LSM_HOOK(int, 0, secctx_to_secid, const char *secdata, u32 seclen, u32 *secid)
266 LSM_HOOK(int, 0, inode_notifysecctx, struct inode *inode, void *ctx, u32 ctxlen)
267 LSM_HOOK(int, 0, inode_setsecctx, struct dentry *dentry, void *ctx, u32 ctxlen)
268 LSM_HOOK(int, 0, inode_getsecctx, struct inode *inode, void **ctx,
272 LSM_HOOK(int, 0, post_notification, const struct cred *w_cred,
277 LSM_HOOK(int, 0, watch_key, struct key *key)
281 LSM_HOOK(int, 0, unix_stream_connect, struct sock *sock, struct sock *other,
283 LSM_HOOK(int, 0, unix_may_send, struct socket *sock, struct socket *other)
284 LSM_HOOK(int, 0, socket_create, int family, int type, int protocol, int kern)
285 LSM_HOOK(int, 0, socket_post_create, struct socket *sock, int family, int type,
286 int protocol, int kern)
287 LSM_HOOK(int, 0, socket_socketpair, struct socket *socka, struct socket *sockb)
288 LSM_HOOK(int, 0, socket_bind, struct socket *sock, struct sockaddr *address,
289 int addrlen)
290 LSM_HOOK(int, 0, socket_connect, struct socket *sock, struct sockaddr *address,
291 int addrlen)
292 LSM_HOOK(int, 0, socket_listen, struct socket *sock, int backlog)
293 LSM_HOOK(int, 0, socket_accept, struct socket *sock, struct socket *newsock)
294 LSM_HOOK(int, 0, socket_sendmsg, struct socket *sock, struct msghdr *msg,
295 int size)
296 LSM_HOOK(int, 0, socket_recvmsg, struct socket *sock, struct msghdr *msg,
297 int size, int flags)
298 LSM_HOOK(int, 0, socket_getsockname, struct socket *sock)
299 LSM_HOOK(int, 0, socket_getpeername, struct socket *sock)
300 LSM_HOOK(int, 0, socket_getsockopt, struct socket *sock, int level, int optname)
301 LSM_HOOK(int, 0, socket_setsockopt, struct socket *sock, int level, int optname)
302 LSM_HOOK(int, 0, socket_shutdown, struct socket *sock, int how)
303 LSM_HOOK(int, 0, socket_sock_rcv_skb, struct sock *sk, struct sk_buff *skb)
304 LSM_HOOK(int, 0, socket_getpeersec_stream, struct socket *sock,
305 char __user *optval, int __user *optlen, unsigned len)
306 LSM_HOOK(int, 0, socket_getpeersec_dgram, struct socket *sock,
308 LSM_HOOK(int, 0, sk_alloc_security, struct sock *sk, int family, gfp_t priority)
314 LSM_HOOK(int, 0, inet_conn_request, const struct sock *sk, struct sk_buff *skb,
320 LSM_HOOK(int, 0, secmark_relabel_packet, u32 secid)
325 LSM_HOOK(int, 0, tun_dev_alloc_security, void **security)
327 LSM_HOOK(int, 0, tun_dev_create, void)
328 LSM_HOOK(int, 0, tun_dev_attach_queue, void *security)
329 LSM_HOOK(int, 0, tun_dev_attach, struct sock *sk, void *security)
330 LSM_HOOK(int, 0, tun_dev_open, void *security)
331 LSM_HOOK(int, 0, sctp_assoc_request, struct sctp_endpoint *ep,
333 LSM_HOOK(int, 0, sctp_bind_connect, struct sock *sk, int optname,
334 struct sockaddr *address, int addrlen)
340 LSM_HOOK(int, 0, ib_pkey_access, void *sec, u64 subnet_prefix, u16 pkey)
341 LSM_HOOK(int, 0, ib_endport_manage_subnet, void *sec, const char *dev_name,
343 LSM_HOOK(int, 0, ib_alloc_security, void **sec)
348 LSM_HOOK(int, 0, xfrm_policy_alloc_security, struct xfrm_sec_ctx **ctxp,
350 LSM_HOOK(int, 0, xfrm_policy_clone_security, struct xfrm_sec_ctx *old_ctx,
354 LSM_HOOK(int, 0, xfrm_policy_delete_security, struct xfrm_sec_ctx *ctx)
355 LSM_HOOK(int, 0, xfrm_state_alloc, struct xfrm_state *x,
357 LSM_HOOK(int, 0, xfrm_state_alloc_acquire, struct xfrm_state *x,
360 LSM_HOOK(int, 0, xfrm_state_delete_security, struct xfrm_state *x)
361 LSM_HOOK(int, 0, xfrm_policy_lookup, struct xfrm_sec_ctx *ctx, u32 fl_secid)
362 LSM_HOOK(int, 1, xfrm_state_pol_flow_match, struct xfrm_state *x,
364 LSM_HOOK(int, 0, xfrm_decode_session, struct sk_buff *skb, u32 *secid,
365 int ckall)
370 LSM_HOOK(int, 0, key_alloc, struct key *key, const struct cred *cred,
373 LSM_HOOK(int, 0, key_permission, key_ref_t key_ref, const struct cred *cred,
375 LSM_HOOK(int, 0, key_getsecurity, struct key *key, char **_buffer)
379 LSM_HOOK(int, 0, audit_rule_init, u32 field, u32 op, char *rulestr,
381 LSM_HOOK(int, 0, audit_rule_known, struct audit_krule *krule)
382 LSM_HOOK(int, 0, audit_rule_match, u32 secid, u32 field, u32 op, void *lsmrule)
387 LSM_HOOK(int, 0, bpf, int cmd, union bpf_attr *attr, unsigned int size)
388 LSM_HOOK(int, 0, bpf_map, struct bpf_map *map, fmode_t fmode)
389 LSM_HOOK(int, 0, bpf_prog, struct bpf_prog *prog)
390 LSM_HOOK(int, 0, bpf_map_alloc_security, struct bpf_map *map)
392 LSM_HOOK(int, 0, bpf_prog_alloc_security, struct bpf_prog_aux *aux)
396 LSM_HOOK(int, 0, locked_down, enum lockdown_reason what)
399 LSM_HOOK(int, 0, perf_event_open, struct perf_event_attr *attr, int type)
400 LSM_HOOK(int, 0, perf_event_alloc, struct perf_event *event)
402 LSM_HOOK(int, 0, perf_event_read, struct perf_event *event)
403 LSM_HOOK(int, 0, perf_event_write, struct perf_event *event)