Lines Matching +full:sig +full:- +full:dir +full:- +full:cmd

1 /* SPDX-License-Identifier: GPL-2.0 */
7 * Copyright (C) 2001 Greg Kroah-Hartman <[email protected]>
12 * Copyright (C) 2015 Casey Schaufler <casey@schaufler-ca.com>
60 LSM_HOOK(int, -ENOPARAM, fs_context_parse_param, struct fs_context *fc,
84 LSM_HOOK(int, -EOPNOTSUPP, dentry_init_security, struct dentry *dentry,
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,
100 LSM_HOOK(int, 0, path_symlink, const struct path *dir, struct dentry *dentry,
118 LSM_HOOK(int, -EOPNOTSUPP, inode_init_security, struct inode *inode,
119 struct inode *dir, const struct qstr *qstr, struct xattr *xattrs,
123 LSM_HOOK(int, 0, inode_create, struct inode *dir, struct dentry *dentry,
127 LSM_HOOK(int, 0, inode_link, struct dentry *old_dentry, struct inode *dir,
129 LSM_HOOK(int, 0, inode_unlink, struct inode *dir, struct dentry *dentry)
130 LSM_HOOK(int, 0, inode_symlink, struct inode *dir, struct dentry *dentry,
132 LSM_HOOK(int, 0, inode_mkdir, struct inode *dir, struct dentry *dentry,
134 LSM_HOOK(int, 0, inode_rmdir, struct inode *dir, struct dentry *dentry)
135 LSM_HOOK(int, 0, inode_mknod, struct inode *dir, struct dentry *dentry,
173 LSM_HOOK(int, -EOPNOTSUPP, inode_getsecurity, struct mnt_idmap *idmap,
175 LSM_HOOK(int, -EOPNOTSUPP, inode_setsecurity, struct inode *inode,
182 LSM_HOOK(int, -EOPNOTSUPP, inode_copy_up_xattr, struct dentry *src,
192 LSM_HOOK(int, 0, file_ioctl, struct file *file, unsigned int cmd,
194 LSM_HOOK(int, 0, file_ioctl_compat, struct file *file, unsigned int cmd,
201 LSM_HOOK(int, 0, file_lock, struct file *file, unsigned int cmd)
202 LSM_HOOK(int, 0, file_fcntl, struct file *file, unsigned int cmd,
206 struct fown_struct *fown, int sig)
255 int sig, const struct cred *cred)
256 LSM_HOOK(int, -ENOSYS, task_prctl, int option, unsigned long arg2,
270 LSM_HOOK(int, 0, msg_queue_msgctl, struct kern_ipc_perm *perm, int cmd)
278 LSM_HOOK(int, 0, shm_shmctl, struct kern_ipc_perm *perm, int cmd)
284 LSM_HOOK(int, 0, sem_semctl, struct kern_ipc_perm *perm, int cmd)
290 LSM_HOOK(int, -EOPNOTSUPP, getselfattr, unsigned int attr,
292 LSM_HOOK(int, -EOPNOTSUPP, setselfattr, unsigned int attr,
294 LSM_HOOK(int, -EINVAL, getprocattr, struct task_struct *p, const char *name,
296 LSM_HOOK(int, -EINVAL, setprocattr, const char *name, void *value, size_t size)
298 LSM_HOOK(int, -EOPNOTSUPP, secid_to_secctx, u32 secid, struct lsm_context *cp)
299 LSM_HOOK(int, -EOPNOTSUPP, lsmprop_to_secctx, struct lsm_prop *prop,
306 LSM_HOOK(int, -EOPNOTSUPP, inode_getsecctx, struct inode *inode,
342 LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_stream, struct socket *sock,
344 LSM_HOOK(int, -ENOPROTOOPT, socket_getpeersec_dgram, struct socket *sock,
429 LSM_HOOK(int, 0, bpf, int cmd, union bpf_attr *attr, unsigned int size)
441 LSM_HOOK(int, 0, bpf_token_cmd, const struct bpf_token *token, enum bpf_cmd cmd)