id
stringlengths
4
63
text
stringlengths
153
8.81M
security_inode_remove_acl(9)
NAME security_inode_remove_acl - Check if removing a posix acl is allowed SYNOPSIS int security_inode_remove_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name ); ARGUMENTS idmap idmap of the mount dentry file acl_name acl name DESCRIPTION Check permission befor...
security_inode_removexattr(9)
NAME security_inode_removexattr - Check if removing an xattr is allowed SYNOPSIS int security_inode_removexattr (struct mnt_idmap *idmap , struct dentry *dentry , const char *name ); ARGUMENTS idmap idmap of the mount dentry file name xattr name DESCRIPTION This hook performs the de...
security_inode_rename(9)
NAME security_inode_rename - Check if renaming a file is allowed SYNOPSIS int security_inode_rename (struct inode *old_dir , struct dentry *old_dentry , struct inode *new_dir , struct dentry *new_dentry , unsigned int flags ); ARGUMENTS old_dir parent directory of the old file old_dentry the old file ...
security_inode_rmdir(9)
NAME security_inode_rmdir - Check if removing a directory is allowed SYNOPSIS int security_inode_rmdir (struct inode *dir , struct dentry *dentry ); ARGUMENTS dir parent directory dentry directory to be removed DESCRIPTION Check the permission to remove a directory. RETURN Returns 0 if permissi...
security_inode_set_acl(9)
NAME security_inode_set_acl - Check if setting posix acls is allowed SYNOPSIS int security_inode_set_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name , struct posix_acl *kacl ); ARGUMENTS idmap idmap of the mount dentry file acl_name acl name kacl ...
security_inode_setattr(9)
NAME security_inode_setattr - Check if setting file attributes is allowed SYNOPSIS int security_inode_setattr (struct mnt_idmap *idmap , struct dentry *dentry , struct iattr *attr ); ARGUMENTS idmap idmap of the mount dentry file attr new attributes DESCRIPTION Check permission bef...
security_inode_setintegrity(9)
NAME security_inode_setintegrity - Set the inode's integrity data SYNOPSIS int security_inode_setintegrity (const struct inode *inode , enum lsm_integrity_type type , const void *value , size_t size ); ARGUMENTS inode inode type type of integrity, e.g. hash digest, signature, etc value ...
security_inode_setsecctx(9)
NAME security_inode_setsecctx - Change the security label of an inode SYNOPSIS int security_inode_setsecctx (struct dentry *dentry , void *ctx , u32 ctxlen ); ARGUMENTS dentry inode ctx secctx ctxlen length of secctx DESCRIPTION Change the security context of an inode. Updates t...
security_inode_setsecurity(9)
NAME security_inode_setsecurity - Set the xattr security label of an inode SYNOPSIS int security_inode_setsecurity (struct inode *inode , const char *name , const void *value , size_t size , int flags ); ARGUMENTS inode inode name xattr name value security label size ...
security_inode_setxattr(9)
NAME security_inode_setxattr - Check if setting file xattrs is allowed SYNOPSIS int security_inode_setxattr (struct mnt_idmap *idmap , struct dentry *dentry , const char *name , const void *value , size_t size , int flags ); ARGUMENTS idmap idmap of the mount dentry file name xattr n...
security_inode_symlink(9)
NAME security_inode_symlink - Check if creating a symbolic link is allowed SYNOPSIS int security_inode_symlink (struct inode *dir , struct dentry *dentry , const char *old_name ); ARGUMENTS dir parent directory dentry symbolic link old_name existing filename DESCRIPTION Check the perm...
security_inode_unlink(9)
NAME security_inode_unlink - Check if removing a hard link is allowed SYNOPSIS int security_inode_unlink (struct inode *dir , struct dentry *dentry ); ARGUMENTS dir parent directory dentry file DESCRIPTION Check the permission to remove a hard link to a file. RETURN Returns 0 if permission is g...
security_ipc_getlsmprop(9)
NAME security_ipc_getlsmprop - Get the sysv ipc object LSM data SYNOPSIS void security_ipc_getlsmprop (struct kern_ipc_perm *ipcp , struct lsm_prop *prop ); ARGUMENTS ipcp ipc permission structure prop pointer to lsm information DESCRIPTION Get the lsm information associated with the ipc object...
security_ipc_permission(9)
NAME security_ipc_permission - Check if sysv ipc access is allowed SYNOPSIS int security_ipc_permission (struct kern_ipc_perm *ipcp , short flag ); ARGUMENTS ipcp ipc permission structure flag requested permissions DESCRIPTION Check permissions for access to IPC. RETURN Returns 0 if permission...
security_ismaclabel(9)
NAME security_ismaclabel - Check if the named attribute is a MAC label SYNOPSIS int security_ismaclabel (const char *name ); ARGUMENTS name full extended attribute name DESCRIPTION Check if the extended attribute specified by name represents a MAC label. RETURN Returns 1 if name is a MAC attribute otherwise ...
security_kernel_act_as(9)
NAME security_kernel_act_as - Set the kernel credentials to act as secid SYNOPSIS int security_kernel_act_as (struct cred *new , u32 secid ); ARGUMENTS new credentials secid secid DESCRIPTION Set the credentials for a kernel service to act as (subjective context). The current task must be the ...
security_kernel_create_files_as(9)
NAME security_kernel_create_files_as - Set file creation context using an inode SYNOPSIS int security_kernel_create_files_as (struct cred *new , struct inode *inode ); ARGUMENTS new target credentials inode reference inode DESCRIPTION Set the file creation context in a set of credentials to be ...
security_kernel_load_data(9)
NAME security_kernel_load_data - Load data provided by userspace SYNOPSIS int security_kernel_load_data (enum kernel_load_data_id id , bool contents ); ARGUMENTS id data identifier contents true if security_kernel_post_load_data will be called DESCRIPTION Load data provided by userspace. RETURN ...
security_kernel_module_request(9)
NAME security_kernel_module_request - Check if loading a module is allowed SYNOPSIS int security_kernel_module_request (char *kmod_name ); ARGUMENTS kmod_name module name DESCRIPTION Ability to trigger the kernel to automatically upcall to userspace for userspace to load a kernel module with the given name. RETUR...
security_kernel_post_load_data(9)
NAME security_kernel_post_load_data - Load userspace data from a non-file source SYNOPSIS int security_kernel_post_load_data (char *buf , loff_t size , enum kernel_load_data_id id , char *description ); ARGUMENTS buf data size size of data id data identifier description...
security_kernel_post_read_file(9)
NAME security_kernel_post_read_file - Read a file specified by userspace SYNOPSIS int security_kernel_post_read_file (struct file *file , char *buf , loff_t size , enum kernel_read_file_id id ); ARGUMENTS file file buf file contents size size of file contents id ...
security_kernel_read_file(9)
NAME security_kernel_read_file - Read a file specified by userspace SYNOPSIS int security_kernel_read_file (struct file *file , enum kernel_read_file_id id , bool contents ); ARGUMENTS file file id file identifier contents trust if security_kernel_post_read_file will be called DESC...
security_kernfs_init_security(9)
NAME security_kernfs_init_security - Init LSM context for a kernfs node SYNOPSIS int security_kernfs_init_security (struct kernfs_node *kn_dir , struct kernfs_node *kn ); ARGUMENTS kn_dir parent kernfs node kn the kernfs node to initialize DESCRIPTION Initialize the security context of a newly ...
security_key_alloc(9)
NAME security_key_alloc - Allocate and initialize a kernel key LSM blob SYNOPSIS int security_key_alloc (struct key *key , const struct cred *cred , unsigned long flags ); ARGUMENTS key key cred credentials flags allocation flags DESCRIPTION Permit allocation of a key and assign ...
security_key_free(9)
NAME security_key_free - Free a kernel key LSM blob SYNOPSIS void security_key_free (struct key *key ); ARGUMENTS key key DESCRIPTION Notification of destruction; free security data. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_alloc(9), lsm_inode_alloc...
security_key_getsecurity(9)
NAME security_key_getsecurity - Get the key's security label SYNOPSIS int security_key_getsecurity (struct key *key , char **buffer ); ARGUMENTS key key buffer security label buffer DESCRIPTION Get a textual representation of the security context attached to a key for the purposes of honouring K...
security_key_permission(9)
NAME security_key_permission - Check if a kernel key operation is allowed SYNOPSIS int security_key_permission (key_ref_t key_ref , const struct cred *cred , enum key_need_perm need_perm ); ARGUMENTS key_ref key reference cred credentials of actor requesting access need_perm requested per...
security_key_post_create_or_update(9)
NAME security_key_post_create_or_update - Notification of key create or update SYNOPSIS void security_key_post_create_or_update (struct key *keyring , struct key *key , const void *payload , size_t payload_len , unsigned long flags , bool create ); ARGUMENTS keyring keyring to which the key is linked to k...
security_load_policy(9)
NAME security_load_policy - Load a security policy configuration. SYNOPSIS int security_load_policy (void *data , size_t len , struct selinux_load_state *load_state ); ARGUMENTS data binary policy data len length of data in bytes load_state policy load state DESCRIPTION Load a new set...
security_locked_down(9)
NAME security_locked_down - Check if a kernel feature is allowed SYNOPSIS int security_locked_down (enum lockdown_reason what ); ARGUMENTS what requested kernel feature DESCRIPTION Determine whether a kernel feature that potentially enables arbitrary code execution in kernel space should be permitted. RETURN...
security_lsmprop_to_secctx(9)
NAME security_lsmprop_to_secctx - Convert a lsm_prop to a secctx SYNOPSIS int security_lsmprop_to_secctx (struct lsm_prop *prop , struct lsm_context *cp , int lsmid ); ARGUMENTS prop lsm specific information cp the LSM context lsmid which security module to report DESCRIPTION Co...
security_member_sid(9)
NAME security_member_sid - Compute the SID for member selection. SYNOPSIS int security_member_sid (u32 ssid , u32 tsid , u16 tclass , u32 *out_sid ); ARGUMENTS ssid source security identifier tsid target security identifier tclass target security class out_sid security i...
security_mmap_addr(9)
NAME security_mmap_addr - Check if mmap'ing an address is allowed SYNOPSIS int security_mmap_addr (unsigned long addr ); ARGUMENTS addr address DESCRIPTION Check permissions for a mmap operation at addr. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c lsm_file_all...
security_mmap_file(9)
NAME security_mmap_file - Check if mmap'ing a file is allowed SYNOPSIS int security_mmap_file (struct file *file , unsigned long prot , unsigned long flags ); ARGUMENTS file file prot protection applied by the kernel flags flags DESCRIPTION Check permissions for a mmap operation. ...
security_move_mount(9)
NAME security_move_mount - Check permissions for moving a mount SYNOPSIS int security_move_mount (const struct path *from_path , const struct path *to_path ); ARGUMENTS from_path source mount point to_path destination mount point DESCRIPTION Check permission before a mount is moved. RETURN Returns 0 i...
security_mptcp_add_subflow(9)
NAME security_mptcp_add_subflow - Inherit the LSM label from the MPTCP socket SYNOPSIS int security_mptcp_add_subflow (struct sock *sk , struct sock *ssk ); ARGUMENTS sk the owning MPTCP socket ssk the new subflow DESCRIPTION Update the labeling for the given MPTCP subflow, to match...
security_msg_msg_alloc(9)
NAME security_msg_msg_alloc - Allocate a sysv ipc message LSM blob SYNOPSIS int security_msg_msg_alloc (struct msg_msg *msg ); ARGUMENTS msg message structure DESCRIPTION Allocate and attach a security structure to the msg->security field. The security field is initialized to NULL when the structure is firs...
security_msg_msg_free(9)
NAME security_msg_msg_free - Free a sysv ipc message LSM blob SYNOPSIS void security_msg_msg_free (struct msg_msg *msg ); ARGUMENTS msg message structure DESCRIPTION Deallocate the security structure for this message. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), ...
security_msg_queue_alloc(9)
NAME security_msg_queue_alloc - Allocate a sysv ipc msg queue LSM blob SYNOPSIS int security_msg_queue_alloc (struct kern_ipc_perm *msq ); ARGUMENTS msq sysv ipc permission structure DESCRIPTION Allocate and attach a security structure to msg. The security field is initialized to NULL when the structure is f...
security_msg_queue_associate(9)
NAME security_msg_queue_associate - Check if a msg queue operation is allowed SYNOPSIS int security_msg_queue_associate (struct kern_ipc_perm *msq , int msqflg ); ARGUMENTS msq sysv ipc permission structure msqflg operation flags DESCRIPTION Check permission when a message queue is requested t...
security_msg_queue_free(9)
NAME security_msg_queue_free - Free a sysv ipc msg queue LSM blob SYNOPSIS void security_msg_queue_free (struct kern_ipc_perm *msq ); ARGUMENTS msq sysv ipc permission structure DESCRIPTION Deallocate security field perm->security for the message queue. SEE ALSO Kernel file ./security/security.c lsm_f...
security_msg_queue_msgctl(9)
NAME security_msg_queue_msgctl - Check if a msg queue operation is allowed SYNOPSIS int security_msg_queue_msgctl (struct kern_ipc_perm *msq , int cmd ); ARGUMENTS msq sysv ipc permission structure cmd operation DESCRIPTION Check permission when a message control operation specified by cmd is...
security_msg_queue_msgrcv(9)
NAME security_msg_queue_msgrcv - Check if receiving a sysv ipc msg is allowed SYNOPSIS int security_msg_queue_msgrcv (struct kern_ipc_perm *msq , struct msg_msg *msg , struct task_struct *target , long type , int mode ); ARGUMENTS msq sysv ipc permission structure msg message target ...
security_msg_queue_msgsnd(9)
NAME security_msg_queue_msgsnd - Check if sending a sysv ipc message is allowed SYNOPSIS int security_msg_queue_msgsnd (struct kern_ipc_perm *msq , struct msg_msg *msg , int msqflg ); ARGUMENTS msq sysv ipc permission structure msg message msqflg operation flags DESCRIPTION Check...
security_net_peersid_resolve(9)
NAME security_net_peersid_resolve - Compare and resolve two network peer SIDs SYNOPSIS int security_net_peersid_resolve (u32 nlbl_sid , u32 nlbl_type , u32 xfrm_sid , u32 *peer_sid ); ARGUMENTS nlbl_sid NetLabel SID nlbl_type NetLabel labeling protocol type xfrm_sid XFRM SID peer_sid ...
security_netif_sid(9)
NAME security_netif_sid - Obtain the SID for a network interface. SYNOPSIS int security_netif_sid (const char *name , u32 *if_sid ); ARGUMENTS name interface name if_sid interface SID SEE ALSO Kernel file ./security/selinux/ss/services.c security_compute_av(9), security_sid_to_context(9), ...
security_netlbl_cache_add(9)
NAME security_netlbl_cache_add - Add an entry to the NetLabel cache SYNOPSIS void security_netlbl_cache_add (struct netlbl_lsm_secattr *secattr , u32 sid ); ARGUMENTS secattr the NetLabel packet security attributes sid the SELinux SID DESCRIPTION Attempt to cache the context in ctx, which was der...
security_netlbl_secattr_to_sid(9)
NAME security_netlbl_secattr_to_sid - Convert a NetLabel secattr to a SELinux SID SYNOPSIS int security_netlbl_secattr_to_sid (struct netlbl_lsm_secattr *secattr , u32 *sid ); ARGUMENTS secattr the NetLabel packet security attributes sid the SELinux SID DESCRIPTION Convert the given NetLabel sec...
security_netlbl_sid_to_secattr(9)
NAME security_netlbl_sid_to_secattr - Convert a SELinux SID to a NetLabel secattr SYNOPSIS int security_netlbl_sid_to_secattr (u32 sid , struct netlbl_lsm_secattr *secattr ); ARGUMENTS sid the SELinux SID secattr the NetLabel packet security attributes DESCRIPTION Convert the given SELinux SID in...
security_netlink_send(9)
NAME security_netlink_send - Save info and check if netlink sending is allowed SYNOPSIS int security_netlink_send (struct sock *sk , struct sk_buff *skb ); ARGUMENTS sk sending socket skb netlink message DESCRIPTION Save security information for a netlink message so that permission checki...
security_node_sid(9)
NAME security_node_sid - Obtain the SID for a node (host). SYNOPSIS int security_node_sid (u16 domain , const void *addrp , u32 addrlen , u32 *out_sid ); ARGUMENTS domain communication domain aka address family addrp address addrlen address length in bytes out_sid security i...
security_path_chmod(9)
NAME security_path_chmod - Check if changing the file's mode is allowed SYNOPSIS int security_path_chmod (const struct path *path , umode_t mode ); ARGUMENTS path file mode new mode DESCRIPTION Check for permission to change a mode of the file path. The new mode is specified in mode which is a ...
security_path_chown(9)
NAME security_path_chown - Check if changing the file's owner/group is allowed SYNOPSIS int security_path_chown (const struct path *path , kuid_t uid , kgid_t gid ); ARGUMENTS path file uid file owner gid file group DESCRIPTION Check for permission to change owner/group of a fi...
security_path_chroot(9)
NAME security_path_chroot - Check if changing the root directory is allowed SYNOPSIS int security_path_chroot (const struct path *path ); ARGUMENTS path directory DESCRIPTION Check for permission to change root directory. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/securit...
security_path_link(9)
NAME security_path_link - Check if creating a hard link is allowed SYNOPSIS int security_path_link (struct dentry *old_dentry , const struct path *new_dir , struct dentry *new_dentry ); ARGUMENTS old_dentry existing file new_dir new parent directory new_dentry new link DESCRIPTION Check permiss...
security_path_mkdir(9)
NAME security_path_mkdir - Check if creating a new directory is allowed SYNOPSIS int security_path_mkdir (const struct path *dir , struct dentry *dentry , umode_t mode ); ARGUMENTS dir parent directory dentry new directory mode new directory mode DESCRIPTION Check permissions to c...
security_path_mknod(9)
NAME security_path_mknod - Check if creating a special file is allowed SYNOPSIS int security_path_mknod (const struct path *dir , struct dentry *dentry , umode_t mode , unsigned int dev ); ARGUMENTS dir parent directory dentry new file mode new file mode dev device ...
security_path_notify(9)
NAME security_path_notify - Check if setting a watch is allowed SYNOPSIS int security_path_notify (const struct path *path , u64 mask , unsigned int obj_type ); ARGUMENTS path file path mask event mask obj_type file path type DESCRIPTION Check permissions before setting a watch on ev...
security_path_post_mknod(9)
NAME security_path_post_mknod - Update inode security after reg file creation SYNOPSIS void security_path_post_mknod (struct mnt_idmap *idmap , struct dentry *dentry ); ARGUMENTS idmap idmap of the mount dentry new file DESCRIPTION Update inode security field after a regular file has been created....
security_path_rename(9)
NAME security_path_rename - Check if renaming a file is allowed SYNOPSIS int security_path_rename (const struct path *old_dir , struct dentry *old_dentry , const struct path *new_dir , struct dentry *new_dentry , unsigned int flags ); ARGUMENTS old_dir parent directory of the old file old_dentry the old ...
security_path_rmdir(9)
NAME security_path_rmdir - Check if removing a directory is allowed SYNOPSIS int security_path_rmdir (const struct path *dir , struct dentry *dentry ); ARGUMENTS dir parent directory dentry directory to remove DESCRIPTION Check the permission to remove a directory. RETURN Returns 0 if permissio...
security_path_symlink(9)
NAME security_path_symlink - Check if creating a symbolic link is allowed SYNOPSIS int security_path_symlink (const struct path *dir , struct dentry *dentry , const char *old_name ); ARGUMENTS dir parent directory dentry symbolic link old_name file pathname DESCRIPTION Check the permi...
security_path_truncate(9)
NAME security_path_truncate - Check if truncating a file is allowed SYNOPSIS int security_path_truncate (const struct path *path ); ARGUMENTS path file DESCRIPTION Check permission before truncating the file indicated by path. Note that truncation permissions may also be checked based on already opened files...
security_path_unlink(9)
NAME security_path_unlink - Check if removing a hard link is allowed SYNOPSIS int security_path_unlink (const struct path *dir , struct dentry *dentry ); ARGUMENTS dir parent directory dentry file DESCRIPTION Check the permission to remove a hard link to a file. RETURN Returns 0 if permission i...
security_perf_event_alloc(9)
NAME security_perf_event_alloc - Allocate a perf event LSM blob SYNOPSIS int security_perf_event_alloc (struct perf_event *event ); ARGUMENTS event perf event DESCRIPTION Allocate and save perf_event security info. RETURN Returns 0 on success, error on failure. SEE ALSO Kernel file ./security/security.c ...
security_perf_event_free(9)
NAME security_perf_event_free - Free a perf event LSM blob SYNOPSIS void security_perf_event_free (struct perf_event *event ); ARGUMENTS event perf event DESCRIPTION Release (free) perf_event security info. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_allo...
security_perf_event_open(9)
NAME security_perf_event_open - Check if a perf event open is allowed SYNOPSIS int security_perf_event_open (int type ); ARGUMENTS type type of event DESCRIPTION Check whether the type of perf_event_open syscall is allowed. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/secur...
security_perf_event_read(9)
NAME security_perf_event_read - Check if reading a perf event label is allowed SYNOPSIS int security_perf_event_read (struct perf_event *event ); ARGUMENTS event perf event DESCRIPTION Read perf_event security info if allowed. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/sec...
security_perf_event_write(9)
NAME security_perf_event_write - Check if writing a perf event label is allowed SYNOPSIS int security_perf_event_write (struct perf_event *event ); ARGUMENTS event perf event DESCRIPTION Write perf_event security info if allowed. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/...
security_policycap_supported(9)
NAME security_policycap_supported - Check for a specific policy capability SYNOPSIS int security_policycap_supported (unsigned int req_cap ); ARGUMENTS req_cap capability DESCRIPTION This function queries the currently loaded policy to see if it supports the capability specified by req_cap. Returns true (1) if ...
security_port_sid(9)
NAME security_port_sid - Obtain the SID for a port. SYNOPSIS int security_port_sid (u8 protocol , u16 port , u32 *out_sid ); ARGUMENTS protocol protocol number port port number out_sid security identifier SEE ALSO Kernel file ./security/selinux/ss/services.c security_compute_av(9),...
security_post_notification(9)
NAME security_post_notification - Check if a watch notification can be posted SYNOPSIS int security_post_notification (const struct cred *w_cred , const struct cred *cred , struct watch_notification *n ); ARGUMENTS w_cred credentials of the task that set the watch cred credentials of the task whic...
security_prepare_creds(9)
NAME security_prepare_creds - Prepare a new set of credentials SYNOPSIS int security_prepare_creds (struct cred *new , const struct cred *old , gfp_t gfp ); ARGUMENTS new new credentials old original credentials gfp gfp flags DESCRIPTION Prepare a new set of credentials by cop...
security_ptrace_access_check(9)
NAME security_ptrace_access_check - Check if tracing is allowed SYNOPSIS int security_ptrace_access_check (struct task_struct *child , unsigned int mode ); ARGUMENTS child target process mode PTRACE_MODE flags DESCRIPTION Check permission before allowing the current process to trace the chi...
security_ptrace_traceme(9)
NAME security_ptrace_traceme - Check if tracing is allowed SYNOPSIS int security_ptrace_traceme (struct task_struct *parent ); ARGUMENTS parent tracing process DESCRIPTION Check that the parent process has sufficient permission to trace the current process before allowing the current process to present itself t...
security_quota_on(9)
NAME security_quota_on - Check if QUOTAON is allowed for a dentry SYNOPSIS int security_quota_on (struct dentry *dentry ); ARGUMENTS dentry dentry DESCRIPTION Check whether QUOTAON is allowed for dentry. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c lsm_file_alloc...
security_quotactl(9)
NAME security_quotactl - Check if a quotactl() syscall is allowed for this fs SYNOPSIS int security_quotactl (int cmds , int type , int id , const struct super_block *sb ); ARGUMENTS cmds commands type type id id sb filesystem DESCRIPTION Check whether the quot...
security_read_policy(9)
NAME security_read_policy - read the policy. SYNOPSIS int security_read_policy (void **data , size_t *len ); ARGUMENTS data binary policy data len length of data in bytes SEE ALSO Kernel file ./security/selinux/ss/services.c security_compute_av(9), security_sid_to_context(9), security_s...
security_read_state_kernel(9)
NAME security_read_state_kernel - read the policy. SYNOPSIS int security_read_state_kernel (void **data , size_t *len ); ARGUMENTS data binary policy data len length of data in bytes DESCRIPTION Allocates kernel memory for reading SELinux policy. This function is for internal use only and sho...
security_release_secctx(9)
NAME security_release_secctx - Free a secctx buffer SYNOPSIS void security_release_secctx (struct lsm_context *cp ); ARGUMENTS cp the security context DESCRIPTION Release the security context. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_alloc(9), lsm_...
security_req_classify_flow(9)
NAME security_req_classify_flow - Set a flow's secid based on request_sock SYNOPSIS void security_req_classify_flow (const struct request_sock *req , struct flowi_common *flic ); ARGUMENTS req request_sock flic target flow DESCRIPTION Sets flic's secid to req's secid. SEE ALSO Kernel file ...
security_sb_alloc(9)
NAME security_sb_alloc - Allocate a super_block LSM blob SYNOPSIS int security_sb_alloc (struct super_block *sb ); ARGUMENTS sb filesystem superblock DESCRIPTION Allocate and attach a security structure to the sb->s_security field. The s_security field is initialized to NULL when the structure is allocated...
security_sb_clone_mnt_opts(9)
NAME security_sb_clone_mnt_opts - Duplicate superblock mount options SYNOPSIS int security_sb_clone_mnt_opts (const struct super_block *oldsb , struct super_block *newsb , unsigned long kern_flags , unsigned long *set_kern_flags ); ARGUMENTS oldsb source superblock newsb destination superblock ...
security_sb_delete(9)
NAME security_sb_delete - Release super_block LSM associated objects SYNOPSIS void security_sb_delete (struct super_block *sb ); ARGUMENTS sb filesystem superblock DESCRIPTION Release objects tied to a superblock (e.g. inodes). sb contains the super_block structure being released. SEE ALSO Kernel file ...
security_sb_eat_lsm_opts(9)
NAME security_sb_eat_lsm_opts - Consume LSM mount options SYNOPSIS int security_sb_eat_lsm_opts (char *options , void **mnt_opts ); ARGUMENTS options mount options mnt_opts LSM processed mount options DESCRIPTION Eat (scan options) and save them in mnt_opts. RETURN Returns 0 on success, negative valu...
security_sb_free(9)
NAME security_sb_free - Free a super_block LSM blob SYNOPSIS void security_sb_free (struct super_block *sb ); ARGUMENTS sb filesystem superblock DESCRIPTION Deallocate and clear the sb->s_security field. sb contains the super_block structure to be modified. SEE ALSO Kernel file ./security/security.c ...
security_sb_kern_mount(9)
NAME security_sb_kern_mount - Check if a kernel mount is allowed SYNOPSIS int security_sb_kern_mount (const struct super_block *sb ); ARGUMENTS sb filesystem superblock DESCRIPTION Mount this sb if allowed by permissions. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/secur...
security_sb_mnt_opts_compat(9)
NAME security_sb_mnt_opts_compat - Check if new mount options are allowed SYNOPSIS int security_sb_mnt_opts_compat (struct super_block *sb , void *mnt_opts ); ARGUMENTS sb filesystem superblock mnt_opts new mount options DESCRIPTION Determine if the new mount options in mnt_opts are allowed given...
security_sb_mount(9)
NAME security_sb_mount - Check permission for mounting a filesystem SYNOPSIS int security_sb_mount (const char *dev_name , const struct path *path , const char *type , unsigned long flags , void *data ); ARGUMENTS dev_name filesystem backing device path mount point type filesystem typ...
security_sb_pivotroot(9)
NAME security_sb_pivotroot - Check permissions for pivoting the rootfs SYNOPSIS int security_sb_pivotroot (const struct path *old_path , const struct path *new_path ); ARGUMENTS old_path new location for current rootfs new_path location of the new rootfs DESCRIPTION Check permission before pivoting the...
security_sb_remount(9)
NAME security_sb_remount - Verify no incompatible mount changes during remount SYNOPSIS int security_sb_remount (struct super_block *sb , void *mnt_opts ); ARGUMENTS sb filesystem superblock mnt_opts (re)mount options DESCRIPTION Extracts security system specific mount options and verifies no cha...
security_sb_set_mnt_opts(9)
NAME security_sb_set_mnt_opts - Set the mount options for a filesystem SYNOPSIS int security_sb_set_mnt_opts (struct super_block *sb , void *mnt_opts , unsigned long kern_flags , unsigned long *set_kern_flags ); ARGUMENTS sb filesystem superblock mnt_opts binary mount options kern_flags k...
security_sb_show_options(9)
NAME security_sb_show_options - Output the mount options for a superblock SYNOPSIS int security_sb_show_options (struct seq_file *m , struct super_block *sb ); ARGUMENTS m output file sb filesystem superblock DESCRIPTION Show (print on m) mount options for this sb. RETURN Returns 0 on suc...
security_sb_statfs(9)
NAME security_sb_statfs - Check if accessing fs stats is allowed SYNOPSIS int security_sb_statfs (struct dentry *dentry ); ARGUMENTS dentry superblock handle DESCRIPTION Check permission before obtaining filesystem statistics for the mnt mountpoint. dentry is a handle on the superblock for the filesystem. RET...
security_sb_umount(9)
NAME security_sb_umount - Check permission for unmounting a filesystem SYNOPSIS int security_sb_umount (struct vfsmount *mnt , int flags ); ARGUMENTS mnt mounted filesystem flags unmount flags DESCRIPTION Check permission before the mnt file system is unmounted. RETURN Returns 0 if permission ...
security_sctp_assoc_established(9)
NAME security_sctp_assoc_established - Update LSM state when assoc established SYNOPSIS int security_sctp_assoc_established (struct sctp_association *asoc , struct sk_buff *skb ); ARGUMENTS asoc SCTP association skb packet establishing the association DESCRIPTION Passes the asoc and chunk->skb...
security_sctp_assoc_request(9)
NAME security_sctp_assoc_request - Update the LSM on a SCTP association req SYNOPSIS int security_sctp_assoc_request (struct sctp_association *asoc , struct sk_buff *skb ); ARGUMENTS asoc SCTP association skb packet requesting the association DESCRIPTION Passes the asoc and chunk->skb of the a...
security_sctp_bind_connect(9)
NAME security_sctp_bind_connect - Validate a list of addrs for a SCTP option SYNOPSIS int security_sctp_bind_connect (struct sock *sk , int optname , struct sockaddr *address , int addrlen ); ARGUMENTS sk socket optname SCTP option to validate address list of IP addresses to validate ...
security_sctp_sk_clone(9)
NAME security_sctp_sk_clone - Clone a SCTP sock's LSM state SYNOPSIS void security_sctp_sk_clone (struct sctp_association *asoc , struct sock *sk , struct sock *newsk ); ARGUMENTS asoc SCTP association sk original sock newsk target sock DESCRIPTION Called whenever a new socket i...
security_secctx_to_secid(9)
NAME security_secctx_to_secid - Convert a secctx to a secid SYNOPSIS int security_secctx_to_secid (const char *secdata , u32 seclen , u32 *secid ); ARGUMENTS secdata secctx seclen length of secctx secid secid DESCRIPTION Convert security context to secid. RETURN Returns 0 on success, ...