id
stringlengths
4
63
text
stringlengths
153
8.81M
security_secid_to_secctx(9)
NAME security_secid_to_secctx - Convert a secid to a secctx SYNOPSIS int security_secid_to_secctx (u32 secid , struct lsm_context *cp ); ARGUMENTS secid secid cp the LSM context DESCRIPTION Convert secid to security context. If cp is NULL the length of the result will be returned, but no da...
security_secmark_refcount_dec(9)
NAME security_secmark_refcount_dec - Decrement the secmark labeling rule count SYNOPSIS void security_secmark_refcount_dec (void ); ARGUMENTS void no arguments DESCRIPTION Tells the LSM to decrement the number of secmark labeling rules loaded. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9...
security_secmark_refcount_inc(9)
NAME security_secmark_refcount_inc - Increment the secmark labeling rule count SYNOPSIS void security_secmark_refcount_inc (void ); ARGUMENTS void no arguments DESCRIPTION Tells the LSM to increment the number of secmark labeling rules loaded. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9...
security_secmark_relabel_packet(9)
NAME security_secmark_relabel_packet - Check if setting a secmark is allowed SYNOPSIS int security_secmark_relabel_packet (u32 secid ); ARGUMENTS secid new secmark value DESCRIPTION Check if the process should be allowed to relabel packets to secid. RETURN Returns 0 if permission is granted. SEE ALSO Kernel ...
security_sem_alloc(9)
NAME security_sem_alloc - Allocate a sysv semaphore LSM blob SYNOPSIS int security_sem_alloc (struct kern_ipc_perm *sma ); ARGUMENTS sma sysv ipc permission structure DESCRIPTION Allocate and attach a security structure to the sma security field. The security field is initialized to NULL when the structure i...
security_sem_associate(9)
NAME security_sem_associate - Check if a sysv semaphore operation is allowed SYNOPSIS int security_sem_associate (struct kern_ipc_perm *sma , int semflg ); ARGUMENTS sma sysv ipc permission structure semflg operation flags DESCRIPTION Check permission when a semaphore is requested through the se...
security_sem_free(9)
NAME security_sem_free - Free a sysv semaphore LSM blob SYNOPSIS void security_sem_free (struct kern_ipc_perm *sma ); ARGUMENTS sma sysv ipc permission structure DESCRIPTION Deallocate security structure sma->security for the semaphore. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_b...
security_sem_semctl(9)
NAME security_sem_semctl - Check if a sysv semaphore operation is allowed SYNOPSIS int security_sem_semctl (struct kern_ipc_perm *sma , int cmd ); ARGUMENTS sma sysv ipc permission structure cmd operation DESCRIPTION Check permission when a semaphore operation specified by cmd is to be perfor...
security_sem_semop(9)
NAME security_sem_semop - Check if a sysv semaphore operation is allowed SYNOPSIS int security_sem_semop (struct kern_ipc_perm *sma , struct sembuf *sops , unsigned nsops , int alter ); ARGUMENTS sma sysv ipc permission structure sops operations to perform nsops number of operatio...
security_setprocattr(9)
NAME security_setprocattr - Set an attribute for a task SYNOPSIS int security_setprocattr (int lsmid , const char *name , void *value , size_t size ); ARGUMENTS lsmid LSM identification name attribute name value attribute value size attribute value size DESCRIPTION W...
security_setselfattr(9)
NAME security_setselfattr - Set an LSM attribute on the current process. SYNOPSIS int security_setselfattr (unsigned int attr , struct lsm_ctx __user *uctx , u32 size , u32 flags ); ARGUMENTS attr which attribute to set uctx the user-space source for the information size the size ...
security_settime64(9)
NAME security_settime64 - Check if changing the system time is allowed SYNOPSIS int security_settime64 (const struct timespec64 *ts , const struct timezone *tz ); ARGUMENTS ts new time tz timezone DESCRIPTION Check permission to change the system time, struct timespec64 is defined in <inclu...
security_shm_alloc(9)
NAME security_shm_alloc - Allocate a sysv shm LSM blob SYNOPSIS int security_shm_alloc (struct kern_ipc_perm *shp ); ARGUMENTS shp sysv ipc permission structure DESCRIPTION Allocate and attach a security structure to the shp security field. The security field is initialized to NULL when the structure is fir...
security_shm_associate(9)
NAME security_shm_associate - Check if a sysv shm operation is allowed SYNOPSIS int security_shm_associate (struct kern_ipc_perm *shp , int shmflg ); ARGUMENTS shp sysv ipc permission structure shmflg operation flags DESCRIPTION Check permission when a shared memory region is requested throug...
security_shm_free(9)
NAME security_shm_free - Free a sysv shm LSM blob SYNOPSIS void security_shm_free (struct kern_ipc_perm *shp ); ARGUMENTS shp sysv ipc permission structure DESCRIPTION Deallocate the security structure perm->security for the memory segment. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9),...
security_shm_shmat(9)
NAME security_shm_shmat - Check if a sysv shm attach operation is allowed SYNOPSIS int security_shm_shmat (struct kern_ipc_perm *shp , char __user *shmaddr , int shmflg ); ARGUMENTS shp sysv ipc permission structure shmaddr address of memory region to attach shmflg operation flags DE...
security_shm_shmctl(9)
NAME security_shm_shmctl - Check if a sysv shm operation is allowed SYNOPSIS int security_shm_shmctl (struct kern_ipc_perm *shp , int cmd ); ARGUMENTS shp sysv ipc permission structure cmd operation DESCRIPTION Check permission when a shared memory control operation specified by cmd is to be ...
security_sid_to_context(9)
NAME security_sid_to_context - Obtain a context for a given SID. SYNOPSIS int security_sid_to_context (u32 sid , char **scontext , u32 *scontext_len ); ARGUMENTS sid security identifier, SID scontext security context scontext_len length in bytes DESCRIPTION Write the str...
security_sid_to_context_inval(9)
NAME security_sid_to_context_inval - Obtain a context for a given SID if it is invalid. SYNOPSIS int security_sid_to_context_inval (u32 sid , char **scontext , u32 *scontext_len ); ARGUMENTS sid security identifier, SID scontext security context scontext_len length in byt...
security_sk_alloc(9)
NAME security_sk_alloc - Allocate and initialize a sock's LSM blob SYNOPSIS int security_sk_alloc (struct sock *sk , int family , gfp_t priority ); ARGUMENTS sk sock family protocol family priority gfp flags DESCRIPTION Allocate and attach a security structure to the sk->sk_security ...
security_sk_classify_flow(9)
NAME security_sk_classify_flow - Set a flow's secid based on socket SYNOPSIS void security_sk_classify_flow (const struct sock *sk , struct flowi_common *flic ); ARGUMENTS sk original socket flic target flow DESCRIPTION Set the target flow's secid to socket's secid. SEE ALSO Kernel file ...
security_sk_clone(9)
NAME security_sk_clone - Clone a sock's LSM state SYNOPSIS void security_sk_clone (const struct sock *sk , struct sock *newsk ); ARGUMENTS sk original sock newsk target sock DESCRIPTION Clone/copy security structure. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_bl...
security_sk_free(9)
NAME security_sk_free - Free the sock's LSM blob SYNOPSIS void security_sk_free (struct sock *sk ); ARGUMENTS sk sock DESCRIPTION Deallocate security structure. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_alloc(9), lsm_inode_alloc(9), lsm_task_alloc(...
security_sock_graft(9)
NAME security_sock_graft - Reconcile LSM state when grafting a sock on a socket SYNOPSIS void security_sock_graft (struct sock *sk , struct socket *parent ); ARGUMENTS sk sock being grafted parent target parent socket DESCRIPTION Sets parent's inode secid to sk's secid and update sk with any ne...
security_sock_rcv_skb(9)
NAME security_sock_rcv_skb - Check if an incoming network packet is allowed SYNOPSIS int security_sock_rcv_skb (struct sock *sk , struct sk_buff *skb ); ARGUMENTS sk destination sock skb incoming packet DESCRIPTION Check permissions on incoming network packets. This hook is distinct from...
security_socket_accept(9)
NAME security_socket_accept - Check if a socket is allowed to accept connections SYNOPSIS int security_socket_accept (struct socket *sock , struct socket *newsock ); ARGUMENTS sock listening socket newsock newly creation connection socket DESCRIPTION Check permission before accepting a new connect...
security_socket_bind(9)
NAME security_socket_bind - Check if a socket bind operation is allowed SYNOPSIS int security_socket_bind (struct socket *sock , struct sockaddr *address , int addrlen ); ARGUMENTS sock socket address requested bind address addrlen length of address DESCRIPTION Check permission before ...
security_socket_connect(9)
NAME security_socket_connect - Check if a socket connect operation is allowed SYNOPSIS int security_socket_connect (struct socket *sock , struct sockaddr *address , int addrlen ); ARGUMENTS sock socket address address of remote connection point addrlen length of address DESCRIPTION Che...
security_socket_create(9)
NAME security_socket_create - Check if creating a new socket is allowed SYNOPSIS int security_socket_create (int family , int type , int protocol , int kern ); ARGUMENTS family protocol family type communications type protocol requested protocol kern set to 1 if a kernel ...
security_socket_getpeername(9)
NAME security_socket_getpeername - Check if reading the peer's addr is allowed SYNOPSIS int security_socket_getpeername (struct socket *sock ); ARGUMENTS sock socket DESCRIPTION Check permission before the remote address (name) of a socket object. RETURN Returns 0 if permission is granted. SEE ALSO Kernel ...
security_socket_getpeersec_dgram(9)
NAME security_socket_getpeersec_dgram - Get the remote peer label SYNOPSIS int security_socket_getpeersec_dgram (struct socket *sock , struct sk_buff *skb , u32 *secid ); ARGUMENTS sock socket skb datagram packet secid remote peer label secid DESCRIPTION This hook allows the se...
security_socket_getpeersec_stream(9)
NAME security_socket_getpeersec_stream - Get the remote peer label SYNOPSIS int security_socket_getpeersec_stream (struct socket *sock , sockptr_t optval , sockptr_t optlen , unsigned int len ); ARGUMENTS sock socket optval destination buffer optlen size of peer label copied into the ...
security_socket_getsockname(9)
NAME security_socket_getsockname - Check if reading the socket addr is allowed SYNOPSIS int security_socket_getsockname (struct socket *sock ); ARGUMENTS sock socket DESCRIPTION Check permission before reading the local address (name) of the socket object. RETURN Returns 0 if permission is granted. SEE ALSO...
security_socket_getsockopt(9)
NAME security_socket_getsockopt - Check if reading a socket option is allowed SYNOPSIS int security_socket_getsockopt (struct socket *sock , int level , int optname ); ARGUMENTS sock socket level option's protocol level optname option name DESCRIPTION Check permissions before retriev...
security_socket_listen(9)
NAME security_socket_listen - Check if a socket is allowed to listen SYNOPSIS int security_socket_listen (struct socket *sock , int backlog ); ARGUMENTS sock socket backlog connection queue size DESCRIPTION Check permission before socket protocol layer listen operation. RETURN Returns 0 if permis...
security_socket_post_create(9)
NAME security_socket_post_create - Initialize a newly created socket SYNOPSIS int security_socket_post_create (struct socket *sock , int family , int type , int protocol , int kern ); ARGUMENTS sock socket family protocol family type communications type protocol requested...
security_socket_recvmsg(9)
NAME security_socket_recvmsg - Check if receiving a message is allowed SYNOPSIS int security_socket_recvmsg (struct socket *sock , struct msghdr *msg , int size , int flags ); ARGUMENTS sock receiving socket msg message to receive size size of message flags operatio...
security_socket_sendmsg(9)
NAME security_socket_sendmsg - Check if sending a message is allowed SYNOPSIS int security_socket_sendmsg (struct socket *sock , struct msghdr *msg , int size ); ARGUMENTS sock sending socket msg message to send size size of message DESCRIPTION Check permission before transmitti...
security_socket_setsockopt(9)
NAME security_socket_setsockopt - Check if setting a socket option is allowed SYNOPSIS int security_socket_setsockopt (struct socket *sock , int level , int optname ); ARGUMENTS sock socket level option's protocol level optname option name DESCRIPTION Check permissions before setting...
security_socket_shutdown(9)
NAME security_socket_shutdown - Checks if shutting down the socket is allowed SYNOPSIS int security_socket_shutdown (struct socket *sock , int how ); ARGUMENTS sock socket how flag indicating how sends and receives are handled DESCRIPTION Checks permission before all or part of a connection on...
security_socket_socketpair(9)
NAME security_socket_socketpair - Check if creating a socketpair is allowed SYNOPSIS int security_socket_socketpair (struct socket *socka , struct socket *sockb ); ARGUMENTS socka first socket sockb second socket DESCRIPTION Check permissions before creating a fresh pair of sockets. RETURN Retur...
security_syslog(9)
NAME security_syslog - Check if accessing the kernel message ring is allowed SYNOPSIS int security_syslog (int type ); ARGUMENTS type SYSLOG_ACTION_* type DESCRIPTION Check permission before accessing the kernel message ring or changing logging to the console. See the syslog(2) manual page for an explanation...
security_task_alloc(9)
NAME security_task_alloc - Allocate a task's LSM blob SYNOPSIS int security_task_alloc (struct task_struct *task , u64 clone_flags ); ARGUMENTS task the task clone_flags flags indicating what is being shared DESCRIPTION Handle allocation of task-related resources. RETURN Returns a zero on success, ne...
security_task_fix_setgid(9)
NAME security_task_fix_setgid - Update LSM with new group id attributes SYNOPSIS int security_task_fix_setgid (struct cred *new , const struct cred *old , int flags ); ARGUMENTS new updated credentials old credentials being replaced flags LSM_SETID_* flag value DESCRIPTION Updat...
security_task_fix_setgroups(9)
NAME security_task_fix_setgroups - Update LSM with new supplementary groups SYNOPSIS int security_task_fix_setgroups (struct cred *new , const struct cred *old ); ARGUMENTS new updated credentials old credentials being replaced DESCRIPTION Update the module's state after setting the suppleme...
security_task_fix_setuid(9)
NAME security_task_fix_setuid - Update LSM with new user id attributes SYNOPSIS int security_task_fix_setuid (struct cred *new , const struct cred *old , int flags ); ARGUMENTS new updated credentials old credentials being replaced flags LSM_SETID_* flag values DESCRIPTION Updat...
security_task_free(9)
NAME security_task_free - Free a task's LSM blob and related resources SYNOPSIS void security_task_free (struct task_struct *task ); ARGUMENTS task task DESCRIPTION Handle release of task-related resources. Note that this can be called from interrupt context. SEE ALSO Kernel file ./security/security.c ...
security_task_getioprio(9)
NAME security_task_getioprio - Check if getting a task's ioprio is allowed SYNOPSIS int security_task_getioprio (struct task_struct *p ); ARGUMENTS p task DESCRIPTION Check permission before getting the ioprio value of p. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/securi...
security_task_getlsmprop_obj(9)
NAME security_task_getlsmprop_obj - Get a task's objective LSM data SYNOPSIS void security_task_getlsmprop_obj (struct task_struct *p , struct lsm_prop *prop ); ARGUMENTS p target task prop lsm specific information DESCRIPTION Retrieve the objective security identifier of the task_struct in ...
security_task_getpgid(9)
NAME security_task_getpgid - Check if getting the pgid is allowed SYNOPSIS int security_task_getpgid (struct task_struct *p ); ARGUMENTS p task DESCRIPTION Check permission before getting the process group identifier of the process p. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./...
security_task_getscheduler(9)
NAME security_task_getscheduler - Check if getting scheduling info is allowed SYNOPSIS int security_task_getscheduler (struct task_struct *p ); ARGUMENTS p target task DESCRIPTION Check permission before obtaining scheduling information for process p. RETURN Returns 0 if permission is granted. SEE ALSO K...
security_task_getsid(9)
NAME security_task_getsid - Check if getting the session id is allowed SYNOPSIS int security_task_getsid (struct task_struct *p ); ARGUMENTS p task DESCRIPTION Check permission before getting the session identifier of the process p. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./se...
security_task_kill(9)
NAME security_task_kill - Check if sending a signal is allowed SYNOPSIS int security_task_kill (struct task_struct *p , struct kernel_siginfo *info , int sig , const struct cred *cred ); ARGUMENTS p target process info signal information sig signal value cred cr...
security_task_movememory(9)
NAME security_task_movememory - Check if moving memory is allowed SYNOPSIS int security_task_movememory (struct task_struct *p ); ARGUMENTS p task DESCRIPTION Check permission before moving memory owned by process p. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security....
security_task_prctl(9)
NAME security_task_prctl - Check if a prctl op is allowed SYNOPSIS int security_task_prctl (int option , unsigned long arg2 , unsigned long arg3 , unsigned long arg4 , unsigned long arg5 ); ARGUMENTS option operation arg2 argument arg3 argument arg4 argument a...
security_task_prlimit(9)
NAME security_task_prlimit - Check if get/setting resources limits is allowed SYNOPSIS int security_task_prlimit (const struct cred *cred , const struct cred *tcred , unsigned int flags ); ARGUMENTS cred current task credentials tcred target task credentials flags LSM_PRLIMIT_* flag...
security_task_setioprio(9)
NAME security_task_setioprio - Check if setting a task's ioprio is allowed SYNOPSIS int security_task_setioprio (struct task_struct *p , int ioprio ); ARGUMENTS p target task ioprio ioprio value DESCRIPTION Check permission before setting the ioprio value of p to ioprio. RETURN Returns 0 if p...
security_task_setnice(9)
NAME security_task_setnice - Check if setting a task's nice value is allowed SYNOPSIS int security_task_setnice (struct task_struct *p , int nice ); ARGUMENTS p target task nice nice value DESCRIPTION Check permission before setting the nice value of p to nice. RETURN Returns 0 if permissio...
security_task_setpgid(9)
NAME security_task_setpgid - Check if setting the pgid is allowed SYNOPSIS int security_task_setpgid (struct task_struct *p , pid_t pgid ); ARGUMENTS p task being modified pgid new pgid DESCRIPTION Check permission before setting the process group identifier of the process p to pgid. RETURN...
security_task_setrlimit(9)
NAME security_task_setrlimit - Check if setting a new rlimit value is allowed SYNOPSIS int security_task_setrlimit (struct task_struct *p , unsigned int resource , struct rlimit *new_rlim ); ARGUMENTS p target task's group leader resource resource whose limit is being set new_rlim new ...
security_task_setscheduler(9)
NAME security_task_setscheduler - Check if setting sched policy/param is allowed SYNOPSIS int security_task_setscheduler (struct task_struct *p ); ARGUMENTS p target task DESCRIPTION Check permission before setting scheduling policy and/or parameters of process p. RETURN Returns 0 if permission is granted...
security_task_to_inode(9)
NAME security_task_to_inode - Set the security attributes of a task's inode SYNOPSIS void security_task_to_inode (struct task_struct *p , struct inode *inode ); ARGUMENTS p task inode inode DESCRIPTION Set the security attributes for an inode based on an associated task's security attributes,...
security_transfer_creds(9)
NAME security_transfer_creds - Transfer creds SYNOPSIS void security_transfer_creds (struct cred *new , const struct cred *old ); ARGUMENTS new target credentials old original credentials DESCRIPTION Transfer data from original creds to new creds. SEE ALSO Kernel file ./security/security...
security_transition_sid(9)
NAME security_transition_sid - Compute the SID for a new subject/object. SYNOPSIS int security_transition_sid (u32 ssid , u32 tsid , u16 tclass , const struct qstr *qstr , u32 *out_sid ); ARGUMENTS ssid source security identifier tsid target security identifier tclass target securit...
security_tun_dev_alloc_security(9)
NAME security_tun_dev_alloc_security - Allocate a LSM blob for a TUN device SYNOPSIS int security_tun_dev_alloc_security (void **security ); ARGUMENTS security pointer to the LSM blob DESCRIPTION This hook allows a module to allocate a security structure for a TUN device, returning the pointer in security. RETUR...
security_tun_dev_attach(9)
NAME security_tun_dev_attach - Update TUN device LSM state on attach SYNOPSIS int security_tun_dev_attach (struct sock *sk , void *security ); ARGUMENTS sk associated sock security TUN device LSM blob DESCRIPTION This hook can be used by the module to update any security state associated with the...
security_tun_dev_attach_queue(9)
NAME security_tun_dev_attach_queue - Check if attaching a TUN queue is allowed SYNOPSIS int security_tun_dev_attach_queue (void *security ); ARGUMENTS security TUN device LSM blob DESCRIPTION Check permissions prior to attaching to a TUN device queue. RETURN Returns 0 if permission is granted. SEE ALSO Kernel ...
security_tun_dev_create(9)
NAME security_tun_dev_create - Check if creating a TUN device is allowed SYNOPSIS int security_tun_dev_create (void ); ARGUMENTS void no arguments DESCRIPTION Check permissions prior to creating a new TUN device. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c lsm...
security_tun_dev_free_security(9)
NAME security_tun_dev_free_security - Free a TUN device LSM blob SYNOPSIS void security_tun_dev_free_security (void *security ); ARGUMENTS security LSM blob DESCRIPTION This hook allows a module to free the security structure for a TUN device. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), ...
security_tun_dev_open(9)
NAME security_tun_dev_open - Update TUN device LSM state on open SYNOPSIS int security_tun_dev_open (void *security ); ARGUMENTS security TUN device LSM blob DESCRIPTION This hook can be used by the module to update any security state associated with the TUN device's security structure. RETURN Returns 0 if permi...
security_unix_may_send(9)
NAME security_unix_may_send - Check if AF_UNIX socket can send datagrams SYNOPSIS int security_unix_may_send (struct socket *sock , struct socket *other ); ARGUMENTS sock originating sock other peer sock DESCRIPTION Check permissions before connecting or sending datagrams from sock to other. Th...
security_unix_stream_connect(9)
NAME security_unix_stream_connect - Check if a AF_UNIX stream is allowed SYNOPSIS int security_unix_stream_connect (struct sock *sock , struct sock *other , struct sock *newsk ); ARGUMENTS sock originating sock other peer sock newsk new sock DESCRIPTION Check permissions before es...
security_uring_allowed(9)
NAME security_uring_allowed - Check if io_uring_setup() is allowed SYNOPSIS int security_uring_allowed (void ); ARGUMENTS void no arguments DESCRIPTION Check whether the current task is allowed to call io_uring_setup. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c ...
security_uring_cmd(9)
NAME security_uring_cmd - Check if a io_uring passthrough command is allowed SYNOPSIS int security_uring_cmd (struct io_uring_cmd *ioucmd ); ARGUMENTS ioucmd command DESCRIPTION Check whether the file_operations uring_cmd is allowed to run. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ....
security_uring_override_creds(9)
NAME security_uring_override_creds - Check if overriding creds is allowed SYNOPSIS int security_uring_override_creds (const struct cred *new ); ARGUMENTS new new credentials DESCRIPTION Check if the current task, executing an io_uring operation, is allowed to override it's credentials with new. RETURN Retur...
security_uring_sqpoll(9)
NAME security_uring_sqpoll - Check if IORING_SETUP_SQPOLL is allowed SYNOPSIS int security_uring_sqpoll (void ); ARGUMENTS void no arguments DESCRIPTION Check whether the current task is allowed to spawn a io_uring polling thread (IORING_SETUP_SQPOLL). RETURN Returns 0 if permission is granted. SEE ALSO Ker...
security_vm_enough_memory_mm(9)
NAME security_vm_enough_memory_mm - Check if allocating a new mem map is allowed SYNOPSIS int security_vm_enough_memory_mm (struct mm_struct *mm , long pages ); ARGUMENTS mm mm struct pages number of pages DESCRIPTION Check permissions for allocating a new virtual mapping. If all LSMs return ...
security_watch_key(9)
NAME security_watch_key - Check if a task is allowed to watch for key events SYNOPSIS int security_watch_key (struct key *key ); ARGUMENTS key the key to watch DESCRIPTION Check to see if a process is allowed to watch for event notifications from a key or keyring. RETURN Returns 0 if permission is granted. ...
security_xfrm_decode_session(9)
NAME security_xfrm_decode_session - Determine the xfrm secid for a packet SYNOPSIS int security_xfrm_decode_session (struct sk_buff *skb , u32 *secid ); ARGUMENTS skb xfrm packet secid secid DESCRIPTION Decode the packet in skb and return the security label in secid. RETURN Return 0 if all xfr...
security_xfrm_policy_alloc(9)
NAME security_xfrm_policy_alloc - Allocate a xfrm policy LSM blob SYNOPSIS int security_xfrm_policy_alloc (struct xfrm_sec_ctx **ctxp , struct xfrm_user_sec_ctx *sec_ctx , gfp_t gfp ); ARGUMENTS ctxp xfrm security context being added to the SPD sec_ctx security label provided by userspace g...
security_xfrm_policy_clone(9)
NAME security_xfrm_policy_clone - Clone xfrm policy LSM state SYNOPSIS int security_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx , struct xfrm_sec_ctx **new_ctxp ); ARGUMENTS old_ctx xfrm security context new_ctxp target xfrm security context DESCRIPTION Allocate a security structure in new_ctxp th...
security_xfrm_policy_delete(9)
NAME security_xfrm_policy_delete - Check if deleting a xfrm policy is allowed SYNOPSIS int security_xfrm_policy_delete (struct xfrm_sec_ctx *ctx ); ARGUMENTS ctx xfrm security context DESCRIPTION Authorize deletion of a SPD entry. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./securi...
security_xfrm_policy_free(9)
NAME security_xfrm_policy_free - Free a xfrm security context SYNOPSIS void security_xfrm_policy_free (struct xfrm_sec_ctx *ctx ); ARGUMENTS ctx xfrm security context DESCRIPTION Free LSM resources associated with ctx. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), ...
security_xfrm_policy_lookup(9)
NAME security_xfrm_policy_lookup - Check if using a xfrm policy is allowed SYNOPSIS int security_xfrm_policy_lookup (struct xfrm_sec_ctx *ctx , u32 fl_secid ); ARGUMENTS ctx target xfrm security context fl_secid flow secid used to authorize access DESCRIPTION Check permission when a flow selects a...
security_xfrm_state_alloc(9)
NAME security_xfrm_state_alloc - Allocate a xfrm state LSM blob SYNOPSIS int security_xfrm_state_alloc (struct xfrm_state *x , struct xfrm_user_sec_ctx *sec_ctx ); ARGUMENTS x xfrm state being added to the SAD sec_ctx security label provided by userspace DESCRIPTION Allocate a security structur...
security_xfrm_state_alloc_acquire(9)
NAME security_xfrm_state_alloc_acquire - Allocate a xfrm state LSM blob SYNOPSIS int security_xfrm_state_alloc_acquire (struct xfrm_state *x , struct xfrm_sec_ctx *polsec , u32 secid ); ARGUMENTS x xfrm state being added to the SAD polsec associated policy's security context secid ...
security_xfrm_state_delete(9)
NAME security_xfrm_state_delete - Check if deleting a xfrm state is allowed SYNOPSIS int security_xfrm_state_delete (struct xfrm_state *x ); ARGUMENTS x xfrm state DESCRIPTION Authorize deletion of x->security. RETURN Returns 0 if permission is granted. SEE ALSO Kernel file ./security/security.c lsm_f...
security_xfrm_state_free(9)
NAME security_xfrm_state_free - Free a xfrm state SYNOPSIS void security_xfrm_state_free (struct xfrm_state *x ); ARGUMENTS x xfrm state DESCRIPTION Deallocate x->security. SEE ALSO Kernel file ./security/security.c lsm_file_alloc(9), lsm_blob_alloc(9), lsm_cred_alloc(9), lsm_inode_alloc(9), ls...
security_xfrm_state_pol_flow_match(9)
NAME security_xfrm_state_pol_flow_match - Check for a xfrm match SYNOPSIS int security_xfrm_state_pol_flow_match (struct xfrm_state *x , struct xfrm_policy *xp , const struct flowi_common *flic ); ARGUMENTS x xfrm state to match xp xfrm policy to check for a match flic flow t...
securityfs_create_dentry(9)
NAME securityfs_create_dentry - create a dentry in the securityfs filesystem SYNOPSIS struct dentry * securityfs_create_dentry (const char *name , umode_t mode , struct dentry *parent , void *data , const struct file_operations *fops , const struct inode_operations *iops ); ARGUMENTS name a pointer to a string...
securityfs_create_dir(9)
NAME securityfs_create_dir - create a directory in the securityfs filesystem SYNOPSIS struct dentry * securityfs_create_dir (const char *name , struct dentry *parent ); ARGUMENTS name a pointer to a string containing the name of the directory to create. parent a pointer to the parent dentry for th...
securityfs_create_file(9)
NAME securityfs_create_file - create a file in the securityfs filesystem SYNOPSIS struct dentry * securityfs_create_file (const char *name , umode_t mode , struct dentry *parent , void *data , const struct file_operations *fops ); ARGUMENTS name a pointer to a string containing the name of the file to create. ...
securityfs_create_symlink(9)
NAME securityfs_create_symlink - create a symlink in the securityfs filesystem SYNOPSIS struct dentry * securityfs_create_symlink (const char *name , struct dentry *parent , const char *target , const struct inode_operations *iops ); ARGUMENTS name a pointer to a string containing the name of the symlink to cr...
securityfs_remove(9)
NAME securityfs_remove - removes a file or directory from the securityfs filesystem SYNOPSIS void securityfs_remove (struct dentry *dentry ); ARGUMENTS dentry a pointer to a the dentry of the file or directory to be removed. DESCRIPTION This function removes a file or directory in securityfs that was previous...
sed(1)
NAME sed - stream editor for filtering and transforming text SYNOPSIS sed [-V] [--version] [--help] [-n] [--quiet] [--silent] [-l N] [--line-length=N] [-u] [--unbuffered] [-E] [-r] [--regexp-extended] [-e script] [--expression=script] [-f script-file] [--file=script-file] [script-if-no-other-script] [file...] DESCRIP...
sed(1p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME sed — stream editor SYNOPSIS sed [-n] script [file...] ...
seed48(3)
NAME drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48 - generate uniformly distributed pseudo-random numbers LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdlib.h> double drand48(void); double erand48(unsigned short xsubi[3]); long lrand48(void); ...
seed48(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME seed48 — seed a uniformly distributed pseudo-random non-negativ...
seed48_r(3)
NAME drand48_r, erand48_r, lrand48_r, nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r - generate uniformly distributed pseudo-random numbers reentrantly LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <stdlib.h> int drand48_r(struct drand48_data *restrict buffer, ...
seekdir(3)
NAME seekdir - set the position of the next readdir() call in the directory stream. LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <dirent.h> void seekdir(DIR *dirp, long loc); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): seekdir(): _XOPEN_SOURCE ...