Lines Matching full:int
160 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
161 int cap, unsigned int opts);
162 extern int cap_settime(const struct timespec64 *ts, const struct timezone *tz);
163 extern int cap_ptrace_access_check(struct task_struct *child, unsigned int mode);
164 extern int cap_ptrace_traceme(struct task_struct *parent);
165 extern int cap_capget(const struct task_struct *target, kernel_cap_t *effective,
167 extern int cap_capset(struct cred *new, const struct cred *old,
171 extern int cap_bprm_creds_from_file(struct linux_binprm *bprm, const struct file *file);
172 int cap_inode_setxattr(struct dentry *dentry, const char *name,
173 const void *value, size_t size, int flags);
174 int cap_inode_removexattr(struct mnt_idmap *idmap,
176 int cap_inode_need_killpriv(struct dentry *dentry);
177 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry);
178 int cap_inode_getsecurity(struct mnt_idmap *idmap,
181 extern int cap_mmap_addr(unsigned long addr);
182 extern int cap_mmap_file(struct file *file, unsigned long reqprot,
184 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
185 extern int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
187 extern int cap_task_setscheduler(struct task_struct *p);
188 extern int cap_task_setioprio(struct task_struct *p, int ioprio);
189 extern int cap_task_setnice(struct task_struct *p, int nice);
190 extern int cap_vm_enough_memory(struct mm_struct *mm, long pages);
243 extern int mmap_min_addr_handler(const struct ctl_table *table, int write,
248 typedef int (*initxattrs) (struct inode *inode,
274 int call_blocking_lsm_notifier(enum lsm_event event, void *data);
275 int register_blocking_lsm_notifier(struct notifier_block *nb);
276 int unregister_blocking_lsm_notifier(struct notifier_block *nb);
279 extern int security_init(void);
280 extern int early_security_init(void);
284 int security_binder_set_context_mgr(const struct cred *mgr);
285 int security_binder_transaction(const struct cred *from,
287 int security_binder_transfer_binder(const struct cred *from,
289 int security_binder_transfer_file(const struct cred *from,
291 int security_ptrace_access_check(struct task_struct *child, unsigned int mode);
292 int security_ptrace_traceme(struct task_struct *parent);
293 int security_capget(const struct task_struct *target,
297 int security_capset(struct cred *new, const struct cred *old,
301 int security_capable(const struct cred *cred,
303 int cap,
304 unsigned int opts);
305 int security_quotactl(int cmds, int type, int id, const struct super_block *sb);
306 int security_quota_on(struct dentry *dentry);
307 int security_syslog(int type);
308 int security_settime64(const struct timespec64 *ts, const struct timezone *tz);
309 int security_vm_enough_memory_mm(struct mm_struct *mm, long pages);
310 int security_bprm_creds_for_exec(struct linux_binprm *bprm);
311 int security_bprm_creds_from_file(struct linux_binprm *bprm, const struct file *file);
312 int security_bprm_check(struct linux_binprm *bprm);
315 int security_fs_context_submount(struct fs_context *fc, struct super_block *reference);
316 int security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc);
317 int security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param);
318 int security_sb_alloc(struct super_block *sb);
322 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
323 int security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts);
324 int security_sb_remount(struct super_block *sb, void *mnt_opts);
325 int security_sb_kern_mount(const struct super_block *sb);
326 int security_sb_show_options(struct seq_file *m, struct super_block *sb);
327 int security_sb_statfs(struct dentry *dentry);
328 int security_sb_mount(const char *dev_name, const struct path *path,
330 int security_sb_umount(struct vfsmount *mnt, int flags);
331 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
332 int security_sb_set_mnt_opts(struct super_block *sb,
336 int security_sb_clone_mnt_opts(const struct super_block *oldsb,
340 int security_move_mount(const struct path *from_path, const struct path *to_path);
341 int security_dentry_init_security(struct dentry *dentry, int mode,
345 int security_dentry_create_files_as(struct dentry *dentry, int mode,
349 int security_path_notify(const struct path *path, u64 mask,
350 unsigned int obj_type);
351 int security_inode_alloc(struct inode *inode, gfp_t gfp);
353 int security_inode_init_security(struct inode *inode, struct inode *dir,
356 int security_inode_init_security_anon(struct inode *inode,
359 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode);
362 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
364 int security_inode_unlink(struct inode *dir, struct dentry *dentry);
365 int security_inode_symlink(struct inode *dir, struct dentry *dentry,
367 int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
368 int security_inode_rmdir(struct inode *dir, struct dentry *dentry);
369 int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev);
370 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
372 unsigned int flags);
373 int security_inode_readlink(struct dentry *dentry);
374 int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
376 int security_inode_permission(struct inode *inode, int mask);
377 int security_inode_setattr(struct mnt_idmap *idmap,
380 int ia_valid);
381 int security_inode_getattr(const struct path *path);
382 int security_inode_setxattr(struct mnt_idmap *idmap,
384 const void *value, size_t size, int flags);
385 int security_inode_set_acl(struct mnt_idmap *idmap,
390 int security_inode_get_acl(struct mnt_idmap *idmap,
392 int security_inode_remove_acl(struct mnt_idmap *idmap,
398 const void *value, size_t size, int flags);
399 int security_inode_getxattr(struct dentry *dentry, const char *name);
400 int security_inode_listxattr(struct dentry *dentry);
401 int security_inode_removexattr(struct mnt_idmap *idmap,
404 int security_inode_need_killpriv(struct dentry *dentry);
405 int security_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry);
406 int security_inode_getsecurity(struct mnt_idmap *idmap,
409 int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t siz…
410 int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size);
412 int security_inode_copy_up(struct dentry *src, struct cred **new);
413 int security_inode_copy_up_xattr(struct dentry *src, const char *name);
414 int security_inode_setintegrity(const struct inode *inode,
417 int security_kernfs_init_security(struct kernfs_node *kn_dir,
419 int security_file_permission(struct file *file, int mask);
420 int security_file_alloc(struct file *file);
423 int security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
424 int security_file_ioctl_compat(struct file *file, unsigned int cmd,
426 int security_mmap_file(struct file *file, unsigned long prot,
428 int security_mmap_addr(unsigned long addr);
429 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
431 int security_file_lock(struct file *file, unsigned int cmd);
432 int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
434 int security_file_send_sigiotask(struct task_struct *tsk,
435 struct fown_struct *fown, int sig);
436 int security_file_receive(struct file *file);
437 int security_file_open(struct file *file);
438 int security_file_post_open(struct file *file, int mask);
439 int security_file_truncate(struct file *file);
440 int security_task_alloc(struct task_struct *task, unsigned long clone_flags);
442 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
444 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
447 int security_kernel_act_as(struct cred *new, u32 secid);
448 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
449 int security_kernel_module_request(char *kmod_name);
450 int security_kernel_load_data(enum kernel_load_data_id id, bool contents);
451 int security_kernel_post_load_data(char *buf, loff_t size,
454 int security_kernel_read_file(struct file *file, enum kernel_read_file_id id,
456 int security_kernel_post_read_file(struct file *file, char *buf, loff_t size,
458 int security_task_fix_setuid(struct cred *new, const struct cred *old,
459 int flags);
460 int security_task_fix_setgid(struct cred *new, const struct cred *old,
461 int flags);
462 int security_task_fix_setgroups(struct cred *new, const struct cred *old);
463 int security_task_setpgid(struct task_struct *p, pid_t pgid);
464 int security_task_getpgid(struct task_struct *p);
465 int security_task_getsid(struct task_struct *p);
468 int security_task_setnice(struct task_struct *p, int nice);
469 int security_task_setioprio(struct task_struct *p, int ioprio);
470 int security_task_getioprio(struct task_struct *p);
471 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
472 unsigned int flags);
473 int security_task_setrlimit(struct task_struct *p, unsigned int resource,
475 int security_task_setscheduler(struct task_struct *p);
476 int security_task_getscheduler(struct task_struct *p);
477 int security_task_movememory(struct task_struct *p);
478 int security_task_kill(struct task_struct *p, struct kernel_siginfo *info,
479 int sig, const struct cred *cred);
480 int security_task_prctl(int option, unsigned long arg2, unsigned long arg3,
483 int security_create_user_ns(const struct cred *cred);
484 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag);
486 int security_msg_msg_alloc(struct msg_msg *msg);
488 int security_msg_queue_alloc(struct kern_ipc_perm *msq);
490 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg);
491 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd);
492 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq,
493 struct msg_msg *msg, int msqflg);
494 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
495 struct task_struct *target, long type, int mode);
496 int security_shm_alloc(struct kern_ipc_perm *shp);
498 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
499 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd);
500 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
501 int security_sem_alloc(struct kern_ipc_perm *sma);
503 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
504 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
505 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
506 unsigned nsops, int alter);
508 int security_getselfattr(unsigned int attr, struct lsm_ctx __user *ctx,
510 int security_setselfattr(unsigned int attr, struct lsm_ctx __user *ctx,
512 int security_getprocattr(struct task_struct *p, int lsmid, const char *name,
514 int security_setprocattr(int lsmid, const char *name, void *value, size_t size);
515 int security_netlink_send(struct sock *sk, struct sk_buff *skb);
516 int security_ismaclabel(const char *name);
517 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
518 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);
521 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen);
522 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
523 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen);
524 int security_locked_down(enum lockdown_reason what);
525 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len,
527 int security_bdev_alloc(struct block_device *bdev);
529 int security_bdev_setintegrity(struct block_device *bdev,
534 static inline int call_blocking_lsm_notifier(enum lsm_event event, void *data) in call_blocking_lsm_notifier()
539 static inline int register_blocking_lsm_notifier(struct notifier_block *nb) in register_blocking_lsm_notifier()
544 static inline int unregister_blocking_lsm_notifier(struct notifier_block *nb) in unregister_blocking_lsm_notifier()
563 static inline int security_init(void) in security_init()
568 static inline int early_security_init(void) in early_security_init()
573 static inline int security_binder_set_context_mgr(const struct cred *mgr) in security_binder_set_context_mgr()
578 static inline int security_binder_transaction(const struct cred *from, in security_binder_transaction()
584 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
590 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
597 static inline int security_ptrace_access_check(struct task_struct *child, in security_ptrace_access_check()
598 unsigned int mode) in security_ptrace_access_check()
603 static inline int security_ptrace_traceme(struct task_struct *parent) in security_ptrace_traceme()
608 static inline int security_capget(const struct task_struct *target, in security_capget()
616 static inline int security_capset(struct cred *new, in security_capset()
625 static inline int security_capable(const struct cred *cred, in security_capable()
627 int cap, in security_capable()
628 unsigned int opts) in security_capable()
633 static inline int security_quotactl(int cmds, int type, int id, in security_quotactl()
639 static inline int security_quota_on(struct dentry *dentry) in security_quota_on()
644 static inline int security_syslog(int type) in security_syslog()
649 static inline int security_settime64(const struct timespec64 *ts, in security_settime64()
655 static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) in security_vm_enough_memory_mm()
660 static inline int security_bprm_creds_for_exec(struct linux_binprm *bprm) in security_bprm_creds_for_exec()
665 static inline int security_bprm_creds_from_file(struct linux_binprm *bprm, in security_bprm_creds_from_file()
671 static inline int security_bprm_check(struct linux_binprm *bprm) in security_bprm_check()
684 static inline int security_fs_context_submount(struct fs_context *fc, in security_fs_context_submount()
689 static inline int security_fs_context_dup(struct fs_context *fc, in security_fs_context_dup()
694 static inline int security_fs_context_parse_param(struct fs_context *fc, in security_fs_context_parse_param()
700 static inline int security_sb_alloc(struct super_block *sb) in security_sb_alloc()
711 static inline int security_sb_eat_lsm_opts(char *options, in security_sb_eat_lsm_opts()
717 static inline int security_sb_remount(struct super_block *sb, in security_sb_remount()
723 static inline int security_sb_mnt_opts_compat(struct super_block *sb, in security_sb_mnt_opts_compat()
730 static inline int security_sb_kern_mount(struct super_block *sb) in security_sb_kern_mount()
735 static inline int security_sb_show_options(struct seq_file *m, in security_sb_show_options()
741 static inline int security_sb_statfs(struct dentry *dentry) in security_sb_statfs()
746 static inline int security_sb_mount(const char *dev_name, const struct path *path, in security_sb_mount()
753 static inline int security_sb_umount(struct vfsmount *mnt, int flags) in security_sb_umount()
758 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot()
764 static inline int security_sb_set_mnt_opts(struct super_block *sb, in security_sb_set_mnt_opts()
772 static inline int security_sb_clone_mnt_opts(const struct super_block *oldsb, in security_sb_clone_mnt_opts()
780 static inline int security_move_mount(const struct path *from_path, in security_move_mount()
786 static inline int security_path_notify(const struct path *path, u64 mask, in security_path_notify()
787 unsigned int obj_type) in security_path_notify()
792 static inline int security_inode_alloc(struct inode *inode, gfp_t gfp) in security_inode_alloc()
800 static inline int security_dentry_init_security(struct dentry *dentry, in security_dentry_init_security()
801 int mode, in security_dentry_init_security()
810 static inline int security_dentry_create_files_as(struct dentry *dentry, in security_dentry_create_files_as()
811 int mode, struct qstr *name, in security_dentry_create_files_as()
819 static inline int security_inode_init_security(struct inode *inode, in security_inode_init_security()
828 static inline int security_inode_init_security_anon(struct inode *inode, in security_inode_init_security_anon()
835 static inline int security_inode_create(struct inode *dir, in security_inode_create()
846 static inline int security_inode_link(struct dentry *old_dentry, in security_inode_link()
853 static inline int security_inode_unlink(struct inode *dir, in security_inode_unlink()
859 static inline int security_inode_symlink(struct inode *dir, in security_inode_symlink()
866 static inline int security_inode_mkdir(struct inode *dir, in security_inode_mkdir()
868 int mode) in security_inode_mkdir()
873 static inline int security_inode_rmdir(struct inode *dir, in security_inode_rmdir()
879 static inline int security_inode_mknod(struct inode *dir, in security_inode_mknod()
881 int mode, dev_t dev) in security_inode_mknod()
886 static inline int security_inode_rename(struct inode *old_dir, in security_inode_rename()
890 unsigned int flags) in security_inode_rename()
895 static inline int security_inode_readlink(struct dentry *dentry) in security_inode_readlink()
900 static inline int security_inode_follow_link(struct dentry *dentry, in security_inode_follow_link()
907 static inline int security_inode_permission(struct inode *inode, int mask) in security_inode_permission()
912 static inline int security_inode_setattr(struct mnt_idmap *idmap, in security_inode_setattr()
921 int ia_valid) in security_inode_post_setattr()
924 static inline int security_inode_getattr(const struct path *path) in security_inode_getattr()
929 static inline int security_inode_setxattr(struct mnt_idmap *idmap, in security_inode_setxattr()
931 size_t size, int flags) in security_inode_setxattr()
936 static inline int security_inode_set_acl(struct mnt_idmap *idmap, in security_inode_set_acl()
949 static inline int security_inode_get_acl(struct mnt_idmap *idmap, in security_inode_get_acl()
956 static inline int security_inode_remove_acl(struct mnt_idmap *idmap, in security_inode_remove_acl()
969 const char *name, const void *value, size_t size, int flags) in security_inode_post_setxattr()
972 static inline int security_inode_getxattr(struct dentry *dentry, in security_inode_getxattr()
978 static inline int security_inode_listxattr(struct dentry *dentry) in security_inode_listxattr()
983 static inline int security_inode_removexattr(struct mnt_idmap *idmap, in security_inode_removexattr()
994 static inline int security_inode_need_killpriv(struct dentry *dentry) in security_inode_need_killpriv()
999 static inline int security_inode_killpriv(struct mnt_idmap *idmap, in security_inode_killpriv()
1005 static inline int security_inode_getsecurity(struct mnt_idmap *idmap, in security_inode_getsecurity()
1013 static inline int security_inode_setsecurity(struct inode *inode, const char *name, const void *val… in security_inode_setsecurity()
1018 static inline int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size) in security_inode_listsecurity()
1028 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
1033 static inline int security_inode_setintegrity(const struct inode *inode, in security_inode_setintegrity()
1040 static inline int security_kernfs_init_security(struct kernfs_node *kn_dir, in security_kernfs_init_security()
1046 static inline int security_inode_copy_up_xattr(struct dentry *src, const char *name) in security_inode_copy_up_xattr()
1051 static inline int security_file_permission(struct file *file, int mask) in security_file_permission()
1056 static inline int security_file_alloc(struct file *file) in security_file_alloc()
1067 static inline int security_file_ioctl(struct file *file, unsigned int cmd, in security_file_ioctl()
1073 static inline int security_file_ioctl_compat(struct file *file, in security_file_ioctl_compat()
1074 unsigned int cmd, in security_file_ioctl_compat()
1080 static inline int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file()
1086 static inline int security_mmap_addr(unsigned long addr) in security_mmap_addr()
1091 static inline int security_file_mprotect(struct vm_area_struct *vma, in security_file_mprotect()
1098 static inline int security_file_lock(struct file *file, unsigned int cmd) in security_file_lock()
1103 static inline int security_file_fcntl(struct file *file, unsigned int cmd, in security_file_fcntl()
1114 static inline int security_file_send_sigiotask(struct task_struct *tsk, in security_file_send_sigiotask()
1116 int sig) in security_file_send_sigiotask()
1121 static inline int security_file_receive(struct file *file) in security_file_receive()
1126 static inline int security_file_open(struct file *file) in security_file_open()
1131 static inline int security_file_post_open(struct file *file, int mask) in security_file_post_open()
1136 static inline int security_file_truncate(struct file *file) in security_file_truncate()
1141 static inline int security_task_alloc(struct task_struct *task, in security_task_alloc()
1150 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
1158 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1175 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as()
1180 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as()
1186 static inline int security_kernel_module_request(char *kmod_name) in security_kernel_module_request()
1191 static inline int security_kernel_load_data(enum kernel_load_data_id id, bool contents) in security_kernel_load_data()
1196 static inline int security_kernel_post_load_data(char *buf, loff_t size, in security_kernel_post_load_data()
1203 static inline int security_kernel_read_file(struct file *file, in security_kernel_read_file()
1210 static inline int security_kernel_post_read_file(struct file *file, in security_kernel_post_read_file()
1217 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1219 int flags) in security_task_fix_setuid()
1224 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1226 int flags) in security_task_fix_setgid()
1231 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1237 static inline int security_task_setpgid(struct task_struct *p, pid_t pgid) in security_task_setpgid()
1242 static inline int security_task_getpgid(struct task_struct *p) in security_task_getpgid()
1247 static inline int security_task_getsid(struct task_struct *p) in security_task_getsid()
1262 static inline int security_task_setnice(struct task_struct *p, int nice) in security_task_setnice()
1267 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio()
1272 static inline int security_task_getioprio(struct task_struct *p) in security_task_getioprio()
1277 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit()
1279 unsigned int flags) in security_task_prlimit()
1284 static inline int security_task_setrlimit(struct task_struct *p, in security_task_setrlimit()
1285 unsigned int resource, in security_task_setrlimit()
1291 static inline int security_task_setscheduler(struct task_struct *p) in security_task_setscheduler()
1296 static inline int security_task_getscheduler(struct task_struct *p) in security_task_getscheduler()
1301 static inline int security_task_movememory(struct task_struct *p) in security_task_movememory()
1306 static inline int security_task_kill(struct task_struct *p, in security_task_kill()
1307 struct kernel_siginfo *info, int sig, in security_task_kill()
1313 static inline int security_task_prctl(int option, unsigned long arg2, in security_task_prctl()
1324 static inline int security_create_user_ns(const struct cred *cred) in security_create_user_ns()
1329 static inline int security_ipc_permission(struct kern_ipc_perm *ipcp, in security_ipc_permission()
1340 static inline int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc()
1348 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc()
1356 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, in security_msg_queue_associate()
1357 int msqflg) in security_msg_queue_associate()
1362 static inline int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl()
1367 static inline int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, in security_msg_queue_msgsnd()
1368 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd()
1373 static inline int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, in security_msg_queue_msgrcv()
1376 long type, int mode) in security_msg_queue_msgrcv()
1381 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc()
1389 static inline int security_shm_associate(struct kern_ipc_perm *shp, in security_shm_associate()
1390 int shmflg) in security_shm_associate()
1395 static inline int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl()
1400 static inline int security_shm_shmat(struct kern_ipc_perm *shp, in security_shm_shmat()
1401 char __user *shmaddr, int shmflg) in security_shm_shmat()
1406 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc()
1414 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate()
1419 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl()
1424 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop()
1426 int alter) in security_sem_semop()
1435 static inline int security_getselfattr(unsigned int attr, in security_getselfattr()
1442 static inline int security_setselfattr(unsigned int attr, in security_setselfattr()
1449 static inline int security_getprocattr(struct task_struct *p, int lsmid, in security_getprocattr()
1455 static inline int security_setprocattr(int lsmid, char *name, void *value, in security_setprocattr()
1461 static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
1466 static inline int security_ismaclabel(const char *name) in security_ismaclabel()
1471 static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx()
1476 static inline int security_secctx_to_secid(const char *secdata, in security_secctx_to_secid()
1491 static inline int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx()
1495 static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx()
1499 static inline int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx()
1503 static inline int security_locked_down(enum lockdown_reason what) in security_locked_down()
1507 static inline int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, in lsm_fill_user_ctx()
1514 static inline int security_bdev_alloc(struct block_device *bdev) in security_bdev_alloc()
1523 static inline int security_bdev_setintegrity(struct block_device *bdev, in security_bdev_setintegrity()
1533 int security_post_notification(const struct cred *w_cred,
1537 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1546 int security_watch_key(struct key *key);
1548 static inline int security_watch_key(struct key *key) in security_watch_key()
1556 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
1557 int security_unix_may_send(struct socket *sock, struct socket *other);
1558 int security_socket_create(int family, int type, int protocol, int kern);
1559 int security_socket_post_create(struct socket *sock, int family,
1560 int type, int protocol, int kern);
1561 int security_socket_socketpair(struct socket *socka, struct socket *sockb);
1562 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
1563 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
1564 int security_socket_listen(struct socket *sock, int backlog);
1565 int security_socket_accept(struct socket *sock, struct socket *newsock);
1566 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
1567 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
1568 int size, int flags);
1569 int security_socket_getsockname(struct socket *sock);
1570 int security_socket_getpeername(struct socket *sock);
1571 int security_socket_getsockopt(struct socket *sock, int level, int optname);
1572 int security_socket_setsockopt(struct socket *sock, int level, int optname);
1573 int security_socket_shutdown(struct socket *sock, int how);
1574 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
1575 int security_socket_getpeersec_stream(struct socket *sock, sockptr_t optval,
1576 sockptr_t optlen, unsigned int len);
1577 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
1578 int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
1586 int security_inet_conn_request(const struct sock *sk,
1592 int security_secmark_relabel_packet(u32 secid);
1595 int security_tun_dev_alloc_security(void **security);
1597 int security_tun_dev_create(void);
1598 int security_tun_dev_attach_queue(void *security);
1599 int security_tun_dev_attach(struct sock *sk, void *security);
1600 int security_tun_dev_open(void *security);
1601 int security_sctp_assoc_request(struct sctp_association *asoc, struct sk_buff *skb);
1602 int security_sctp_bind_connect(struct sock *sk, int optname,
1603 struct sockaddr *address, int addrlen);
1606 int security_sctp_assoc_established(struct sctp_association *asoc,
1608 int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk);
1611 static inline int security_unix_stream_connect(struct sock *sock, in security_unix_stream_connect()
1618 static inline int security_unix_may_send(struct socket *sock, in security_unix_may_send()
1624 static inline int security_socket_create(int family, int type, in security_socket_create()
1625 int protocol, int kern) in security_socket_create()
1630 static inline int security_socket_post_create(struct socket *sock, in security_socket_post_create()
1631 int family, in security_socket_post_create()
1632 int type, in security_socket_post_create()
1633 int protocol, int kern) in security_socket_post_create()
1638 static inline int security_socket_socketpair(struct socket *socka, in security_socket_socketpair()
1644 static inline int security_socket_bind(struct socket *sock, in security_socket_bind()
1646 int addrlen) in security_socket_bind()
1651 static inline int security_socket_connect(struct socket *sock, in security_socket_connect()
1653 int addrlen) in security_socket_connect()
1658 static inline int security_socket_listen(struct socket *sock, int backlog) in security_socket_listen()
1663 static inline int security_socket_accept(struct socket *sock, in security_socket_accept()
1669 static inline int security_socket_sendmsg(struct socket *sock, in security_socket_sendmsg()
1670 struct msghdr *msg, int size) in security_socket_sendmsg()
1675 static inline int security_socket_recvmsg(struct socket *sock, in security_socket_recvmsg()
1676 struct msghdr *msg, int size, in security_socket_recvmsg()
1677 int flags) in security_socket_recvmsg()
1682 static inline int security_socket_getsockname(struct socket *sock) in security_socket_getsockname()
1687 static inline int security_socket_getpeername(struct socket *sock) in security_socket_getpeername()
1692 static inline int security_socket_getsockopt(struct socket *sock, in security_socket_getsockopt()
1693 int level, int optname) in security_socket_getsockopt()
1698 static inline int security_socket_setsockopt(struct socket *sock, in security_socket_setsockopt()
1699 int level, int optname) in security_socket_setsockopt()
1704 static inline int security_socket_shutdown(struct socket *sock, int how) in security_socket_shutdown()
1708 static inline int security_sock_rcv_skb(struct sock *sk, in security_sock_rcv_skb()
1714 static inline int security_socket_getpeersec_stream(struct socket *sock, in security_socket_getpeersec_stream()
1717 unsigned int len) in security_socket_getpeersec_stream()
1722 static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *s… in security_socket_getpeersec_dgram()
1727 static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority) in security_sk_alloc()
1754 static inline int security_inet_conn_request(const struct sock *sk, in security_inet_conn_request()
1770 static inline int security_secmark_relabel_packet(u32 secid) in security_secmark_relabel_packet()
1783 static inline int security_tun_dev_alloc_security(void **security) in security_tun_dev_alloc_security()
1792 static inline int security_tun_dev_create(void) in security_tun_dev_create()
1797 static inline int security_tun_dev_attach_queue(void *security) in security_tun_dev_attach_queue()
1802 static inline int security_tun_dev_attach(struct sock *sk, void *security) in security_tun_dev_attach()
1807 static inline int security_tun_dev_open(void *security) in security_tun_dev_open()
1812 static inline int security_sctp_assoc_request(struct sctp_association *asoc, in security_sctp_assoc_request()
1818 static inline int security_sctp_bind_connect(struct sock *sk, int optname, in security_sctp_bind_connect()
1820 int addrlen) in security_sctp_bind_connect()
1831 static inline int security_sctp_assoc_established(struct sctp_association *asoc, in security_sctp_assoc_established()
1837 static inline int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk) in security_mptcp_add_subflow()
1844 int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey);
1845 int security_ib_endport_manage_subnet(void *sec, const char *name, u8 port_num);
1846 int security_ib_alloc_security(void **sec);
1849 static inline int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) in security_ib_pkey_access()
1854 static inline int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num) in security_ib_endport_manage_subnet()
1859 static inline int security_ib_alloc_security(void **sec) in security_ib_alloc_security()
1871 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1873 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp);
1875 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx);
1876 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1877 int security_xfrm_state_alloc_acquire(struct xfrm_state *x,
1879 int security_xfrm_state_delete(struct xfrm_state *x);
1881 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid);
1882 int security_xfrm_state_pol_flow_match(struct xfrm_state *x,
1885 int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid);
1890 static inline int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
1897 static inline int security_xfrm_policy_clone(struct xfrm_sec_ctx *old, struct xfrm_sec_ctx **new_ct… in security_xfrm_policy_clone()
1906 static inline int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_delete()
1911 static inline int security_xfrm_state_alloc(struct xfrm_state *x, in security_xfrm_state_alloc()
1917 static inline int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire()
1927 static inline int security_xfrm_state_delete(struct xfrm_state *x) in security_xfrm_state_delete()
1932 static inline int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid) in security_xfrm_policy_lookup()
1937 static inline int security_xfrm_state_pol_flow_match(struct xfrm_state *x, in security_xfrm_state_pol_flow_match()
1944 static inline int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid) in security_xfrm_decode_session()
1957 int security_path_unlink(const struct path *dir, struct dentry *dentry);
1958 int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode);
1959 int security_path_rmdir(const struct path *dir, struct dentry *dentry);
1960 int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
1961 unsigned int dev);
1963 int security_path_truncate(const struct path *path);
1964 int security_path_symlink(const struct path *dir, struct dentry *dentry,
1966 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
1968 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1970 unsigned int flags);
1971 int security_path_chmod(const struct path *path, umode_t mode);
1972 int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid);
1973 int security_path_chroot(const struct path *path);
1975 static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) in security_path_unlink()
1980 static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry, in security_path_mkdir()
1986 static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry) in security_path_rmdir()
1991 static inline int security_path_mknod(const struct path *dir, struct dentry *dentry, in security_path_mknod()
1992 umode_t mode, unsigned int dev) in security_path_mknod()
2001 static inline int security_path_truncate(const struct path *path) in security_path_truncate()
2006 static inline int security_path_symlink(const struct path *dir, struct dentry *dentry, in security_path_symlink()
2012 static inline int security_path_link(struct dentry *old_dentry, in security_path_link()
2019 static inline int security_path_rename(const struct path *old_dir, in security_path_rename()
2023 unsigned int flags) in security_path_rename()
2028 static inline int security_path_chmod(const struct path *path, umode_t mode) in security_path_chmod()
2033 static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in security_path_chown()
2038 static inline int security_path_chroot(const struct path *path) in security_path_chroot()
2047 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
2049 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
2051 int security_key_getsecurity(struct key *key, char **_buffer);
2058 static inline int security_key_alloc(struct key *key, in security_key_alloc()
2069 static inline int security_key_permission(key_ref_t key_ref, in security_key_permission()
2076 static inline int security_key_getsecurity(struct key *key, char **_buffer) in security_key_getsecurity()
2095 int security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule,
2097 int security_audit_rule_known(struct audit_krule *krule);
2098 int security_audit_rule_match(u32 secid, u32 field, u32 op, void *lsmrule);
2103 static inline int security_audit_rule_init(u32 field, u32 op, char *rulestr, in security_audit_rule_init()
2109 static inline int security_audit_rule_known(struct audit_krule *krule) in security_audit_rule_known()
2114 static inline int security_audit_rule_match(u32 secid, u32 field, u32 op, in security_audit_rule_match()
2175 extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size);
2176 extern int security_bpf_map(struct bpf_map *map, fmode_t fmode);
2177 extern int security_bpf_prog(struct bpf_prog *prog);
2178 extern int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
2181 extern int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
2184 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
2187 extern int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd);
2188 extern int security_bpf_token_capable(const struct bpf_token *token, int cap);
2190 static inline int security_bpf(int cmd, union bpf_attr *attr, in security_bpf()
2191 unsigned int size) in security_bpf()
2196 static inline int security_bpf_map(struct bpf_map *map, fmode_t fmode) in security_bpf_map()
2201 static inline int security_bpf_prog(struct bpf_prog *prog) in security_bpf_prog()
2206 static inline int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr, in security_bpf_map_create()
2215 static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, in security_bpf_prog_load()
2224 static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create()
2233 static inline int security_bpf_token_cmd(const struct bpf_token *token, enum bpf_cmd cmd) in security_bpf_token_cmd()
2238 static inline int security_bpf_token_capable(const struct bpf_token *token, int cap) in security_bpf_token_capable()
2250 extern int security_perf_event_open(struct perf_event_attr *attr, int type);
2251 extern int security_perf_event_alloc(struct perf_event *event);
2253 extern int security_perf_event_read(struct perf_event *event);
2254 extern int security_perf_event_write(struct perf_event *event);
2256 static inline int security_perf_event_open(struct perf_event_attr *attr, in security_perf_event_open()
2257 int type) in security_perf_event_open()
2262 static inline int security_perf_event_alloc(struct perf_event *event) in security_perf_event_alloc()
2271 static inline int security_perf_event_read(struct perf_event *event) in security_perf_event_read()
2276 static inline int security_perf_event_write(struct perf_event *event) in security_perf_event_write()
2285 extern int security_uring_override_creds(const struct cred *new);
2286 extern int security_uring_sqpoll(void);
2287 extern int security_uring_cmd(struct io_uring_cmd *ioucmd);
2289 static inline int security_uring_override_creds(const struct cred *new) in security_uring_override_creds()
2293 static inline int security_uring_sqpoll(void) in security_uring_sqpoll()
2297 static inline int security_uring_cmd(struct io_uring_cmd *ioucmd) in security_uring_cmd()