id
stringlengths
4
63
text
stringlengths
153
8.81M
security_bpf_token_capable(9)
NAME security_bpf_token_capable - Check if BPF token is allowed to delegate requested BPF-related capability SYNOPSIS int security_bpf_token_capable (const struct bpf_token *token , int cap ); ARGUMENTS token BPF token object cap capabilities requested to be delegated by BPF token DESCRIPTION D...
security_bpf_token_cmd(9)
NAME security_bpf_token_cmd - Check if BPF token is allowed to delegate requested BPF syscall command SYNOPSIS int security_bpf_token_cmd (const struct bpf_token *token , enum bpf_cmd cmd ); ARGUMENTS token BPF token object cmd BPF syscall command requested to be delegated by BPF token DESCRIPT...
security_bpf_token_create(9)
NAME security_bpf_token_create - Check if creating of BPF token is allowed SYNOPSIS int security_bpf_token_create (struct bpf_token *token , union bpf_attr *attr , const struct path *path ); ARGUMENTS token BPF token object attr BPF syscall attributes used to create BPF token path ...
security_bpf_token_free(9)
NAME security_bpf_token_free - Free a BPF token's LSM blob SYNOPSIS void security_bpf_token_free (struct bpf_token *token ); ARGUMENTS token BPF token struct DESCRIPTION Clean up the security information stored inside BPF token. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_al...
security_bprm_check(9)
NAME security_bprm_check - Mediate binary handler search SYNOPSIS int security_bprm_check (struct linux_binprm *bprm ); ARGUMENTS bprm binary program information DESCRIPTION This hook mediates the point when a search for a binary handler will begin. It allows a check against the bprm->cred->security value...
security_bprm_committed_creds(9)
NAME security_bprm_committed_creds - Tidy up after cred install during exec() SYNOPSIS void security_bprm_committed_creds (const struct linux_binprm *bprm ); ARGUMENTS bprm binary program information DESCRIPTION Tidy up after the installation of the new security attributes of a process being transformed by...
security_bprm_committing_creds(9)
NAME security_bprm_committing_creds - Install creds for a process during exec() SYNOPSIS void security_bprm_committing_creds (const struct linux_binprm *bprm ); ARGUMENTS bprm binary program information DESCRIPTION Prepare to install the new security attributes of a process being transformed by a...
security_bprm_creds_for_exec(9)
NAME security_bprm_creds_for_exec - Prepare the credentials for exec() SYNOPSIS int security_bprm_creds_for_exec (struct linux_binprm *bprm ); ARGUMENTS bprm binary program information DESCRIPTION If the setup in prepare_exec_creds did not setup bprm->cred->security properly for executing bprm->file, update t...
security_bprm_creds_from_file(9)
NAME security_bprm_creds_from_file - Update linux_binprm creds based on file SYNOPSIS int security_bprm_creds_from_file (struct linux_binprm *bprm , const struct file *file ); ARGUMENTS bprm binary program information file associated file DESCRIPTION If file is setpcap, suid, sgid or otherwis...
security_capable(9)
NAME security_capable - Check if a process has the necessary capability SYNOPSIS int security_capable (const struct cred *cred , struct user_namespace *ns , int cap , unsigned int opts ); ARGUMENTS cred credentials to examine ns user namespace cap capability requested o...
security_capget(9)
NAME security_capget - Get the capability sets for a process SYNOPSIS int security_capget (const struct task_struct *target , kernel_cap_t *effective , kernel_cap_t *inheritable , kernel_cap_t *permitted ); ARGUMENTS target target process effective effective capability set inheritable inheritab...
security_capset(9)
NAME security_capset - Set the capability sets for a process SYNOPSIS int security_capset (struct cred *new , const struct cred *old , const kernel_cap_t *effective , const kernel_cap_t *inheritable , const kernel_cap_t *permitted ); ARGUMENTS new new credentials for the target process old cur...
security_change_sid(9)
NAME security_change_sid - Compute the SID for object relabeling. SYNOPSIS int security_change_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 ...
security_compute_av(9)
NAME security_compute_av - Compute access vector decisions. SYNOPSIS void security_compute_av (u32 ssid , u32 tsid , u16 orig_tclass , struct av_decision *avd , struct extended_perms *xperms ); ARGUMENTS ssid source security identifier tsid target security identifier orig_tclass target s...
security_context_to_sid(9)
NAME security_context_to_sid - Obtain a SID for a given security context. SYNOPSIS int security_context_to_sid (const char *scontext , u32 scontext_len , u32 *sid , gfp_t gfp ); ARGUMENTS scontext security context scontext_len length in bytes sid security identifier, SID ...
security_context_to_sid_default(9)
NAME security_context_to_sid_default - Obtain a SID for a given security context, falling back to specified default if needed. SYNOPSIS int security_context_to_sid_default (const char *scontext , u32 scontext_len , u32 *sid , u32 def_sid , gfp_t gfp_flags ); ARGUMENTS scontext security context scontext_len...
security_create_user_ns(9)
NAME security_create_user_ns - Check if creating a new userns is allowed SYNOPSIS int security_create_user_ns (const struct cred *cred ); ARGUMENTS cred prepared creds DESCRIPTION Check permission prior to creating a new user namespace. RETURN Returns 0 if successful, otherwise < 0 error code. SEE ALSO Kern...
security_cred_alloc_blank(9)
NAME security_cred_alloc_blank - Allocate the min memory to allow cred_transfer SYNOPSIS int security_cred_alloc_blank (struct cred *cred , gfp_t gfp ); ARGUMENTS cred credentials gfp gfp flags DESCRIPTION Only allocate sufficient memory and attach to cred such that cred_transfer will not get ...
security_cred_free(9)
NAME security_cred_free - Free the cred's LSM blob and associated resources SYNOPSIS void security_cred_free (struct cred *cred ); ARGUMENTS cred credentials DESCRIPTION Deallocate and clear the cred->security field in a set of credentials. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), ...
security_cred_getlsmprop(9)
NAME security_cred_getlsmprop - Get the LSM data from a set of credentials SYNOPSIS void security_cred_getlsmprop (const struct cred *c , struct lsm_prop *prop ); ARGUMENTS c credentials prop destination for the LSM data DESCRIPTION Retrieve the security data of the cred structure c. In cas...
security_cred_getsecid(9)
NAME security_cred_getsecid - Get the secid from a set of credentials SYNOPSIS void security_cred_getsecid (const struct cred *c , u32 *secid ); ARGUMENTS c credentials secid secid value DESCRIPTION Retrieve the security identifier of the cred structure c. In case of failure, secid will be s...
security_current_getlsmprop_subj(9)
NAME security_current_getlsmprop_subj - Current task's subjective LSM data SYNOPSIS void security_current_getlsmprop_subj (struct lsm_prop *prop ); ARGUMENTS prop lsm specific information DESCRIPTION Retrieve the subjective security identifier of the current task and return it in prop. SEE ALSO Kernel file...
security_d_instantiate(9)
NAME security_d_instantiate - Populate an inode's LSM state based on a dentry SYNOPSIS void security_d_instantiate (struct dentry *dentry , struct inode *inode ); ARGUMENTS dentry dentry inode inode DESCRIPTION Fill in inode security information for a dentry if allowed. SEE ALSO Kernel file ....
security_dentry_create_files_as(9)
NAME security_dentry_create_files_as - Perform dentry initialization SYNOPSIS int security_dentry_create_files_as (struct dentry *dentry , int mode , const struct qstr *name , const struct cred *old , struct cred *new ); ARGUMENTS dentry the dentry to initialize mode mode used to determine resourc...
security_dentry_init_security(9)
NAME security_dentry_init_security - Perform dentry initialization SYNOPSIS int security_dentry_init_security (struct dentry *dentry , int mode , const struct qstr *name , const char **xattr_name , struct lsm_context *lsmctx ); ARGUMENTS dentry the dentry to initialize mode mode used to determine ...
security_file_alloc(9)
NAME security_file_alloc - Allocate and init a file's LSM blob SYNOPSIS int security_file_alloc (struct file *file ); ARGUMENTS file the file DESCRIPTION Allocate and attach a security structure to the file->f_security field. The security field is initialized to NULL when the structure is first created. RET...
security_file_fcntl(9)
NAME security_file_fcntl - Check if fcntl() op is allowed SYNOPSIS int security_file_fcntl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file file cmd fcntl command arg command argument DESCRIPTION Check permission before allowing the file operation spe...
security_file_free(9)
NAME security_file_free - Free a file's LSM blob SYNOPSIS void security_file_free (struct file *file ); ARGUMENTS file the file DESCRIPTION Deallocate and free any security structures stored in file->f_security. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cre...
security_file_ioctl(9)
NAME security_file_ioctl - Check if an ioctl is allowed SYNOPSIS int security_file_ioctl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file associated file cmd ioctl cmd arg ioctl arguments DESCRIPTION Check permission for an ioctl operation on file....
security_file_ioctl_compat(9)
NAME security_file_ioctl_compat - Check if an ioctl is allowed in compat mode SYNOPSIS int security_file_ioctl_compat (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file associated file cmd ioctl cmd arg ioctl arguments DESCRIPTION Compat version of secu...
security_file_lock(9)
NAME security_file_lock - Check if a file lock is allowed SYNOPSIS int security_file_lock (struct file *file , unsigned int cmd ); ARGUMENTS file file cmd lock operation (e.g. F_RDLCK, F_WRLCK) DESCRIPTION Check permission before performing file locking operations. Note the hook mediates both...
security_file_mprotect(9)
NAME security_file_mprotect - Check if changing memory protections is allowed SYNOPSIS int security_file_mprotect (struct vm_area_struct *vma , unsigned long reqprot , unsigned long prot ); ARGUMENTS vma memory region reqprot application requested protection prot protection applied ...
security_file_open(9)
NAME security_file_open - Save open() time state for late use by the LSM SYNOPSIS int security_file_open (struct file *file ); ARGUMENTS file DESCRIPTION Save open-time permission checking state for later use upon file_permission, and recheck access if anything has changed since inode_permission. We can check if a ...
security_file_permission(9)
NAME security_file_permission - Check file permissions SYNOPSIS int security_file_permission (struct file *file , int mask ); ARGUMENTS file file mask requested permissions DESCRIPTION Check file permissions before accessing an open file. This hook is called by various operations that read o...
security_file_post_open(9)
NAME security_file_post_open - Evaluate a file after it has been opened SYNOPSIS int security_file_post_open (struct file *file , int mask ); ARGUMENTS file the file mask access mask DESCRIPTION Evaluate an opened file and the access mask requested with open. The hook is useful for LSMs that re...
security_file_receive(9)
NAME security_file_receive - Check if receiving a file via IPC is allowed SYNOPSIS int security_file_receive (struct file *file ); ARGUMENTS file file being received DESCRIPTION This hook allows security modules to control the ability of a process to receive an open file descriptor via socket IPC. RETURN Ret...
security_file_release(9)
NAME security_file_release - Perform actions before releasing the file ref SYNOPSIS void security_file_release (struct file *file ); ARGUMENTS file the file DESCRIPTION Perform actions before releasing the last reference to a file. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_al...
security_file_send_sigiotask(9)
NAME security_file_send_sigiotask - Check if sending SIGIO/SIGURG is allowed SYNOPSIS int security_file_send_sigiotask (struct task_struct *tsk , struct fown_struct *fown , int sig ); ARGUMENTS tsk target task fown signal sender sig signal to be sent, SIGIO is sent if 0 DESCRIP...
security_file_set_fowner(9)
NAME security_file_set_fowner - Set the file owner info in the LSM blob SYNOPSIS void security_file_set_fowner (struct file *file ); ARGUMENTS file the file DESCRIPTION Save owner security information (typically from current->security) in file->f_security for later use by the send_sigiotask hook. This hook i...
security_file_truncate(9)
NAME security_file_truncate - Check if truncating a file is allowed SYNOPSIS int security_file_truncate (struct file *file ); ARGUMENTS file file DESCRIPTION Check permission before truncating a file, i.e. using ftruncate. Note that truncation permission may also be checked based on the path, using the path_...
security_free_mnt_opts(9)
NAME security_free_mnt_opts - Free memory associated with mount options SYNOPSIS void security_free_mnt_opts (void **mnt_opts ); ARGUMENTS mnt_opts LSM processed mount options DESCRIPTION Free memory associated with mnt_ops. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9),...
security_fs_context_dup(9)
NAME security_fs_context_dup - Duplicate a fs_context LSM blob SYNOPSIS int security_fs_context_dup (struct fs_context *fc , struct fs_context *src_fc ); ARGUMENTS fc destination filesystem context src_fc source filesystem context DESCRIPTION Allocate and attach a security structure to sc->secu...
security_fs_context_parse_param(9)
NAME security_fs_context_parse_param - Configure a filesystem context SYNOPSIS int security_fs_context_parse_param (struct fs_context *fc , struct fs_parameter *param ); ARGUMENTS fc filesystem context param filesystem parameter DESCRIPTION Userspace provided a parameter to configure a superbl...
security_fs_context_submount(9)
NAME security_fs_context_submount - Initialise fc->security SYNOPSIS int security_fs_context_submount (struct fs_context *fc , struct super_block *reference ); ARGUMENTS fc new filesystem context reference dentry reference for submount/remount DESCRIPTION Fill out the ->security field for a new fs...
security_fs_use(9)
NAME security_fs_use - Determine how to handle labeling for a filesystem. SYNOPSIS int security_fs_use (struct super_block *sb ); ARGUMENTS sb superblock in question SEE ALSO Kernel file ./security/selinux/ss/services.c security_compute_av(9), security_sid_to_context(9), security_sid_to_context_inval...
security_genfs_sid(9)
NAME security_genfs_sid - Obtain a SID for a file in a filesystem SYNOPSIS int security_genfs_sid (const char *fstype , const char *path , u16 orig_sclass , u32 *sid ); ARGUMENTS fstype filesystem type path path from root of mount orig_sclass file security class sid SID for...
security_get_user_sids(9)
NAME security_get_user_sids - Obtain reachable SIDs for a user. SYNOPSIS int security_get_user_sids (u32 fromsid , const char *username , u32 **sids , u32 *nel ); ARGUMENTS fromsid starting SID username username sids array of reachable SIDs for user nel number of elements...
security_getprocattr(9)
NAME security_getprocattr - Read an attribute for a task SYNOPSIS int security_getprocattr (struct task_struct *p , int lsmid , const char *name , char **value ); ARGUMENTS p the task lsmid LSM identification name attribute name value attribute value DESCRIPTION R...
security_getselfattr(9)
NAME security_getselfattr - Read an LSM attribute of the current process. SYNOPSIS int security_getselfattr (unsigned int attr , struct lsm_ctx __user *uctx , u32 __user *size , u32 flags ); ARGUMENTS attr which attribute to return uctx the user-space destination for the information, or NULL ...
security_ib_alloc_security(9)
NAME security_ib_alloc_security - Allocate an Infiniband LSM blob SYNOPSIS int security_ib_alloc_security (void **sec ); ARGUMENTS sec LSM blob DESCRIPTION Allocate a security structure for Infiniband objects. RETURN Returns 0 on success, non-zero on failure. SEE ALSO Kernel file ./security/security.c ...
security_ib_endport_manage_subnet(9)
NAME security_ib_endport_manage_subnet - Check if SMPs traffic is allowed SYNOPSIS int security_ib_endport_manage_subnet (void *sec , const char *dev_name , u8 port_num ); ARGUMENTS sec LSM blob dev_name IB device name port_num port number DESCRIPTION Check permissions to send and recei...
security_ib_endport_sid(9)
NAME security_ib_endport_sid - Obtain the SID for a subnet management interface. SYNOPSIS int security_ib_endport_sid (const char *dev_name , u8 port_num , u32 *out_sid ); ARGUMENTS dev_name device name port_num port number out_sid security identifier SEE ALSO Kernel file ./security/selinux...
security_ib_free_security(9)
NAME security_ib_free_security - Free an Infiniband LSM blob SYNOPSIS void security_ib_free_security (void *sec ); ARGUMENTS sec LSM blob DESCRIPTION Deallocate an Infiniband security structure. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_alloc(9), lsm...
security_ib_pkey_access(9)
NAME security_ib_pkey_access - Check if access to an IB pkey is allowed SYNOPSIS int security_ib_pkey_access (void *sec , u64 subnet_prefix , u16 pkey ); ARGUMENTS sec LSM blob subnet_prefix subnet prefix of the port pkey IB pkey DESCRIPTION Check permission to acces...
security_ib_pkey_sid(9)
NAME security_ib_pkey_sid - Obtain the SID for a pkey. SYNOPSIS int security_ib_pkey_sid (u64 subnet_prefix , u16 pkey_num , u32 *out_sid ); ARGUMENTS subnet_prefix Subnet Prefix pkey_num pkey number out_sid security identifier SEE ALSO Kernel file ./security/selinux/ss/services.c securit...
security_inet_conn_established(9)
NAME security_inet_conn_established - Update sock's LSM state with connection SYNOPSIS void security_inet_conn_established (struct sock *sk , struct sk_buff *skb ); ARGUMENTS sk sock skb connection packet DESCRIPTION Update sock's LSM state to represent a new connection from skb. SEE ALSO K...
security_inet_conn_request(9)
NAME security_inet_conn_request - Set request_sock state using incoming connect SYNOPSIS int security_inet_conn_request (const struct sock *sk , struct sk_buff *skb , struct request_sock *req ); ARGUMENTS sk parent listening sock skb incoming connection req new request_sock D...
security_inet_csk_clone(9)
NAME security_inet_csk_clone - Set new sock LSM state based on request_sock SYNOPSIS void security_inet_csk_clone (struct sock *newsk , const struct request_sock *req ); ARGUMENTS newsk new sock req connection request_sock DESCRIPTION Set that LSM state of sock using the LSM state from req. SE...
security_init(9)
NAME security_init - Initializes the LSM framework SYNOPSIS int security_init (void ); ARGUMENTS void no arguments DESCRIPTION This should be called early in the kernel initialization sequence. SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm...
security_initcall_core(9)
NAME security_initcall_core - Run the LSM core initcalls SYNOPSIS int security_initcall_core (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), lsm_orde...
security_initcall_device(9)
NAME security_initcall_device - Run the LSM device initcalls SYNOPSIS int security_initcall_device (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), ls...
security_initcall_early(9)
NAME security_initcall_early - Run the LSM early initcalls SYNOPSIS int security_initcall_early (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), lsm_o...
security_initcall_fs(9)
NAME security_initcall_fs - Run the LSM fs initcalls SYNOPSIS int security_initcall_fs (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), lsm_order_appe...
security_initcall_late(9)
NAME security_initcall_late - Run the LSM late initcalls SYNOPSIS int security_initcall_late (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), lsm_orde...
security_initcall_pure(9)
NAME security_initcall_pure - Run the LSM pure initcalls SYNOPSIS int security_initcall_pure (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), lsm_orde...
security_initcall_subsys(9)
NAME security_initcall_subsys - Run the LSM subsys initcalls SYNOPSIS int security_initcall_subsys (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./security/lsm_init.c lsm_choose_security(9), lsm_choose_lsm(9), lsm_debug_enable(9), lsm_enabled_set(9), lsm_is_enabled(9), lsm_order_exists(9), ls...
security_initramfs_populated(9)
NAME security_initramfs_populated - Notify LSMs that initramfs has been loaded SYNOPSIS void security_initramfs_populated (void ); ARGUMENTS void no arguments DESCRIPTION Tells the LSMs the initramfs has been unpacked into the rootfs. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_...
security_inode_alloc(9)
NAME security_inode_alloc - Allocate an inode LSM blob SYNOPSIS int security_inode_alloc (struct inode *inode , gfp_t gfp ); ARGUMENTS inode the inode gfp allocation flags DESCRIPTION Allocate and attach a security structure to inode->i_security. The i_security field is initialized to NULL whe...
security_inode_copy_up(9)
NAME security_inode_copy_up - Create new creds for an overlayfs copy-up op SYNOPSIS int security_inode_copy_up (struct dentry *src , struct cred **new ); ARGUMENTS src union dentry of copy-up file new newly created creds DESCRIPTION A file is about to be copied up from lower layer to upper la...
security_inode_copy_up_xattr(9)
NAME security_inode_copy_up_xattr - Filter xattrs in an overlayfs copy-up op SYNOPSIS int security_inode_copy_up_xattr (struct dentry *src , const char *name ); ARGUMENTS src union dentry of copy-up file name xattr name DESCRIPTION Filter the xattrs being copied up when a unioned file is copie...
security_inode_create(9)
NAME security_inode_create - Check if creating a file is allowed SYNOPSIS int security_inode_create (struct inode *dir , struct dentry *dentry , umode_t mode ); ARGUMENTS dir the parent directory dentry the file being created mode requested file mode DESCRIPTION Check permission t...
security_inode_file_getattr(9)
NAME security_inode_file_getattr - check if retrieving fsxattr is allowed SYNOPSIS int security_inode_file_getattr (struct dentry *dentry , struct file_kattr *fa ); ARGUMENTS dentry file to retrieve filesystem extended attributes from fa extended attributes to get DESCRIPTION Called when file_g...
security_inode_file_setattr(9)
NAME security_inode_file_setattr - check if setting fsxattr is allowed SYNOPSIS int security_inode_file_setattr (struct dentry *dentry , struct file_kattr *fa ); ARGUMENTS dentry file to set filesystem extended attributes on fa extended attributes to set on the inode DESCRIPTION Called when fil...
security_inode_follow_link(9)
NAME security_inode_follow_link - Check if following a symbolic link is allowed SYNOPSIS int security_inode_follow_link (struct dentry *dentry , struct inode *inode , bool rcu ); ARGUMENTS dentry link dentry inode link inode rcu true if in RCU-walk mode DESCRIPTION Check permission...
security_inode_free(9)
NAME security_inode_free - Free an inode's LSM blob SYNOPSIS void security_inode_free (struct inode *inode ); ARGUMENTS inode the inode DESCRIPTION Release any LSM resources associated with inode, although due to the inode's RCU protections it is possible that the resources will not be fully released until aft...
security_inode_get_acl(9)
NAME security_inode_get_acl - Check if reading posix acls is allowed SYNOPSIS int security_inode_get_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 before gettin...
security_inode_getattr(9)
NAME security_inode_getattr - Check if getting file attributes is allowed SYNOPSIS int security_inode_getattr (const struct path *path ); ARGUMENTS path file DESCRIPTION Check permission before obtaining file attributes. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security...
security_inode_getlsmprop(9)
NAME security_inode_getlsmprop - Get an inode's LSM data SYNOPSIS void security_inode_getlsmprop (struct inode *inode , struct lsm_prop *prop ); ARGUMENTS inode inode prop lsm specific information to return DESCRIPTION Get the lsm specific information associated with the node. SEE ALSO Kernel ...
security_inode_getsecctx(9)
NAME security_inode_getsecctx - Get the security label of an inode SYNOPSIS int security_inode_getsecctx (struct inode *inode , struct lsm_context *cp ); ARGUMENTS inode inode cp security context DESCRIPTION On success, returns 0 and fills out cp with the security context for the given inode. ...
security_inode_getsecurity(9)
NAME security_inode_getsecurity - Get the xattr security label of an inode SYNOPSIS int security_inode_getsecurity (struct mnt_idmap *idmap , struct inode *inode , const char *name , void **buffer , bool alloc ); ARGUMENTS idmap idmap of the mount inode inode name xattr name ...
security_inode_getxattr(9)
NAME security_inode_getxattr - Check if xattr access is allowed SYNOPSIS int security_inode_getxattr (struct dentry *dentry , const char *name ); ARGUMENTS dentry file name xattr name DESCRIPTION Check permission before obtaining the extended attributes identified by name for dentry. RETURN Retu...
security_inode_init_security(9)
NAME security_inode_init_security - Initialize an inode's LSM context SYNOPSIS int security_inode_init_security (struct inode *inode , struct inode *dir , const struct qstr *qstr , const initxattrs initxattrs , void *fs_data ); ARGUMENTS inode the inode dir parent directory qstr l...
security_inode_init_security_anon(9)
NAME security_inode_init_security_anon - Initialize an anonymous inode SYNOPSIS int security_inode_init_security_anon (struct inode *inode , const struct qstr *name , const struct inode *context_inode ); ARGUMENTS inode the inode name the anonymous inode class context_inode ...
security_inode_invalidate_secctx(9)
NAME security_inode_invalidate_secctx - Invalidate an inode's security label SYNOPSIS void security_inode_invalidate_secctx (struct inode *inode ); ARGUMENTS inode inode DESCRIPTION Notify the security module that it must revalidate the security context of an inode. SEE ALSO Kernel file ./security/securit...
security_inode_killpriv(9)
NAME security_inode_killpriv - The setuid bit is removed, update LSM state SYNOPSIS int security_inode_killpriv (struct mnt_idmap *idmap , struct dentry *dentry ); ARGUMENTS idmap idmap of the mount dentry associated dentry DESCRIPTION The dentry's setuid bit is being removed. Remove similar secu...
security_inode_link(9)
NAME security_inode_link - Check if creating a hard link is allowed SYNOPSIS int security_inode_link (struct dentry *old_dentry , struct inode *dir , struct dentry *new_dentry ); ARGUMENTS old_dentry existing file dir new parent directory new_dentry new link DESCRIPTION Check permission bef...
security_inode_listsecurity(9)
NAME security_inode_listsecurity - List the xattr security label names SYNOPSIS int security_inode_listsecurity (struct inode *inode , char *buffer , size_t buffer_size ); ARGUMENTS inode inode buffer buffer buffer_size size of buffer DESCRIPTION Copy the extended attribute names for the s...
security_inode_listxattr(9)
NAME security_inode_listxattr - Check if listing xattrs is allowed SYNOPSIS int security_inode_listxattr (struct dentry *dentry ); ARGUMENTS dentry file DESCRIPTION Check permission before obtaining the list of extended attribute names for dentry. RETURN Returns 0 if permission is granted. SEE ALSO Kernel f...
security_inode_mkdir(9)
NAME security_inode_mkdir - Check if creating a new directory is allowed SYNOPSIS int security_inode_mkdir (struct inode *dir , struct dentry *dentry , umode_t mode ); ARGUMENTS dir parent directory dentry new directory mode new directory mode DESCRIPTION Check permissions to crea...
security_inode_mknod(9)
NAME security_inode_mknod - Check if creating a special file is allowed SYNOPSIS int security_inode_mknod (struct inode *dir , struct dentry *dentry , umode_t mode , dev_t dev ); ARGUMENTS dir parent directory dentry new file mode new file mode dev device number DE...
security_inode_need_killpriv(9)
NAME security_inode_need_killpriv - Check if security_inode_killpriv() required SYNOPSIS int security_inode_need_killpriv (struct dentry *dentry ); ARGUMENTS dentry associated dentry DESCRIPTION Called when an inode has been changed to determine if security_inode_killpriv should be called. RETURN Return <0 on ...
security_inode_notifysecctx(9)
NAME security_inode_notifysecctx - Notify the LSM of an inode's security label SYNOPSIS int security_inode_notifysecctx (struct inode *inode , void *ctx , u32 ctxlen ); ARGUMENTS inode inode ctx secctx ctxlen length of secctx DESCRIPTION Notify the security module of what the sec...
security_inode_permission(9)
NAME security_inode_permission - Check if accessing an inode is allowed SYNOPSIS int security_inode_permission (struct inode *inode , int mask ); ARGUMENTS inode inode mask access mask DESCRIPTION Check permission before accessing an inode. This hook is called by the existing Linux permission...
security_inode_post_create_tmpfile(9)
NAME security_inode_post_create_tmpfile - Update inode security of new tmpfile SYNOPSIS void security_inode_post_create_tmpfile (struct mnt_idmap *idmap , struct inode *inode ); ARGUMENTS idmap idmap of the mount inode inode of the new tmpfile DESCRIPTION Update inode security data after a tmpfil...
security_inode_post_remove_acl(9)
NAME security_inode_post_remove_acl - Update inode security after rm posix acls SYNOPSIS void security_inode_post_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 Update ino...
security_inode_post_removexattr(9)
NAME security_inode_post_removexattr - Update the inode after a removexattr op SYNOPSIS void security_inode_post_removexattr (struct dentry *dentry , const char *name ); ARGUMENTS dentry file name xattr name DESCRIPTION Update the inode after a successful removexattr operation. SEE ALSO Kernel ...
security_inode_post_set_acl(9)
NAME security_inode_post_set_acl - Update inode security from posix acls set SYNOPSIS void security_inode_post_set_acl (struct dentry *dentry , const char *acl_name , struct posix_acl *kacl ); ARGUMENTS dentry file acl_name acl name kacl acl struct DESCRIPTION Update inode security dat...
security_inode_post_setattr(9)
NAME security_inode_post_setattr - Update the inode after a setattr operation SYNOPSIS void security_inode_post_setattr (struct mnt_idmap *idmap , struct dentry *dentry , int ia_valid ); ARGUMENTS idmap idmap of the mount dentry file ia_valid file attributes set DESCRIPTION Update inode...
security_inode_post_setxattr(9)
NAME security_inode_post_setxattr - Update the inode after a setxattr operation SYNOPSIS void security_inode_post_setxattr (struct dentry *dentry , const char *name , const void *value , size_t size , int flags ); ARGUMENTS dentry file name xattr name value xattr value size ...
security_inode_readlink(9)
NAME security_inode_readlink - Check if reading a symbolic link is allowed SYNOPSIS int security_inode_readlink (struct dentry *dentry ); ARGUMENTS dentry link DESCRIPTION Check the permission to read the symbolic link. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c ...