Lines Matching full:struct

38 struct linux_binprm;
39 struct cred;
40 struct rlimit;
41 struct kernel_siginfo;
42 struct sembuf;
43 struct kern_ipc_perm;
44 struct audit_context;
45 struct super_block;
46 struct inode;
47 struct dentry;
48 struct file;
49 struct vfsmount;
50 struct path;
51 struct qstr;
52 struct iattr;
53 struct fown_struct;
54 struct file_operations;
55 struct msg_msg;
56 struct xattr;
57 struct kernfs_node;
58 struct xfrm_sec_ctx;
59 struct mm_struct;
60 struct fs_context;
61 struct fs_parameter;
63 struct watch;
64 struct watch_notification;
65 struct lsm_ctx;
77 struct ctl_table;
78 struct audit_krule;
79 struct user_namespace;
80 struct timezone;
86 struct dm_verity_digest {
157 extern const struct lsm_id *lsm_idlist[];
160 extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
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,
174 int cap_inode_removexattr(struct mnt_idmap *idmap,
175 struct dentry *dentry, const char *name);
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,
179 struct inode *inode, const char *name, void **buffer,
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);
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);
192 struct msghdr;
193 struct sk_buff;
194 struct sock;
195 struct sockaddr;
196 struct socket;
197 struct flowi_common;
198 struct dst_entry;
199 struct xfrm_selector;
200 struct xfrm_policy;
201 struct xfrm_state;
202 struct xfrm_user_sec_ctx;
203 struct seq_file;
204 struct sctp_association;
234 struct sched_param;
235 struct request_sock;
243 extern int mmap_min_addr_handler(const struct ctl_table *table, int write,
248 typedef int (*initxattrs) (struct inode *inode,
249 const struct xattr *xattr_array, void *fs_data);
275 int register_blocking_lsm_notifier(struct notifier_block *nb);
276 int unregister_blocking_lsm_notifier(struct notifier_block *nb);
284 int security_binder_set_context_mgr(const struct cred *mgr);
285 int security_binder_transaction(const struct cred *from,
286 const struct cred *to);
287 int security_binder_transfer_binder(const struct cred *from,
288 const struct cred *to);
289 int security_binder_transfer_file(const struct cred *from,
290 const struct cred *to, const struct file *file);
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,
302 struct user_namespace *ns,
305 int security_quotactl(int cmds, int type, int id, const struct super_block *sb);
306 int security_quota_on(struct dentry *dentry);
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);
313 void security_bprm_committing_creds(const struct linux_binprm *bprm);
314 void security_bprm_committed_creds(const 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);
319 void security_sb_delete(struct super_block *sb);
320 void security_sb_free(struct super_block *sb);
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,
337 struct super_block *newsb,
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,
342 const struct qstr *name,
345 int security_dentry_create_files_as(struct dentry *dentry, int mode,
346 struct qstr *name,
347 const struct cred *old,
348 struct cred *new);
349 int security_path_notify(const struct path *path, u64 mask,
351 int security_inode_alloc(struct inode *inode, gfp_t gfp);
352 void security_inode_free(struct inode *inode);
353 int security_inode_init_security(struct inode *inode, struct inode *dir,
354 const struct qstr *qstr,
356 int security_inode_init_security_anon(struct inode *inode,
357 const struct qstr *name,
358 const struct inode *context_inode);
359 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode);
360 void security_inode_post_create_tmpfile(struct mnt_idmap *idmap,
361 struct inode *inode);
362 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
363 struct dentry *new_dentry);
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,
371 struct inode *new_dir, struct dentry *new_dentry,
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,
378 struct dentry *dentry, struct iattr *attr);
379 void security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry,
381 int security_inode_getattr(const struct path *path);
382 int security_inode_setxattr(struct mnt_idmap *idmap,
383 struct dentry *dentry, const char *name,
385 int security_inode_set_acl(struct mnt_idmap *idmap,
386 struct dentry *dentry, const char *acl_name,
387 struct posix_acl *kacl);
388 void security_inode_post_set_acl(struct dentry *dentry, const char *acl_name,
389 struct posix_acl *kacl);
390 int security_inode_get_acl(struct mnt_idmap *idmap,
391 struct dentry *dentry, const char *acl_name);
392 int security_inode_remove_acl(struct mnt_idmap *idmap,
393 struct dentry *dentry, const char *acl_name);
394 void security_inode_post_remove_acl(struct mnt_idmap *idmap,
395 struct dentry *dentry,
397 void security_inode_post_setxattr(struct dentry *dentry, const char *name,
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,
402 struct dentry *dentry, const char *name);
403 void security_inode_post_removexattr(struct dentry *dentry, const char *name);
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,
407 struct inode *inode, const char *name,
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);
411 void security_inode_getsecid(struct inode *inode, u32 *secid);
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,
418 struct kernfs_node *kn);
419 int security_file_permission(struct file *file, int mask);
420 int security_file_alloc(struct file *file);
421 void security_file_release(struct file *file);
422 void security_file_free(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,
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);
433 void security_file_set_fowner(struct file *file);
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);
441 void security_task_free(struct task_struct *task);
442 int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
443 void security_cred_free(struct cred *cred);
444 int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
445 void security_transfer_creds(struct cred *new, const struct cred *old);
446 void security_cred_getsecid(const struct cred *c, u32 *secid);
447 int security_kernel_act_as(struct cred *new, u32 secid);
448 int security_kernel_create_files_as(struct cred *new, struct inode *inode);
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,
460 int security_task_fix_setgid(struct cred *new, const struct cred *old,
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);
467 void security_task_getsecid_obj(struct task_struct *p, u32 *secid);
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,
473 int security_task_setrlimit(struct task_struct *p, unsigned int resource,
474 struct rlimit *new_rlim);
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);
482 void security_task_to_inode(struct task_struct *p, struct inode *inode);
483 int security_create_user_ns(const struct cred *cred);
484 int security_ipc_permission(struct kern_ipc_perm *ipcp, short flag);
485 void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid);
486 int security_msg_msg_alloc(struct msg_msg *msg);
487 void security_msg_msg_free(struct msg_msg *msg);
488 int security_msg_queue_alloc(struct kern_ipc_perm *msq);
489 void security_msg_queue_free(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);
497 void security_shm_free(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);
502 void security_sem_free(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,
507 void security_d_instantiate(struct dentry *dentry, struct inode *inode);
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,
515 int security_netlink_send(struct sock *sk, struct sk_buff *skb);
520 void security_inode_invalidate_secctx(struct inode *inode);
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);
525 int lsm_fill_user_ctx(struct lsm_ctx __user *uctx, u32 *uctx_len,
527 int security_bdev_alloc(struct block_device *bdev);
528 void security_bdev_free(struct block_device *bdev);
529 int security_bdev_setintegrity(struct block_device *bdev,
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()
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()
579 const struct cred *to) in security_binder_transaction()
584 static inline int security_binder_transfer_binder(const struct cred *from, in security_binder_transfer_binder()
585 const struct cred *to) in security_binder_transfer_binder()
590 static inline int security_binder_transfer_file(const struct cred *from, in security_binder_transfer_file()
591 const struct cred *to, in security_binder_transfer_file()
592 const struct file *file) in security_binder_transfer_file()
597 static inline int security_ptrace_access_check(struct task_struct *child, 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()
617 const struct cred *old, in security_capset()
625 static inline int security_capable(const struct cred *cred, in security_capable()
626 struct user_namespace *ns, in security_capable()
634 const struct super_block *sb) in security_quotactl()
639 static inline int security_quota_on(struct dentry *dentry) in security_quota_on()
649 static inline int security_settime64(const struct timespec64 *ts, in security_settime64()
650 const struct timezone *tz) 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()
666 const struct file *file) in security_bprm_creds_from_file()
671 static inline int security_bprm_check(struct linux_binprm *bprm) in security_bprm_check()
676 static inline void security_bprm_committing_creds(const struct linux_binprm *bprm) in security_bprm_committing_creds()
680 static inline void security_bprm_committed_creds(const struct linux_binprm *bprm) in security_bprm_committed_creds()
684 static inline int security_fs_context_submount(struct fs_context *fc, in security_fs_context_submount()
685 struct super_block *reference) in security_fs_context_submount()
689 static inline int security_fs_context_dup(struct fs_context *fc, in security_fs_context_dup()
690 struct fs_context *src_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()
695 struct fs_parameter *param) in security_fs_context_parse_param()
700 static inline int security_sb_alloc(struct super_block *sb) in security_sb_alloc()
705 static inline void security_sb_delete(struct super_block *sb) in security_sb_delete()
708 static inline void security_sb_free(struct super_block *sb) in security_sb_free()
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()
736 struct super_block *sb) 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()
759 const struct path *new_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()
773 struct super_block *newsb, in security_sb_clone_mnt_opts()
780 static inline int security_move_mount(const struct path *from_path, in security_move_mount()
781 const struct path *to_path) in security_move_mount()
786 static inline int security_path_notify(const struct path *path, u64 mask, in security_path_notify()
792 static inline int security_inode_alloc(struct inode *inode, gfp_t gfp) in security_inode_alloc()
797 static inline void security_inode_free(struct inode *inode) in security_inode_free()
800 static inline int security_dentry_init_security(struct dentry *dentry, in security_dentry_init_security()
802 const struct qstr *name, 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()
812 const struct cred *old, in security_dentry_create_files_as()
813 struct cred *new) in security_dentry_create_files_as()
819 static inline int security_inode_init_security(struct inode *inode, in security_inode_init_security()
820 struct inode *dir, in security_inode_init_security()
821 const struct qstr *qstr, in security_inode_init_security()
828 static inline int security_inode_init_security_anon(struct inode *inode, in security_inode_init_security_anon()
829 const struct qstr *name, in security_inode_init_security_anon()
830 const struct inode *context_inode) in security_inode_init_security_anon()
835 static inline int security_inode_create(struct inode *dir, in security_inode_create()
836 struct dentry *dentry, in security_inode_create()
843 security_inode_post_create_tmpfile(struct mnt_idmap *idmap, struct inode *inode) in security_inode_post_create_tmpfile()
846 static inline int security_inode_link(struct dentry *old_dentry, in security_inode_link()
847 struct inode *dir, in security_inode_link()
848 struct dentry *new_dentry) in security_inode_link()
853 static inline int security_inode_unlink(struct inode *dir, in security_inode_unlink()
854 struct dentry *dentry) in security_inode_unlink()
859 static inline int security_inode_symlink(struct inode *dir, in security_inode_symlink()
860 struct dentry *dentry, in security_inode_symlink()
866 static inline int security_inode_mkdir(struct inode *dir, in security_inode_mkdir()
867 struct dentry *dentry, in security_inode_mkdir()
873 static inline int security_inode_rmdir(struct inode *dir, in security_inode_rmdir()
874 struct dentry *dentry) in security_inode_rmdir()
879 static inline int security_inode_mknod(struct inode *dir, in security_inode_mknod()
880 struct dentry *dentry, in security_inode_mknod()
886 static inline int security_inode_rename(struct inode *old_dir, in security_inode_rename()
887 struct dentry *old_dentry, in security_inode_rename()
888 struct inode *new_dir, in security_inode_rename()
889 struct dentry *new_dentry, 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()
901 struct inode *inode, 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()
913 struct dentry *dentry, in security_inode_setattr()
914 struct iattr *attr) in security_inode_setattr()
920 security_inode_post_setattr(struct mnt_idmap *idmap, struct dentry *dentry, 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()
930 struct dentry *dentry, const char *name, const void *value, in security_inode_setxattr()
936 static inline int security_inode_set_acl(struct mnt_idmap *idmap, in security_inode_set_acl()
937 struct dentry *dentry, in security_inode_set_acl()
939 struct posix_acl *kacl) in security_inode_set_acl()
944 static inline void security_inode_post_set_acl(struct dentry *dentry, in security_inode_post_set_acl()
946 struct posix_acl *kacl) in security_inode_post_set_acl()
949 static inline int security_inode_get_acl(struct mnt_idmap *idmap, in security_inode_get_acl()
950 struct dentry *dentry, in security_inode_get_acl()
956 static inline int security_inode_remove_acl(struct mnt_idmap *idmap, in security_inode_remove_acl()
957 struct dentry *dentry, in security_inode_remove_acl()
963 static inline void security_inode_post_remove_acl(struct mnt_idmap *idmap, in security_inode_post_remove_acl()
964 struct dentry *dentry, in security_inode_post_remove_acl()
968 static inline void security_inode_post_setxattr(struct dentry *dentry, 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()
984 struct dentry *dentry, in security_inode_removexattr()
990 static inline void security_inode_post_removexattr(struct dentry *dentry, in security_inode_post_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()
1000 struct dentry *dentry) in security_inode_killpriv()
1005 static inline int security_inode_getsecurity(struct mnt_idmap *idmap, in security_inode_getsecurity()
1006 struct inode *inode, 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()
1023 static inline void security_inode_getsecid(struct inode *inode, u32 *secid) in security_inode_getsecid()
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()
1041 struct kernfs_node *kn) 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()
1061 static inline void security_file_release(struct file *file) in security_file_release()
1064 static inline void security_file_free(struct file *file) in security_file_free()
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()
1080 static inline int security_mmap_file(struct file *file, unsigned long prot, in security_mmap_file()
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()
1109 static inline void security_file_set_fowner(struct file *file) in security_file_set_fowner()
1114 static inline int security_file_send_sigiotask(struct task_struct *tsk, in security_file_send_sigiotask()
1115 struct fown_struct *fown, 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()
1147 static inline void security_task_free(struct task_struct *task) in security_task_free()
1150 static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp) in security_cred_alloc_blank()
1155 static inline void security_cred_free(struct cred *cred) in security_cred_free()
1158 static inline int security_prepare_creds(struct cred *new, in security_prepare_creds()
1159 const struct cred *old, in security_prepare_creds()
1165 static inline void security_transfer_creds(struct cred *new, in security_transfer_creds()
1166 const struct cred *old) in security_transfer_creds()
1170 static inline void security_cred_getsecid(const struct cred *c, u32 *secid) in security_cred_getsecid()
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()
1181 struct inode *inode) in security_kernel_create_files_as()
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()
1218 const struct cred *old, in security_task_fix_setuid()
1224 static inline int security_task_fix_setgid(struct cred *new, in security_task_fix_setgid()
1225 const struct cred *old, in security_task_fix_setgid()
1231 static inline int security_task_fix_setgroups(struct cred *new, in security_task_fix_setgroups()
1232 const struct cred *old) 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()
1257 static inline void security_task_getsecid_obj(struct task_struct *p, u32 *secid) in security_task_getsecid_obj()
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()
1278 const struct cred *tcred, in security_task_prlimit()
1284 static inline int security_task_setrlimit(struct task_struct *p, in security_task_setrlimit()
1286 struct rlimit *new_rlim) 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()
1308 const struct cred *cred) in security_task_kill()
1321 static inline void security_task_to_inode(struct task_struct *p, struct inode *inode) in security_task_to_inode()
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()
1335 static inline void security_ipc_getsecid(struct kern_ipc_perm *ipcp, u32 *secid) in security_ipc_getsecid()
1340 static inline int security_msg_msg_alloc(struct msg_msg *msg) in security_msg_msg_alloc()
1345 static inline void security_msg_msg_free(struct msg_msg *msg) in security_msg_msg_free()
1348 static inline int security_msg_queue_alloc(struct kern_ipc_perm *msq) in security_msg_queue_alloc()
1353 static inline void security_msg_queue_free(struct kern_ipc_perm *msq) in security_msg_queue_free()
1356 static inline int security_msg_queue_associate(struct kern_ipc_perm *msq, 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()
1374 struct msg_msg *msg, in security_msg_queue_msgrcv()
1375 struct task_struct *target, in security_msg_queue_msgrcv()
1381 static inline int security_shm_alloc(struct kern_ipc_perm *shp) in security_shm_alloc()
1386 static inline void security_shm_free(struct kern_ipc_perm *shp) in security_shm_free()
1389 static inline int security_shm_associate(struct kern_ipc_perm *shp, 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()
1406 static inline int security_sem_alloc(struct kern_ipc_perm *sma) in security_sem_alloc()
1411 static inline void security_sem_free(struct kern_ipc_perm *sma) in security_sem_free()
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()
1425 struct sembuf *sops, unsigned nsops, in security_sem_semop()
1431 static inline void security_d_instantiate(struct dentry *dentry, in security_d_instantiate()
1432 struct inode *inode) in security_d_instantiate()
1436 struct lsm_ctx __user *ctx, in security_getselfattr()
1443 struct lsm_ctx __user *ctx, in security_setselfattr()
1449 static inline int security_getprocattr(struct task_struct *p, int lsmid, in security_getprocattr()
1461 static inline int security_netlink_send(struct sock *sk, struct sk_buff *skb) in security_netlink_send()
1487 static inline void security_inode_invalidate_secctx(struct inode *inode) in security_inode_invalidate_secctx()
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()
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()
1519 static inline void security_bdev_free(struct block_device *bdev) in security_bdev_free()
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,
1534 const struct cred *cred,
1535 struct watch_notification *n);
1537 static inline int security_post_notification(const struct cred *w_cred, in security_post_notification()
1538 const struct cred *cred, in security_post_notification()
1539 struct watch_notification *n) 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);
1559 int security_socket_post_create(struct socket *sock, int family,
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,
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,
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);
1579 void security_sk_free(struct sock *sk);
1580 void security_sk_clone(const struct sock *sk, struct sock *newsk);
1581 void security_sk_classify_flow(const struct sock *sk,
1582 struct flowi_common *flic);
1583 void security_req_classify_flow(const struct request_sock *req,
1584 struct flowi_common *flic);
1585 void security_sock_graft(struct sock*sk, struct socket *parent);
1586 int security_inet_conn_request(const struct sock *sk,
1587 struct sk_buff *skb, struct request_sock *req);
1588 void security_inet_csk_clone(struct sock *newsk,
1589 const struct request_sock *req);
1590 void security_inet_conn_established(struct sock *sk,
1591 struct sk_buff *skb);
1599 int security_tun_dev_attach(struct sock *sk, 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);
1604 void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk,
1605 struct sock *newsk);
1606 int security_sctp_assoc_established(struct sctp_association *asoc,
1607 struct sk_buff *skb);
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()
1612 struct sock *other, in security_unix_stream_connect()
1613 struct sock *newsk) in security_unix_stream_connect()
1618 static inline int security_unix_may_send(struct socket *sock, in security_unix_may_send()
1619 struct socket *other) in security_unix_may_send()
1630 static inline int security_socket_post_create(struct socket *sock, in security_socket_post_create()
1638 static inline int security_socket_socketpair(struct socket *socka, in security_socket_socketpair()
1639 struct socket *sockb) in security_socket_socketpair()
1644 static inline int security_socket_bind(struct socket *sock, in security_socket_bind()
1645 struct sockaddr *address, in security_socket_bind()
1651 static inline int security_socket_connect(struct socket *sock, in security_socket_connect()
1652 struct sockaddr *address, 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()
1664 struct socket *newsock) 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()
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()
1698 static inline int security_socket_setsockopt(struct socket *sock, 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()
1709 struct sk_buff *skb) in security_sock_rcv_skb()
1714 static inline int security_socket_getpeersec_stream(struct socket *sock, 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()
1732 static inline void security_sk_free(struct sock *sk) in security_sk_free()
1736 static inline void security_sk_clone(const struct sock *sk, struct sock *newsk) in security_sk_clone()
1740 static inline void security_sk_classify_flow(const struct sock *sk, in security_sk_classify_flow()
1741 struct flowi_common *flic) in security_sk_classify_flow()
1745 static inline void security_req_classify_flow(const struct request_sock *req, in security_req_classify_flow()
1746 struct flowi_common *flic) in security_req_classify_flow()
1750 static inline void security_sock_graft(struct sock *sk, struct socket *parent) in security_sock_graft()
1754 static inline int security_inet_conn_request(const struct sock *sk, in security_inet_conn_request()
1755 struct sk_buff *skb, struct request_sock *req) in security_inet_conn_request()
1760 static inline void security_inet_csk_clone(struct sock *newsk, in security_inet_csk_clone()
1761 const struct request_sock *req) in security_inet_csk_clone()
1765 static inline void security_inet_conn_established(struct sock *sk, in security_inet_conn_established()
1766 struct sk_buff *skb) in security_inet_conn_established()
1802 static inline int security_tun_dev_attach(struct sock *sk, void *security) in security_tun_dev_attach()
1812 static inline int security_sctp_assoc_request(struct sctp_association *asoc, in security_sctp_assoc_request()
1813 struct sk_buff *skb) in security_sctp_assoc_request()
1818 static inline int security_sctp_bind_connect(struct sock *sk, int optname, in security_sctp_bind_connect()
1819 struct sockaddr *address, in security_sctp_bind_connect()
1825 static inline void security_sctp_sk_clone(struct sctp_association *asoc, in security_sctp_sk_clone()
1826 struct sock *sk, in security_sctp_sk_clone()
1827 struct sock *newsk) in security_sctp_sk_clone()
1831 static inline int security_sctp_assoc_established(struct sctp_association *asoc, in security_sctp_assoc_established()
1832 struct sk_buff *skb) in security_sctp_assoc_established()
1837 static inline int security_mptcp_add_subflow(struct sock *sk, struct sock *ssk) in security_mptcp_add_subflow()
1871 int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp,
1872 struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp);
1873 int security_xfrm_policy_clone(struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp);
1874 void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx);
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,
1878 struct xfrm_sec_ctx *polsec, u32 secid);
1879 int security_xfrm_state_delete(struct xfrm_state *x);
1880 void security_xfrm_state_free(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,
1883 struct xfrm_policy *xp,
1884 const struct flowi_common *flic);
1885 int security_xfrm_decode_session(struct sk_buff *skb, u32 *secid);
1886 void security_skb_classify_flow(struct sk_buff *skb, struct flowi_common *flic);
1890 static inline int security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, in security_xfrm_policy_alloc()
1891 struct xfrm_user_sec_ctx *sec_ctx, 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()
1902 static inline void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx) in security_xfrm_policy_free()
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()
1912 struct xfrm_user_sec_ctx *sec_ctx) in security_xfrm_state_alloc()
1917 static inline int security_xfrm_state_alloc_acquire(struct xfrm_state *x, in security_xfrm_state_alloc_acquire()
1918 struct xfrm_sec_ctx *polsec, u32 secid) in security_xfrm_state_alloc_acquire()
1923 static inline void security_xfrm_state_free(struct xfrm_state *x) in security_xfrm_state_free()
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()
1938 struct xfrm_policy *xp, in security_xfrm_state_pol_flow_match()
1939 const struct flowi_common *flic) 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()
1949 static inline void security_skb_classify_flow(struct sk_buff *skb, in security_skb_classify_flow()
1950 struct flowi_common *flic) in security_skb_classify_flow()
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,
1962 void security_path_post_mknod(struct mnt_idmap *idmap, struct dentry *dentry);
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,
1967 struct dentry *new_dentry);
1968 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1969 const struct path *new_dir, struct dentry *new_dentry,
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()
1997 static inline void security_path_post_mknod(struct mnt_idmap *idmap, in security_path_post_mknod()
1998 struct dentry *dentry) in security_path_post_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()
2013 const struct path *new_dir, in security_path_link()
2014 struct dentry *new_dentry) in security_path_link()
2019 static inline int security_path_rename(const struct path *old_dir, in security_path_rename()
2020 struct dentry *old_dentry, in security_path_rename()
2021 const struct path *new_dir, in security_path_rename()
2022 struct dentry *new_dentry, 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);
2048 void security_key_free(struct key *key);
2049 int security_key_permission(key_ref_t key_ref, const struct cred *cred,
2051 int security_key_getsecurity(struct key *key, char **_buffer);
2052 void security_key_post_create_or_update(struct key *keyring, struct key *key,
2058 static inline int security_key_alloc(struct key *key, in security_key_alloc()
2059 const struct cred *cred, in security_key_alloc()
2065 static inline void security_key_free(struct key *key) in security_key_free()
2070 const struct cred *cred, in security_key_permission()
2076 static inline int security_key_getsecurity(struct key *key, char **_buffer) in security_key_getsecurity()
2082 static inline void security_key_post_create_or_update(struct key *keyring, in security_key_post_create_or_update()
2083 struct key *key, in security_key_post_create_or_update()
2097 int security_audit_rule_known(struct audit_krule *krule);
2109 static inline int security_audit_rule_known(struct audit_krule *krule) in security_audit_rule_known()
2128 extern struct dentry *securityfs_create_file(const char *name, umode_t mode,
2129 struct dentry *parent, void *data,
2130 const struct file_operations *fops);
2131 extern struct dentry *securityfs_create_dir(const char *name, struct dentry *parent);
2132 struct dentry *securityfs_create_symlink(const char *name,
2133 struct dentry *parent,
2135 const struct inode_operations *iops);
2136 extern void securityfs_remove(struct dentry *dentry);
2137 extern void securityfs_recursive_remove(struct dentry *dentry);
2141 static inline struct dentry *securityfs_create_dir(const char *name, in securityfs_create_dir()
2142 struct dentry *parent) in securityfs_create_dir()
2147 static inline struct dentry *securityfs_create_file(const char *name, in securityfs_create_file()
2149 struct dentry *parent, in securityfs_create_file()
2151 const struct file_operations *fops) in securityfs_create_file()
2156 static inline struct dentry *securityfs_create_symlink(const char *name, in securityfs_create_symlink()
2157 struct dentry *parent, in securityfs_create_symlink()
2159 const struct inode_operations *iops) in securityfs_create_symlink()
2164 static inline void securityfs_remove(struct dentry *dentry) in securityfs_remove()
2171 struct bpf_map;
2172 struct bpf_prog;
2173 struct bpf_token;
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,
2179 struct bpf_token *token);
2180 extern void security_bpf_map_free(struct bpf_map *map);
2181 extern int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
2182 struct bpf_token *token);
2183 extern void security_bpf_prog_free(struct bpf_prog *prog);
2184 extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
2185 const struct path *path);
2186 extern void security_bpf_token_free(struct bpf_token *token);
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);
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()
2207 struct bpf_token *token) in security_bpf_map_create()
2212 static inline void security_bpf_map_free(struct bpf_map *map) in security_bpf_map_free()
2215 static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr, in security_bpf_prog_load()
2216 struct bpf_token *token) in security_bpf_prog_load()
2221 static inline void security_bpf_prog_free(struct bpf_prog *prog) in security_bpf_prog_free()
2224 static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr, in security_bpf_token_create()
2225 const struct path *path) in security_bpf_token_create()
2230 static inline void security_bpf_token_free(struct bpf_token *token) in security_bpf_token_free()
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()
2246 struct perf_event_attr;
2247 struct perf_event;
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);
2252 extern void security_perf_event_free(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()
2262 static inline int security_perf_event_alloc(struct perf_event *event) in security_perf_event_alloc()
2267 static inline void security_perf_event_free(struct perf_event *event) in security_perf_event_free()
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);
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()
2297 static inline int security_uring_cmd(struct io_uring_cmd *ioucmd) in security_uring_cmd()