Lines Matching defs:security_operations

1460 struct security_operations {  struct
1461 char name[SECURITY_NAME_MAX + 1];
1463 int (*binder_set_context_mgr) (struct task_struct *mgr);
1464 int (*binder_transaction) (struct task_struct *from,
1466 int (*binder_transfer_binder) (struct task_struct *from,
1468 int (*binder_transfer_file) (struct task_struct *from,
1471 int (*ptrace_access_check) (struct task_struct *child, unsigned int mode);
1472 int (*ptrace_traceme) (struct task_struct *parent);
1473 int (*capget) (struct task_struct *target,
1476 int (*capset) (struct cred *new,
1481 int (*capable) (const struct cred *cred, struct user_namespace *ns,
1483 int (*quotactl) (int cmds, int type, int id, struct super_block *sb);
1484 int (*quota_on) (struct dentry *dentry);
1485 int (*syslog) (int type);
1486 int (*settime) (const struct timespec *ts, const struct timezone *tz);
1487 int (*vm_enough_memory) (struct mm_struct *mm, long pages);
1489 int (*bprm_set_creds) (struct linux_binprm *bprm);
1490 int (*bprm_check_security) (struct linux_binprm *bprm);
1491 int (*bprm_secureexec) (struct linux_binprm *bprm);
1492 void (*bprm_committing_creds) (struct linux_binprm *bprm);
1493 void (*bprm_committed_creds) (struct linux_binprm *bprm);
1495 int (*sb_alloc_security) (struct super_block *sb);
1496 void (*sb_free_security) (struct super_block *sb);
1497 int (*sb_copy_data) (char *orig, char *copy);
1498 int (*sb_remount) (struct super_block *sb, void *data);
1499 int (*sb_kern_mount) (struct super_block *sb, int flags, void *data);
1500 int (*sb_show_options) (struct seq_file *m, struct super_block *sb);
1501 int (*sb_statfs) (struct dentry *dentry);
1502 int (*sb_mount) (const char *dev_name, struct path *path,
1504 int (*sb_umount) (struct vfsmount *mnt, int flags);
1505 int (*sb_pivotroot) (struct path *old_path,
1507 int (*sb_set_mnt_opts) (struct super_block *sb,
1511 int (*sb_clone_mnt_opts) (const struct super_block *oldsb,
1513 int (*sb_parse_opts_str) (char *options, struct security_mnt_opts *opts);
1514 int (*dentry_init_security) (struct dentry *dentry, int mode,
1520 int (*path_unlink) (struct path *dir, struct dentry *dentry);
1521 int (*path_mkdir) (struct path *dir, struct dentry *dentry, umode_t mode);
1522 int (*path_rmdir) (struct path *dir, struct dentry *dentry);
1523 int (*path_mknod) (struct path *dir, struct dentry *dentry, umode_t mode,
1525 int (*path_truncate) (struct path *path);
1526 int (*path_symlink) (struct path *dir, struct dentry *dentry,
1528 int (*path_link) (struct dentry *old_dentry, struct path *new_dir,
1530 int (*path_rename) (struct path *old_dir, struct dentry *old_dentry,
1532 int (*path_chmod) (struct path *path, umode_t mode);
1533 int (*path_chown) (struct path *path, kuid_t uid, kgid_t gid);
1534 int (*path_chroot) (struct path *path);
1537 int (*inode_alloc_security) (struct inode *inode);
1538 void (*inode_free_security) (struct inode *inode);
1539 int (*inode_init_security) (struct inode *inode, struct inode *dir,
1542 int (*inode_create) (struct inode *dir,
1544 int (*inode_link) (struct dentry *old_dentry,
1546 int (*inode_unlink) (struct inode *dir, struct dentry *dentry);
1547 int (*inode_symlink) (struct inode *dir,
1549 int (*inode_mkdir) (struct inode *dir, struct dentry *dentry, umode_t mode);
1550 int (*inode_rmdir) (struct inode *dir, struct dentry *dentry);
1551 int (*inode_mknod) (struct inode *dir, struct dentry *dentry,
1553 int (*inode_rename) (struct inode *old_dir, struct dentry *old_dentry,
1555 int (*inode_readlink) (struct dentry *dentry);
1556 int (*inode_follow_link) (struct dentry *dentry, struct nameidata *nd);
1557 int (*inode_permission) (struct inode *inode, int mask);
1558 int (*inode_setattr) (struct dentry *dentry, struct iattr *attr);
1559 int (*inode_getattr) (const struct path *path);
1560 int (*inode_setxattr) (struct dentry *dentry, const char *name,
1562 void (*inode_post_setxattr) (struct dentry *dentry, const char *name,
1564 int (*inode_getxattr) (struct dentry *dentry, const char *name);
1565 int (*inode_listxattr) (struct dentry *dentry);
1566 int (*inode_removexattr) (struct dentry *dentry, const char *name);
1567 int (*inode_need_killpriv) (struct dentry *dentry);
1568 int (*inode_killpriv) (struct dentry *dentry);
1569 int (*inode_getsecurity) (const struct inode *inode, const char *name, void **buffer, bool alloc);
1570 …de_setsecurity) (struct inode *inode, const char *name, const void *value, size_t size, int flags);
1571 int (*inode_listsecurity) (struct inode *inode, char *buffer, size_t buffer_size);
1572 void (*inode_getsecid) (const struct inode *inode, u32 *secid);
1574 int (*file_permission) (struct file *file, int mask);
1575 int (*file_alloc_security) (struct file *file);
1576 void (*file_free_security) (struct file *file);
1577 int (*file_ioctl) (struct file *file, unsigned int cmd,
1579 int (*mmap_addr) (unsigned long addr);
1580 int (*mmap_file) (struct file *file,
1583 int (*file_mprotect) (struct vm_area_struct *vma,
1586 int (*file_lock) (struct file *file, unsigned int cmd);
1587 int (*file_fcntl) (struct file *file, unsigned int cmd,
1589 void (*file_set_fowner) (struct file *file);
1590 int (*file_send_sigiotask) (struct task_struct *tsk,
1592 int (*file_receive) (struct file *file);
1593 int (*file_open) (struct file *file, const struct cred *cred);
1595 int (*task_create) (unsigned long clone_flags);
1596 void (*task_free) (struct task_struct *task);
1597 int (*cred_alloc_blank) (struct cred *cred, gfp_t gfp);
1598 void (*cred_free) (struct cred *cred);
1599 int (*cred_prepare)(struct cred *new, const struct cred *old,
1601 void (*cred_transfer)(struct cred *new, const struct cred *old);
1602 int (*kernel_act_as)(struct cred *new, u32 secid);
1603 int (*kernel_create_files_as)(struct cred *new, struct inode *inode);
1604 int (*kernel_fw_from_file)(struct file *file, char *buf, size_t size);
1605 int (*kernel_module_request)(char *kmod_name);
1606 int (*kernel_module_from_file)(struct file *file);
1607 int (*task_fix_setuid) (struct cred *new, const struct cred *old,
1609 int (*task_setpgid) (struct task_struct *p, pid_t pgid);
1610 int (*task_getpgid) (struct task_struct *p);
1611 int (*task_getsid) (struct task_struct *p);
1612 void (*task_getsecid) (struct task_struct *p, u32 *secid);
1613 int (*task_setnice) (struct task_struct *p, int nice);
1614 int (*task_setioprio) (struct task_struct *p, int ioprio);
1615 int (*task_getioprio) (struct task_struct *p);
1616 int (*task_setrlimit) (struct task_struct *p, unsigned int resource,
1618 int (*task_setscheduler) (struct task_struct *p);
1619 int (*task_getscheduler) (struct task_struct *p);
1620 int (*task_movememory) (struct task_struct *p);
1621 int (*task_kill) (struct task_struct *p,
1623 int (*task_wait) (struct task_struct *p);
1624 int (*task_prctl) (int option, unsigned long arg2,
1627 void (*task_to_inode) (struct task_struct *p, struct inode *inode);
1629 int (*ipc_permission) (struct kern_ipc_perm *ipcp, short flag);
1630 void (*ipc_getsecid) (struct kern_ipc_perm *ipcp, u32 *secid);
1632 int (*msg_msg_alloc_security) (struct msg_msg *msg);
1633 void (*msg_msg_free_security) (struct msg_msg *msg);
1635 int (*msg_queue_alloc_security) (struct msg_queue *msq);
1636 void (*msg_queue_free_security) (struct msg_queue *msq);
1637 int (*msg_queue_associate) (struct msg_queue *msq, int msqflg);
1638 int (*msg_queue_msgctl) (struct msg_queue *msq, int cmd);
1639 int (*msg_queue_msgsnd) (struct msg_queue *msq,
1641 int (*msg_queue_msgrcv) (struct msg_queue *msq,
1646 int (*shm_alloc_security) (struct shmid_kernel *shp);
1647 void (*shm_free_security) (struct shmid_kernel *shp);
1648 int (*shm_associate) (struct shmid_kernel *shp, int shmflg);
1649 int (*shm_shmctl) (struct shmid_kernel *shp, int cmd);
1650 int (*shm_shmat) (struct shmid_kernel *shp,
1653 int (*sem_alloc_security) (struct sem_array *sma);
1654 void (*sem_free_security) (struct sem_array *sma);
1655 int (*sem_associate) (struct sem_array *sma, int semflg);
1656 int (*sem_semctl) (struct sem_array *sma, int cmd);
1657 int (*sem_semop) (struct sem_array *sma,
1660 int (*netlink_send) (struct sock *sk, struct sk_buff *skb);
1662 void (*d_instantiate) (struct dentry *dentry, struct inode *inode);
1664 int (*getprocattr) (struct task_struct *p, char *name, char **value);
1665 int (*setprocattr) (struct task_struct *p, char *name, void *value, size_t size);
1666 int (*ismaclabel) (const char *name);
1667 int (*secid_to_secctx) (u32 secid, char **secdata, u32 *seclen);
1668 int (*secctx_to_secid) (const char *secdata, u32 seclen, u32 *secid);
1669 void (*release_secctx) (char *secdata, u32 seclen);
1671 int (*inode_notifysecctx)(struct inode *inode, void *ctx, u32 ctxlen);
1672 int (*inode_setsecctx)(struct dentry *dentry, void *ctx, u32 ctxlen);
1673 int (*inode_getsecctx)(struct inode *inode, void **ctx, u32 *ctxlen);
1676 int (*unix_stream_connect) (struct sock *sock, struct sock *other, struct sock *newsk);
1677 int (*unix_may_send) (struct socket *sock, struct socket *other);
1679 int (*socket_create) (int family, int type, int protocol, int kern);
1680 int (*socket_post_create) (struct socket *sock, int family,
1682 int (*socket_bind) (struct socket *sock,
1684 int (*socket_connect) (struct socket *sock,
1686 int (*socket_listen) (struct socket *sock, int backlog);
1687 int (*socket_accept) (struct socket *sock, struct socket *newsock);
1688 int (*socket_sendmsg) (struct socket *sock,
1690 int (*socket_recvmsg) (struct socket *sock,
1692 int (*socket_getsockname) (struct socket *sock);
1693 int (*socket_getpeername) (struct socket *sock);
1694 int (*socket_getsockopt) (struct socket *sock, int level, int optname);
1695 int (*socket_setsockopt) (struct socket *sock, int level, int optname);
1696 int (*socket_shutdown) (struct socket *sock, int how);
1697 int (*socket_sock_rcv_skb) (struct sock *sk, struct sk_buff *skb);
1698 …et_getpeersec_stream) (struct socket *sock, char __user *optval, int __user *optlen, unsigned len);
1699 int (*socket_getpeersec_dgram) (struct socket *sock, struct sk_buff *skb, u32 *secid);
1700 int (*sk_alloc_security) (struct sock *sk, int family, gfp_t priority);
1701 void (*sk_free_security) (struct sock *sk);
1702 void (*sk_clone_security) (const struct sock *sk, struct sock *newsk);
1703 void (*sk_getsecid) (struct sock *sk, u32 *secid);
1704 void (*sock_graft) (struct sock *sk, struct socket *parent);
1705 int (*inet_conn_request) (struct sock *sk, struct sk_buff *skb,
1707 void (*inet_csk_clone) (struct sock *newsk, const struct request_sock *req);
1708 void (*inet_conn_established) (struct sock *sk, struct sk_buff *skb);
1709 int (*secmark_relabel_packet) (u32 secid);
1710 void (*secmark_refcount_inc) (void);
1711 void (*secmark_refcount_dec) (void);
1712 void (*req_classify_flow) (const struct request_sock *req, struct flowi *fl);
1713 int (*tun_dev_alloc_security) (void **security);
1714 void (*tun_dev_free_security) (void *security);
1715 int (*tun_dev_create) (void);
1716 int (*tun_dev_attach_queue) (void *security);
1717 int (*tun_dev_attach) (struct sock *sk, void *security);
1718 int (*tun_dev_open) (void *security);
1722 int (*xfrm_policy_alloc_security) (struct xfrm_sec_ctx **ctxp,
1724 int (*xfrm_policy_clone_security) (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctx);
1725 void (*xfrm_policy_free_security) (struct xfrm_sec_ctx *ctx);
1726 int (*xfrm_policy_delete_security) (struct xfrm_sec_ctx *ctx);
1727 int (*xfrm_state_alloc) (struct xfrm_state *x,
1729 int (*xfrm_state_alloc_acquire) (struct xfrm_state *x,
1732 void (*xfrm_state_free_security) (struct xfrm_state *x);
1733 int (*xfrm_state_delete_security) (struct xfrm_state *x);
1734 int (*xfrm_policy_lookup) (struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir);
1735 int (*xfrm_state_pol_flow_match) (struct xfrm_state *x,
1738 int (*xfrm_decode_session) (struct sk_buff *skb, u32 *secid, int ckall);
1762 extern int security_module_enable(struct security_operations *ops); argument