Lines Matching full:int
136 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
137 int cap, unsigned int opts);
138 extern int cap_settime(const struct timespec64 *ts, const struct timezone *tz);
139 extern int cap_ptrace_access_check(struct task_struct *child, unsigned int mode);
140 extern int cap_ptrace_traceme(struct task_struct *parent);
141 extern int cap_capget(struct task_struct *target, kernel_cap_t *effective, kernel_cap_t *inheritabl…
142 extern int cap_capset(struct cred *new, const struct cred *old,
146 extern int cap_bprm_creds_from_file(struct linux_binprm *bprm, struct file *file);
147 extern int cap_inode_setxattr(struct dentry *dentry, const char *name,
148 const void *value, size_t size, int flags);
149 extern int cap_inode_removexattr(struct dentry *dentry, const char *name);
150 extern int cap_inode_need_killpriv(struct dentry *dentry);
151 extern int cap_inode_killpriv(struct dentry *dentry);
152 extern int cap_inode_getsecurity(struct inode *inode, const char *name,
154 extern int cap_mmap_addr(unsigned long addr);
155 extern int cap_mmap_file(struct file *file, unsigned long reqprot,
157 extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
158 extern int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
160 extern int cap_task_setscheduler(struct task_struct *p);
161 extern int cap_task_setioprio(struct task_struct *p, int ioprio);
162 extern int cap_task_setnice(struct task_struct *p, int nice);
163 extern int cap_vm_enough_memory(struct mm_struct *mm, long pages);
216 extern int mmap_min_addr_handler(struct ctl_table *table, int write,
221 typedef int (*initxattrs) (struct inode *inode,
247 int call_blocking_lsm_notifier(enum lsm_event event, void *data);
248 int register_blocking_lsm_notifier(struct notifier_block *nb);
249 int unregister_blocking_lsm_notifier(struct notifier_block *nb);
252 extern int security_init(void);
253 extern int early_security_init(void);
256 int security_binder_set_context_mgr(struct task_struct *mgr);
257 int security_binder_transaction(struct task_struct *from,
259 int security_binder_transfer_binder(struct task_struct *from,
261 int security_binder_transfer_file(struct task_struct *from,
263 int security_ptrace_access_check(struct task_struct *child, unsigned int mode);
264 int security_ptrace_traceme(struct task_struct *parent);
265 int security_capget(struct task_struct *target,
269 int security_capset(struct cred *new, const struct cred *old,
273 int security_capable(const struct cred *cred,
275 int cap,
276 unsigned int opts);
277 int security_quotactl(int cmds, int type, int id, struct super_block *sb);
278 int security_quota_on(struct dentry *dentry);
279 int security_syslog(int type);
280 int security_settime64(const struct timespec64 *ts, const struct timezone *tz);
281 int security_vm_enough_memory_mm(struct mm_struct *mm, long pages);
282 int security_bprm_creds_for_exec(struct linux_binprm *bprm);
283 int security_bprm_creds_from_file(struct linux_binprm *bprm, struct file *file);
284 int security_bprm_check(struct linux_binprm *bprm);
287 int security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc);
288 int security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param);
289 int security_sb_alloc(struct super_block *sb);
292 int security_sb_eat_lsm_opts(char *options, void **mnt_opts);
293 int security_sb_remount(struct super_block *sb, void *mnt_opts);
294 int security_sb_kern_mount(struct super_block *sb);
295 int security_sb_show_options(struct seq_file *m, struct super_block *sb);
296 int security_sb_statfs(struct dentry *dentry);
297 int security_sb_mount(const char *dev_name, const struct path *path,
299 int security_sb_umount(struct vfsmount *mnt, int flags);
300 int security_sb_pivotroot(const struct path *old_path, const struct path *new_path);
301 int security_sb_set_mnt_opts(struct super_block *sb,
305 int security_sb_clone_mnt_opts(const struct super_block *oldsb,
309 int security_add_mnt_opt(const char *option, const char *val,
310 int len, void **mnt_opts);
311 int security_move_mount(const struct path *from_path, const struct path *to_path);
312 int security_dentry_init_security(struct dentry *dentry, int mode,
315 int security_dentry_create_files_as(struct dentry *dentry, int mode,
319 int security_path_notify(const struct path *path, u64 mask,
320 unsigned int obj_type);
321 int security_inode_alloc(struct inode *inode);
323 int security_inode_init_security(struct inode *inode, struct inode *dir,
326 int security_old_inode_init_security(struct inode *inode, struct inode *dir,
329 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode);
330 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
332 int security_inode_unlink(struct inode *dir, struct dentry *dentry);
333 int security_inode_symlink(struct inode *dir, struct dentry *dentry,
335 int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode);
336 int security_inode_rmdir(struct inode *dir, struct dentry *dentry);
337 int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev);
338 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
340 unsigned int flags);
341 int security_inode_readlink(struct dentry *dentry);
342 int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
344 int security_inode_permission(struct inode *inode, int mask);
345 int security_inode_setattr(struct dentry *dentry, struct iattr *attr);
346 int security_inode_getattr(const struct path *path);
347 int security_inode_setxattr(struct dentry *dentry, const char *name,
348 const void *value, size_t size, int flags);
350 const void *value, size_t size, int flags);
351 int security_inode_getxattr(struct dentry *dentry, const char *name);
352 int security_inode_listxattr(struct dentry *dentry);
353 int security_inode_removexattr(struct dentry *dentry, const char *name);
354 int security_inode_need_killpriv(struct dentry *dentry);
355 int security_inode_killpriv(struct dentry *dentry);
356 int security_inode_getsecurity(struct inode *inode, const char *name, void **buffer, bool alloc);
357 int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t siz…
358 int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size);
360 int security_inode_copy_up(struct dentry *src, struct cred **new);
361 int security_inode_copy_up_xattr(const char *name);
362 int security_kernfs_init_security(struct kernfs_node *kn_dir,
364 int security_file_permission(struct file *file, int mask);
365 int security_file_alloc(struct file *file);
367 int security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
368 int security_mmap_file(struct file *file, unsigned long prot,
370 int security_mmap_addr(unsigned long addr);
371 int security_file_mprotect(struct vm_area_struct *vma, unsigned long reqprot,
373 int security_file_lock(struct file *file, unsigned int cmd);
374 int security_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg);
376 int security_file_send_sigiotask(struct task_struct *tsk,
377 struct fown_struct *fown, int sig);
378 int security_file_receive(struct file *file);
379 int security_file_open(struct file *file);
380 int security_task_alloc(struct task_struct *task, unsigned long clone_flags);
382 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
384 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
387 int security_kernel_act_as(struct cred *new, u32 secid);
388 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
389 int security_kernel_module_request(char *kmod_name);
390 int security_kernel_load_data(enum kernel_load_data_id id, bool contents);
391 int security_kernel_post_load_data(char *buf, loff_t size,
394 int security_kernel_read_file(struct file *file, enum kernel_read_file_id id,
396 int security_kernel_post_read_file(struct file *file, char *buf, loff_t size,
398 int security_task_fix_setuid(struct cred *new, const struct cred *old,
399 int flags);
400 int security_task_fix_setgid(struct cred *new, const struct cred *old,
401 int flags);
402 int security_task_setpgid(struct task_struct *p, pid_t pgid);
403 int security_task_getpgid(struct task_struct *p);
404 int security_task_getsid(struct task_struct *p);
406 int security_task_setnice(struct task_struct *p, int nice);
407 int security_task_setioprio(struct task_struct *p, int ioprio);
408 int security_task_getioprio(struct task_struct *p);
409 int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
410 unsigned int flags);
411 int security_task_setrlimit(struct task_struct *p, unsigned int resource,
413 int security_task_setscheduler(struct task_struct *p);
414 int security_task_getscheduler(struct task_struct *p);
415 int security_task_movememory(struct task_struct *p);
416 int security_task_kill(struct task_struct *p, struct kernel_siginfo *info,
417 int sig, const struct cred *cred);
418 int security_task_prctl(int option, unsigned long arg2, unsigned long arg3,
421 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag);
423 int security_msg_msg_alloc(struct msg_msg *msg);
425 int security_msg_queue_alloc(struct kern_ipc_perm *msq);
427 int security_msg_queue_associate(struct kern_ipc_perm *msq, int msqflg);
428 int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd);
429 int security_msg_queue_msgsnd(struct kern_ipc_perm *msq,
430 struct msg_msg *msg, int msqflg);
431 int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg,
432 struct task_struct *target, long type, int mode);
433 int security_shm_alloc(struct kern_ipc_perm *shp);
435 int security_shm_associate(struct kern_ipc_perm *shp, int shmflg);
436 int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd);
437 int security_shm_shmat(struct kern_ipc_perm *shp, char __user *shmaddr, int shmflg);
438 int security_sem_alloc(struct kern_ipc_perm *sma);
440 int security_sem_associate(struct kern_ipc_perm *sma, int semflg);
441 int security_sem_semctl(struct kern_ipc_perm *sma, int cmd);
442 int security_sem_semop(struct kern_ipc_perm *sma, struct sembuf *sops,
443 unsigned nsops, int alter);
445 int security_getprocattr(struct task_struct *p, const char *lsm, char *name,
447 int security_setprocattr(const char *lsm, const char *name, void *value,
449 int security_netlink_send(struct sock *sk, struct sk_buff *skb);
450 int security_ismaclabel(const char *name);
451 int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen);
452 int security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid);
455 int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen);
456 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
457 int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen);
458 int security_locked_down(enum lockdown_reason what);
461 static inline int call_blocking_lsm_notifier(enum lsm_event event, void *data) in call_blocking_lsm_notifier()
466 static inline int register_blocking_lsm_notifier(struct notifier_block *nb) in register_blocking_lsm_notifier()
471 static inline int unregister_blocking_lsm_notifier(struct notifier_block *nb) in unregister_blocking_lsm_notifier()
485 static inline int security_init(void) in security_init()
490 static inline int early_security_init(void) in early_security_init()
495 static inline int security_binder_set_context_mgr(struct task_struct *mgr) in security_binder_set_context_mgr()
500 static inline int security_binder_transaction(struct task_struct *from, in security_binder_transaction()
506 static inline int security_binder_transfer_binder(struct task_struct *from, in security_binder_transfer_binder()
512 static inline int security_binder_transfer_file(struct task_struct *from, in security_binder_transfer_file()
519 static inline int security_ptrace_access_check(struct task_struct *child, in security_ptrace_access_check()
520 unsigned int mode) in security_ptrace_access_check()
525 static inline int security_ptrace_traceme(struct task_struct *parent) in security_ptrace_traceme()
530 static inline int security_capget(struct task_struct *target, in security_capget()
538 static inline int security_capset(struct cred *new, in security_capset()
547 static inline int security_capable(const struct cred *cred, in security_capable()
549 int cap, in security_capable()
550 unsigned int opts) in security_capable()
555 static inline int security_quotactl(int cmds, int type, int id, in security_quotactl()
561 static inline int security_quota_on(struct dentry *dentry) in security_quota_on()
566 static inline int security_syslog(int type) in security_syslog()
571 static inline int security_settime64(const struct timespec64 *ts, in security_settime64()
577 static inline int security_vm_enough_memory_mm(struct mm_struct *mm, long pages) in security_vm_enough_memory_mm()
582 static inline int security_bprm_creds_for_exec(struct linux_binprm *bprm) in security_bprm_creds_for_exec()
587 static inline int security_bprm_creds_from_file(struct linux_binprm *bprm, in security_bprm_creds_from_file()
593 static inline int security_bprm_check(struct linux_binprm *bprm) in security_bprm_check()
606 static inline int security_fs_context_dup(struct fs_context *fc, in security_fs_context_dup()
611 static inline int security_fs_context_parse_param(struct fs_context *fc, in security_fs_context_parse_param()
617 static inline int security_sb_alloc(struct super_block *sb) in security_sb_alloc()
625 static inline int security_sb_eat_lsm_opts(char *options, in security_sb_eat_lsm_opts()
631 static inline int security_sb_remount(struct super_block *sb, in security_sb_remount()
637 static inline int security_sb_kern_mount(struct super_block *sb) in security_sb_kern_mount()
642 static inline int security_sb_show_options(struct seq_file *m, in security_sb_show_options()
648 static inline int security_sb_statfs(struct dentry *dentry) in security_sb_statfs()
653 static inline int security_sb_mount(const char *dev_name, const struct path *path, in security_sb_mount()
660 static inline int security_sb_umount(struct vfsmount *mnt, int flags) in security_sb_umount()
665 static inline int security_sb_pivotroot(const struct path *old_path, in security_sb_pivotroot()
671 static inline int security_sb_set_mnt_opts(struct super_block *sb, in security_sb_set_mnt_opts()
679 static inline int security_sb_clone_mnt_opts(const struct super_block *oldsb, in security_sb_clone_mnt_opts()
687 static inline int security_add_mnt_opt(const char *option, const char *val, in security_add_mnt_opt()
688 int len, void **mnt_opts) in security_add_mnt_opt()
693 static inline int security_move_mount(const struct path *from_path, in security_move_mount()
699 static inline int security_path_notify(const struct path *path, u64 mask, in security_path_notify()
700 unsigned int obj_type) in security_path_notify()
705 static inline int security_inode_alloc(struct inode *inode) in security_inode_alloc()
713 static inline int security_dentry_init_security(struct dentry *dentry, in security_dentry_init_security()
714 int mode, in security_dentry_init_security()
722 static inline int security_dentry_create_files_as(struct dentry *dentry, in security_dentry_create_files_as()
723 int mode, struct qstr *name, in security_dentry_create_files_as()
731 static inline int security_inode_init_security(struct inode *inode, in security_inode_init_security()
740 static inline int security_old_inode_init_security(struct inode *inode, in security_old_inode_init_security()
749 static inline int security_inode_create(struct inode *dir, in security_inode_create()
756 static inline int security_inode_link(struct dentry *old_dentry, in security_inode_link()
763 static inline int security_inode_unlink(struct inode *dir, in security_inode_unlink()
769 static inline int security_inode_symlink(struct inode *dir, in security_inode_symlink()
776 static inline int security_inode_mkdir(struct inode *dir, in security_inode_mkdir()
778 int mode) in security_inode_mkdir()
783 static inline int security_inode_rmdir(struct inode *dir, in security_inode_rmdir()
789 static inline int security_inode_mknod(struct inode *dir, in security_inode_mknod()
791 int mode, dev_t dev) in security_inode_mknod()
796 static inline int security_inode_rename(struct inode *old_dir, in security_inode_rename()
800 unsigned int flags) in security_inode_rename()
805 static inline int security_inode_readlink(struct dentry *dentry) in security_inode_readlink()
810 static inline int security_inode_follow_link(struct dentry *dentry, in security_inode_follow_link()
817 static inline int security_inode_permission(struct inode *inode, int mask) in security_inode_permission()
822 static inline int security_inode_setattr(struct dentry *dentry, in security_inode_setattr()
828 static inline int security_inode_getattr(const struct path *path) in security_inode_getattr()
833 static inline int security_inode_setxattr(struct dentry *dentry, in security_inode_setxattr()
834 const char *name, const void *value, size_t size, int flags) in security_inode_setxattr()
840 const char *name, const void *value, size_t size, int flags) in security_inode_post_setxattr()
843 static inline int security_inode_getxattr(struct dentry *dentry, in security_inode_getxattr()
849 static inline int security_inode_listxattr(struct dentry *dentry) in security_inode_listxattr()
854 static inline int security_inode_removexattr(struct dentry *dentry, in security_inode_removexattr()
860 static inline int security_inode_need_killpriv(struct dentry *dentry) in security_inode_need_killpriv()
865 static inline int security_inode_killpriv(struct dentry *dentry) in security_inode_killpriv()
870 static inline int security_inode_getsecurity(struct inode *inode, const char *name, void **buffer, … in security_inode_getsecurity()
875 static inline int security_inode_setsecurity(struct inode *inode, const char *name, const void *val… in security_inode_setsecurity()
880 static inline int security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size) in security_inode_listsecurity()
890 static inline int security_inode_copy_up(struct dentry *src, struct cred **new) in security_inode_copy_up()
895 static inline int security_kernfs_init_security(struct kernfs_node *kn_dir, in security_kernfs_init_security()
901 static inline int security_inode_copy_up_xattr(const char *name) in security_inode_copy_up_xattr()
906 static inline int security_file_permission(struct file *file, int mask) in security_file_permission()
911 static inline int security_file_alloc(struct file *file) in security_file_alloc()
919 static inline int security_file_ioctl(struct file *file, unsigned int cmd, in security_file_ioctl()
925 static inline int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file()
931 static inline int security_mmap_addr(unsigned long addr) in security_mmap_addr()
936 static inline int security_file_mprotect(struct vm_area_struct *vma, in security_file_mprotect()
943 static inline int security_file_lock(struct file *file, unsigned int cmd) in security_file_lock()
948 static inline int security_file_fcntl(struct file *file, unsigned int cmd, in security_file_fcntl()
959 static inline int security_file_send_sigiotask(struct task_struct *tsk, in security_file_send_sigiotask()
961 int sig) in security_file_send_sigiotask()
966 static inline int security_file_receive(struct file *file) in security_file_receive()
971 static inline int security_file_open(struct file *file) in security_file_open()
976 static inline int security_task_alloc(struct task_struct *task, in security_task_alloc()
985 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
993 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1005 static inline int security_kernel_act_as(struct cred *cred, u32 secid) in security_kernel_act_as()
1010 static inline int security_kernel_create_files_as(struct cred *cred, in security_kernel_create_files_as()
1016 static inline int security_kernel_module_request(char *kmod_name) in security_kernel_module_request()
1021 static inline int security_kernel_load_data(enum kernel_load_data_id id, bool contents) in security_kernel_load_data()
1026 static inline int security_kernel_post_load_data(char *buf, loff_t size, in security_kernel_post_load_data()
1033 static inline int security_kernel_read_file(struct file *file, in security_kernel_read_file()
1040 static inline int security_kernel_post_read_file(struct file *file, in security_kernel_post_read_file()
1047 static inline int security_task_fix_setuid(struct cred *new, in security_task_fix_setuid()
1049 int flags) in security_task_fix_setuid()
1054 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1056 int flags) in security_task_fix_setgid()
1061 static inline int security_task_setpgid(struct task_struct *p, pid_t pgid) in security_task_setpgid()
1066 static inline int security_task_getpgid(struct task_struct *p) in security_task_getpgid()
1071 static inline int security_task_getsid(struct task_struct *p) in security_task_getsid()
1081 static inline int security_task_setnice(struct task_struct *p, int nice) in security_task_setnice()
1086 static inline int security_task_setioprio(struct task_struct *p, int ioprio) in security_task_setioprio()
1091 static inline int security_task_getioprio(struct task_struct *p) in security_task_getioprio()
1096 static inline int security_task_prlimit(const struct cred *cred, in security_task_prlimit()
1098 unsigned int flags) in security_task_prlimit()
1103 static inline int security_task_setrlimit(struct task_struct *p, in security_task_setrlimit()
1104 unsigned int resource, in security_task_setrlimit()
1110 static inline int security_task_setscheduler(struct task_struct *p) in security_task_setscheduler()
1115 static inline int security_task_getscheduler(struct task_struct *p) in security_task_getscheduler()
1120 static inline int security_task_movememory(struct task_struct *p) in security_task_movememory()
1125 static inline int security_task_kill(struct task_struct *p, in security_task_kill()
1126 struct kernel_siginfo *info, int sig, in security_task_kill()
1132 static inline int security_task_prctl(int option, unsigned long arg2, in security_task_prctl()
1143 static inline int security_ipc_permission(struct kern_ipc_perm *ipcp, in security_ipc_permission()
1154 static inline int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc()
1162 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc()
1170 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, in security_msg_queue_associate()
1171 int msqflg) in security_msg_queue_associate()
1176 static inline int security_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd) in security_msg_queue_msgctl()
1181 static inline int security_msg_queue_msgsnd(struct kern_ipc_perm *msq, in security_msg_queue_msgsnd()
1182 struct msg_msg *msg, int msqflg) in security_msg_queue_msgsnd()
1187 static inline int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, in security_msg_queue_msgrcv()
1190 long type, int mode) in security_msg_queue_msgrcv()
1195 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc()
1203 static inline int security_shm_associate(struct kern_ipc_perm *shp, in security_shm_associate()
1204 int shmflg) in security_shm_associate()
1209 static inline int security_shm_shmctl(struct kern_ipc_perm *shp, int cmd) in security_shm_shmctl()
1214 static inline int security_shm_shmat(struct kern_ipc_perm *shp, in security_shm_shmat()
1215 char __user *shmaddr, int shmflg) in security_shm_shmat()
1220 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc()
1228 static inline int security_sem_associate(struct kern_ipc_perm *sma, int semflg) in security_sem_associate()
1233 static inline int security_sem_semctl(struct kern_ipc_perm *sma, int cmd) in security_sem_semctl()
1238 static inline int security_sem_semop(struct kern_ipc_perm *sma, in security_sem_semop()
1240 int alter) in security_sem_semop()
1249 static inline int security_getprocattr(struct task_struct *p, const char *lsm, in security_getprocattr()
1255 static inline int security_setprocattr(const char *lsm, char *name, in security_setprocattr()
1261 static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
1266 static inline int security_ismaclabel(const char *name) in security_ismaclabel()
1271 static inline int security_secid_to_secctx(u32 secid, char **secdata, u32 *seclen) in security_secid_to_secctx()
1276 static inline int security_secctx_to_secid(const char *secdata, in security_secctx_to_secid()
1291 static inline int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen) in security_inode_notifysecctx()
1295 static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen) in security_inode_setsecctx()
1299 static inline int security_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen) in security_inode_getsecctx()
1303 static inline int security_locked_down(enum lockdown_reason what) in security_locked_down()
1310 int security_post_notification(const struct cred *w_cred,
1314 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1323 int security_watch_key(struct key *key);
1325 static inline int security_watch_key(struct key *key) in security_watch_key()
1333 int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk);
1334 int security_unix_may_send(struct socket *sock, struct socket *other);
1335 int security_socket_create(int family, int type, int protocol, int kern);
1336 int security_socket_post_create(struct socket *sock, int family,
1337 int type, int protocol, int kern);
1338 int security_socket_socketpair(struct socket *socka, struct socket *sockb);
1339 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
1340 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
1341 int security_socket_listen(struct socket *sock, int backlog);
1342 int security_socket_accept(struct socket *sock, struct socket *newsock);
1343 int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size);
1344 int security_socket_recvmsg(struct socket *sock, struct msghdr *msg,
1345 int size, int flags);
1346 int security_socket_getsockname(struct socket *sock);
1347 int security_socket_getpeername(struct socket *sock);
1348 int security_socket_getsockopt(struct socket *sock, int level, int optname);
1349 int security_socket_setsockopt(struct socket *sock, int level, int optname);
1350 int security_socket_shutdown(struct socket *sock, int how);
1351 int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb);
1352 int security_socket_getpeersec_stream(struct socket *sock, char __user *optval,
1353 int __user *optlen, unsigned len);
1354 int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid);
1355 int security_sk_alloc(struct sock *sk, int family, gfp_t priority);
1361 int security_inet_conn_request(struct sock *sk,
1367 int security_secmark_relabel_packet(u32 secid);
1370 int security_tun_dev_alloc_security(void **security);
1372 int security_tun_dev_create(void);
1373 int security_tun_dev_attach_queue(void *security);
1374 int security_tun_dev_attach(struct sock *sk, void *security);
1375 int security_tun_dev_open(void *security);
1376 int security_sctp_assoc_request(struct sctp_endpoint *ep, struct sk_buff *skb);
1377 int security_sctp_bind_connect(struct sock *sk, int optname,
1378 struct sockaddr *address, int addrlen);
1383 static inline int security_unix_stream_connect(struct sock *sock, in security_unix_stream_connect()
1390 static inline int security_unix_may_send(struct socket *sock, in security_unix_may_send()
1396 static inline int security_socket_create(int family, int type, in security_socket_create()
1397 int protocol, int kern) in security_socket_create()
1402 static inline int security_socket_post_create(struct socket *sock, in security_socket_post_create()
1403 int family, in security_socket_post_create()
1404 int type, in security_socket_post_create()
1405 int protocol, int kern) in security_socket_post_create()
1410 static inline int security_socket_socketpair(struct socket *socka, in security_socket_socketpair()
1416 static inline int security_socket_bind(struct socket *sock, in security_socket_bind()
1418 int addrlen) in security_socket_bind()
1423 static inline int security_socket_connect(struct socket *sock, in security_socket_connect()
1425 int addrlen) in security_socket_connect()
1430 static inline int security_socket_listen(struct socket *sock, int backlog) in security_socket_listen()
1435 static inline int security_socket_accept(struct socket *sock, in security_socket_accept()
1441 static inline int security_socket_sendmsg(struct socket *sock, in security_socket_sendmsg()
1442 struct msghdr *msg, int size) in security_socket_sendmsg()
1447 static inline int security_socket_recvmsg(struct socket *sock, in security_socket_recvmsg()
1448 struct msghdr *msg, int size, in security_socket_recvmsg()
1449 int flags) in security_socket_recvmsg()
1454 static inline int security_socket_getsockname(struct socket *sock) in security_socket_getsockname()
1459 static inline int security_socket_getpeername(struct socket *sock) in security_socket_getpeername()
1464 static inline int security_socket_getsockopt(struct socket *sock, in security_socket_getsockopt()
1465 int level, int optname) in security_socket_getsockopt()
1470 static inline int security_socket_setsockopt(struct socket *sock, in security_socket_setsockopt()
1471 int level, int optname) in security_socket_setsockopt()
1476 static inline int security_socket_shutdown(struct socket *sock, int how) in security_socket_shutdown()
1480 static inline int security_sock_rcv_skb(struct sock *sk, in security_sock_rcv_skb()
1486 static inline int security_socket_getpeersec_stream(struct socket *sock, char __user *optval, in security_socket_getpeersec_stream()
1487 int __user *optlen, unsigned len) in security_socket_getpeersec_stream()
1492 static inline int security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *s… in security_socket_getpeersec_dgram()
1497 static inline int security_sk_alloc(struct sock *sk, int family, gfp_t priority) in security_sk_alloc()
1522 static inline int security_inet_conn_request(struct sock *sk, in security_inet_conn_request()
1538 static inline int security_secmark_relabel_packet(u32 secid) in security_secmark_relabel_packet()
1551 static inline int security_tun_dev_alloc_security(void **security) in security_tun_dev_alloc_security()
1560 static inline int security_tun_dev_create(void) in security_tun_dev_create()
1565 static inline int security_tun_dev_attach_queue(void *security) in security_tun_dev_attach_queue()
1570 static inline int security_tun_dev_attach(struct sock *sk, void *security) in security_tun_dev_attach()
1575 static inline int security_tun_dev_open(void *security) in security_tun_dev_open()
1580 static inline int security_sctp_assoc_request(struct sctp_endpoint *ep, in security_sctp_assoc_request()
1586 static inline int security_sctp_bind_connect(struct sock *sk, int optname, in security_sctp_bind_connect()
1588 int addrlen) in security_sctp_bind_connect()
1601 int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey);
1602 int security_ib_endport_manage_subnet(void *sec, const char *name, u8 port_num);
1603 int security_ib_alloc_security(void **sec);
1606 static inline int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) in security_ib_pkey_access()
1611 static inline int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num) in security_ib_endport_manage_subnet()
1616 static inline int security_ib_alloc_security(void **sec) in security_ib_alloc_security()
1628 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1630 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp);
1632 int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx);
1633 int security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx);
1634 int security_xfrm_state_alloc_acquire(struct xfrm_state *x,
1636 int security_xfrm_state_delete(struct xfrm_state *x);
1638 int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir);
1639 int security_xfrm_state_pol_flow_match(struct xfrm_state *x,
1642 int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid);
1647 static inline int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
1654 static inline int security_xfrm_policy_clone(struct xfrm_sec_ctx *old, struct xfrm_sec_ctx **new_ct… in security_xfrm_policy_clone()
1663 static inline int security_xfrm_policy_delete(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_delete()
1668 static inline int security_xfrm_state_alloc(struct xfrm_state *x, in security_xfrm_state_alloc()
1674 static inline int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire()
1684 static inline int security_xfrm_state_delete(struct xfrm_state *x) in security_xfrm_state_delete()
1689 static inline int security_xfrm_policy_lookup(struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir) in security_xfrm_policy_lookup()
1694 static inline int security_xfrm_state_pol_flow_match(struct xfrm_state *x, in security_xfrm_state_pol_flow_match()
1700 static inline int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid) in security_xfrm_decode_session()
1712 int security_path_unlink(const struct path *dir, struct dentry *dentry);
1713 int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode);
1714 int security_path_rmdir(const struct path *dir, struct dentry *dentry);
1715 int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
1716 unsigned int dev);
1717 int security_path_truncate(const struct path *path);
1718 int security_path_symlink(const struct path *dir, struct dentry *dentry,
1720 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
1722 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1724 unsigned int flags);
1725 int security_path_chmod(const struct path *path, umode_t mode);
1726 int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid);
1727 int security_path_chroot(const struct path *path);
1729 static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) in security_path_unlink()
1734 static inline int security_path_mkdir(const struct path *dir, struct dentry *dentry, in security_path_mkdir()
1740 static inline int security_path_rmdir(const struct path *dir, struct dentry *dentry) in security_path_rmdir()
1745 static inline int security_path_mknod(const struct path *dir, struct dentry *dentry, in security_path_mknod()
1746 umode_t mode, unsigned int dev) in security_path_mknod()
1751 static inline int security_path_truncate(const struct path *path) in security_path_truncate()
1756 static inline int security_path_symlink(const struct path *dir, struct dentry *dentry, in security_path_symlink()
1762 static inline int security_path_link(struct dentry *old_dentry, in security_path_link()
1769 static inline int security_path_rename(const struct path *old_dir, in security_path_rename()
1773 unsigned int flags) in security_path_rename()
1778 static inline int security_path_chmod(const struct path *path, umode_t mode) in security_path_chmod()
1783 static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) in security_path_chown()
1788 static inline int security_path_chroot(const struct path *path) in security_path_chroot()
1797 int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
1799 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
1801 int security_key_getsecurity(struct key *key, char **_buffer);
1805 static inline int security_key_alloc(struct key *key, in security_key_alloc()
1816 static inline int security_key_permission(key_ref_t key_ref, in security_key_permission()
1823 static inline int security_key_getsecurity(struct key *key, char **_buffer) in security_key_getsecurity()
1834 int security_audit_rule_init(u32 field, u32 op, char *rulestr, void **lsmrule);
1835 int security_audit_rule_known(struct audit_krule *krule);
1836 int security_audit_rule_match(u32 secid, u32 field, u32 op, void *lsmrule);
1841 static inline int security_audit_rule_init(u32 field, u32 op, char *rulestr, in security_audit_rule_init()
1847 static inline int security_audit_rule_known(struct audit_krule *krule) in security_audit_rule_known()
1852 static inline int security_audit_rule_match(u32 secid, u32 field, u32 op, in security_audit_rule_match()
1912 extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size);
1913 extern int security_bpf_map(struct bpf_map *map, fmode_t fmode);
1914 extern int security_bpf_prog(struct bpf_prog *prog);
1915 extern int security_bpf_map_alloc(struct bpf_map *map);
1917 extern int security_bpf_prog_alloc(struct bpf_prog_aux *aux);
1920 static inline int security_bpf(int cmd, union bpf_attr *attr, in security_bpf()
1921 unsigned int size) in security_bpf()
1926 static inline int security_bpf_map(struct bpf_map *map, fmode_t fmode) in security_bpf_map()
1931 static inline int security_bpf_prog(struct bpf_prog *prog) in security_bpf_prog()
1936 static inline int security_bpf_map_alloc(struct bpf_map *map) in security_bpf_map_alloc()
1944 static inline int security_bpf_prog_alloc(struct bpf_prog_aux *aux) in security_bpf_prog_alloc()
1959 extern int security_perf_event_open(struct perf_event_attr *attr, int type);
1960 extern int security_perf_event_alloc(struct perf_event *event);
1962 extern int security_perf_event_read(struct perf_event *event);
1963 extern int security_perf_event_write(struct perf_event *event);
1965 static inline int security_perf_event_open(struct perf_event_attr *attr, in security_perf_event_open()
1966 int type) in security_perf_event_open()
1971 static inline int security_perf_event_alloc(struct perf_event *event) in security_perf_event_alloc()
1980 static inline int security_perf_event_read(struct perf_event *event) in security_perf_event_read()
1985 static inline int security_perf_event_write(struct perf_event *event) in security_perf_event_write()