id
stringlengths
4
63
text
stringlengths
153
8.81M
sm750_hw_imageblit(9)
NAME sm750_hw_imageblit - SYNOPSIS int sm750_hw_imageblit (struct lynx_accel *accel , const char *pSrcbuf , u32 srcDelta , u32 startBit , u32 dBase , u32 dPitch , u32 bytePerPixel , u32 dx , u32 dy , u32 width , u32 height , u32 fColor , u32 bColor , u32 rop2 ); ARGUMENTS accel -- undescribed -- pSrcb...
smack_audit_rule_init(9)
NAME smack_audit_rule_init - Initialize a smack audit rule SYNOPSIS int smack_audit_rule_init (u32 field , u32 op , char *rulestr , void **vrule , gfp_t gfp ); ARGUMENTS field audit rule fields given from user-space (audit.h) op required testing operator (=, !=, >, <, ...) rulestr s...
smack_audit_rule_known(9)
NAME smack_audit_rule_known - Distinguish Smack audit rules SYNOPSIS int smack_audit_rule_known (struct audit_krule *krule ); ARGUMENTS krule rule of interest, in Audit kernel representation format DESCRIPTION This is used to filter Smack rules from remaining Audit ones. If it's proved that this rule belongs ...
smack_audit_rule_match(9)
NAME smack_audit_rule_match - Audit given object ? SYNOPSIS int smack_audit_rule_match (struct lsm_prop *prop , u32 field , u32 op , void *vrule ); ARGUMENTS prop security id for identifying the object to test field audit rule flags given from user-space op required testing opera...
smack_bprm_creds_for_exec(9)
NAME smack_bprm_creds_for_exec - Update bprm->cred if needed for exec SYNOPSIS int smack_bprm_creds_for_exec (struct linux_binprm *bprm ); ARGUMENTS bprm the exec information DESCRIPTION Returns 0 if it gets a blob, -EPERM if exec forbidden and -ENOMEM otherwise SEE ALSO Kernel file ./security/smack/smack_...
smack_cred_alloc_blank(9)
NAME smack_cred_alloc_blank - "allocate" blank task-level security credentials SYNOPSIS int smack_cred_alloc_blank (struct cred *cred , gfp_t gfp ); ARGUMENTS cred the new credentials gfp the atomicity of any memory allocations DESCRIPTION Prepare a blank set of credentials for modification. ...
smack_cred_free(9)
NAME smack_cred_free - "free" task-level security credentials SYNOPSIS void smack_cred_free (struct cred *cred ); ARGUMENTS cred the credentials in question SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_copy_relabel(9), ...
smack_cred_getlsmprop(9)
NAME smack_cred_getlsmprop - get the Smack label for a creds structure SYNOPSIS void smack_cred_getlsmprop (const struct cred *cred , struct lsm_prop *prop ); ARGUMENTS cred the object creds prop where to put the data DESCRIPTION Sets the Smack part of the ref SEE ALSO Kernel file ./security...
smack_cred_getsecid(9)
NAME smack_cred_getsecid - get the secid corresponding to a creds structure SYNOPSIS void smack_cred_getsecid (const struct cred *cred , u32 *secid ); ARGUMENTS cred the object creds secid where to put the result DESCRIPTION Sets the secid to contain a u32 version of the smack label. SEE ALSO K...
smack_cred_prepare(9)
NAME smack_cred_prepare - prepare new set of credentials for modification SYNOPSIS int smack_cred_prepare (struct cred *new , const struct cred *old , gfp_t gfp ); ARGUMENTS new the new credentials old the original credentials gfp the atomicity of any memory allocations DESCRI...
smack_cred_transfer(9)
NAME smack_cred_transfer - Transfer the old credentials to the new credentials SYNOPSIS void smack_cred_transfer (struct cred *new , const struct cred *old ); ARGUMENTS new the new credentials old the original credentials DESCRIPTION Fill in a set of blank credentials from another set of cred...
smack_current_getlsmprop_subj(9)
NAME smack_current_getlsmprop_subj - get the subjective secid of the current task SYNOPSIS void smack_current_getlsmprop_subj (struct lsm_prop *prop ); ARGUMENTS prop where to put the result DESCRIPTION Sets the secid to contain a u32 version of the task's subjective smack label. SEE ALSO Kernel file ./secur...
smack_d_instantiate(9)
NAME smack_d_instantiate - Make sure the blob is correct on an inode SYNOPSIS void smack_d_instantiate (struct dentry *opt_dentry , struct inode *inode ); ARGUMENTS opt_dentry dentry where inode will be attached inode the object DESCRIPTION Set the inode's security blob if it hasn't been done already....
smack_file_alloc_security(9)
NAME smack_file_alloc_security - assign a file security blob SYNOPSIS int smack_file_alloc_security (struct file *file ); ARGUMENTS file the object DESCRIPTION The security blob for a file is a pointer to the master label list, so no allocation is done. f_security is the owner security information. It isn't ...
smack_file_fcntl(9)
NAME smack_file_fcntl - Smack check on fcntl SYNOPSIS int smack_file_fcntl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file the object cmd what action to check arg unused DESCRIPTION Generally these operations are harmless. File locking operations pr...
smack_file_ioctl(9)
NAME smack_file_ioctl - Smack check on ioctls SYNOPSIS int smack_file_ioctl (struct file *file , unsigned int cmd , unsigned long arg ); ARGUMENTS file the object cmd what to do arg unused DESCRIPTION Relies heavily on the correct use of the ioctl command conventions. Returns ...
smack_file_lock(9)
NAME smack_file_lock - Smack check on file locking SYNOPSIS int smack_file_lock (struct file *file , unsigned int cmd ); ARGUMENTS file the object cmd unused DESCRIPTION Returns 0 if current has lock access, error code otherwise SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), ...
smack_file_open(9)
NAME smack_file_open - Smack dentry open processing SYNOPSIS int smack_file_open (struct file *file ); ARGUMENTS file the object DESCRIPTION Set the security blob in the file structure. Allow the open only if the task has read access. There are many read operations (e.g. fstat) that you can do with an fd e...
smack_file_receive(9)
NAME smack_file_receive - Smack file receive check SYNOPSIS int smack_file_receive (struct file *file ); ARGUMENTS file the object DESCRIPTION Returns 0 if current has access, error code otherwise SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), s...
smack_file_send_sigiotask(9)
NAME smack_file_send_sigiotask - Smack on sigio SYNOPSIS int smack_file_send_sigiotask (struct task_struct *tsk , struct fown_struct *fown , int signum ); ARGUMENTS tsk The target task fown the object the signal come from signum unused DESCRIPTION Allow a privileged task to get si...
smack_file_set_fowner(9)
NAME smack_file_set_fowner - set the file security blob value SYNOPSIS void smack_file_set_fowner (struct file *file ); ARGUMENTS file object in question SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_copy_relabel(9), smk...
smack_flags_to_may(9)
NAME smack_flags_to_may - convert S_ to MAY_ values SYNOPSIS int smack_flags_to_may (int flags ); ARGUMENTS flags the S_ value DESCRIPTION Returns the equivalent MAY_ value SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_co...
smack_from_netlbl(9)
NAME smack_from_netlbl - Smack data from the IP options in an skb SYNOPSIS struct smack_known * smack_from_netlbl (const struct sock *sk , u16 family , struct sk_buff *skb ); ARGUMENTS sk socket data came in on family address family skb packet DESCRIPTION Find the Smack label in...
smack_from_secattr(9)
NAME smack_from_secattr - Convert a netlabel attr.mls.lvl/attr.mls.cat pair to smack SYNOPSIS struct smack_known * smack_from_secattr (struct netlbl_lsm_secattr *sap , struct socket_smack *ssp ); ARGUMENTS sap netlabel secattr ssp socket security information DESCRIPTION Returns a pointer to a...
smack_from_secid(9)
NAME smack_from_secid - find the Smack label associated with a secid SYNOPSIS struct smack_known * smack_from_secid (const u32 secid ); ARGUMENTS secid an integer that might be associated with a Smack label DESCRIPTION Returns a pointer to the appropriate Smack label entry if there is one, otherwise a pointer ...
smack_from_skb(9)
NAME smack_from_skb - Smack data from the secmark in an skb SYNOPSIS struct smack_known * smack_from_skb (struct sk_buff *skb ); ARGUMENTS skb packet DESCRIPTION Returns smack_known of the secmark or NULL if that won't work. SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smac...
smack_fs_context_dup(9)
NAME smack_fs_context_dup - Duplicate the security data on fs_context duplication SYNOPSIS int smack_fs_context_dup (struct fs_context *fc , struct fs_context *src_fc ); ARGUMENTS fc The new filesystem context. src_fc The source filesystem context being duplicated. DESCRIPTION Returns 0 on succ...
smack_fs_context_parse_param(9)
NAME smack_fs_context_parse_param - Parse a single mount parameter SYNOPSIS int smack_fs_context_parse_param (struct fs_context *fc , struct fs_parameter *param ); ARGUMENTS fc The new filesystem context being constructed. param The parameter. DESCRIPTION Returns 0 on success, -ENOPARAM to pas...
smack_fs_context_submount(9)
NAME smack_fs_context_submount - Initialise security data for a filesystem context SYNOPSIS int smack_fs_context_submount (struct fs_context *fc , struct super_block *reference ); ARGUMENTS fc The filesystem context. reference reference superblock DESCRIPTION Returns 0 on success or -ENOMEM on err...
smack_getprocattr(9)
NAME smack_getprocattr - Smack process attribute access SYNOPSIS int smack_getprocattr (struct task_struct *p , const char *name , char **value ); ARGUMENTS p the object task name the name of the attribute in /proc/.../attr value where to put the result DESCRIPTION Places a cop...
smack_getselfattr(9)
NAME smack_getselfattr - Smack current process attribute SYNOPSIS int smack_getselfattr (unsigned int attr , struct lsm_ctx __user *ctx , u32 *size , u32 flags ); ARGUMENTS attr which attribute to fetch ctx buffer to receive the result size available size in, actual size out ...
smack_inet_conn_request(9)
NAME smack_inet_conn_request - Smack access check on connect SYNOPSIS int smack_inet_conn_request (const struct sock *sk , struct sk_buff *skb , struct request_sock *req ); ARGUMENTS sk socket involved skb packet req unused DESCRIPTION Returns 0 if a task with the packet labe...
smack_inet_csk_clone(9)
NAME smack_inet_csk_clone - Copy the connection information to the new socket SYNOPSIS void smack_inet_csk_clone (struct sock *sk , const struct request_sock *req ); ARGUMENTS sk the new socket req the connection's request_sock DESCRIPTION Transfer the connection's peer label to the newly cr...
smack_init(9)
NAME smack_init - initialize the smack system SYNOPSIS int smack_init (void ); ARGUMENTS void no arguments DESCRIPTION Returns 0 on success, -ENOMEM is there's no memory SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_copy...
smack_inode_alloc_security(9)
NAME smack_inode_alloc_security - allocate an inode blob SYNOPSIS int smack_inode_alloc_security (struct inode *inode ); ARGUMENTS inode the inode in need of a blob DESCRIPTION Returns 0 SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rul...
smack_inode_get_acl(9)
NAME smack_inode_get_acl - Smack check for getting posix acls SYNOPSIS int smack_inode_get_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name ); ARGUMENTS idmap idmap of the mnt this request came from dentry the object acl_name name of the posix acl DESCRIPTION ...
smack_inode_getattr(9)
NAME smack_inode_getattr - Smack check for getting attributes SYNOPSIS int smack_inode_getattr (const struct path *path ); ARGUMENTS path path to extract the info from DESCRIPTION Returns 0 if access is permitted, an error code otherwise SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_in...
smack_inode_getlsmprop(9)
NAME smack_inode_getlsmprop - Extract inode's security id SYNOPSIS void smack_inode_getlsmprop (struct inode *inode , struct lsm_prop *prop ); ARGUMENTS inode inode to extract the info from prop where result will be saved SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_i...
smack_inode_getsecurity(9)
NAME smack_inode_getsecurity - get smack xattrs SYNOPSIS int smack_inode_getsecurity (struct mnt_idmap *idmap , struct inode *inode , const char *name , void **buffer , bool alloc ); ARGUMENTS idmap idmap of the mount inode the object name attribute name buffer where to...
smack_inode_getxattr(9)
NAME smack_inode_getxattr - Smack check on getxattr SYNOPSIS int smack_inode_getxattr (struct dentry *dentry , const char *name ); ARGUMENTS dentry the object name unused DESCRIPTION Returns 0 if access is permitted, an error code otherwise SEE ALSO Kernel file ./security/smack/smack_lsm.c sm...
smack_inode_init_security(9)
NAME smack_inode_init_security - copy out the smack from an inode SYNOPSIS int smack_inode_init_security (struct inode *inode , struct inode *dir , const struct qstr *qstr , struct xattr *xattrs , int *xattr_count ); ARGUMENTS inode the newly created inode dir containing directory object ...
smack_inode_link(9)
NAME smack_inode_link - Smack check on link SYNOPSIS int smack_inode_link (struct dentry *old_dentry , struct inode *dir , struct dentry *new_dentry ); ARGUMENTS old_dentry the existing object dir unused new_dentry the new object DESCRIPTION Returns 0 if access is permitted, an error code o...
smack_inode_listsecurity(9)
NAME smack_inode_listsecurity - list the Smack attributes SYNOPSIS int smack_inode_listsecurity (struct inode *inode , char *buffer , size_t buffer_size ); ARGUMENTS inode the object buffer where they go buffer_size size of buffer SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fe...
smack_inode_permission(9)
NAME smack_inode_permission - Smack version of permission() SYNOPSIS int smack_inode_permission (struct inode *inode , int mask ); ARGUMENTS inode the inode in question mask the access requested DESCRIPTION This is the important Smack hook. Returns 0 if access is permitted, an error code otherw...
smack_inode_post_setxattr(9)
NAME smack_inode_post_setxattr - Apply the Smack update approved above SYNOPSIS void smack_inode_post_setxattr (struct dentry *dentry , const char *name , const void *value , size_t size , int flags ); ARGUMENTS dentry object name attribute name value attribute value size ...
smack_inode_remove_acl(9)
NAME smack_inode_remove_acl - Smack check for getting posix acls SYNOPSIS int smack_inode_remove_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name ); ARGUMENTS idmap idmap of the mnt this request came from dentry the object acl_name name of the posix acl DESCRI...
smack_inode_removexattr(9)
NAME smack_inode_removexattr - Smack check on removexattr SYNOPSIS int smack_inode_removexattr (struct mnt_idmap *idmap , struct dentry *dentry , const char *name ); ARGUMENTS idmap idmap of the mount dentry the object name name of the attribute DESCRIPTION Removing the Smack attrib...
smack_inode_rename(9)
NAME smack_inode_rename - Smack check on rename SYNOPSIS int smack_inode_rename (struct inode *old_inode , struct dentry *old_dentry , struct inode *new_inode , struct dentry *new_dentry ); ARGUMENTS old_inode unused old_dentry the old object new_inode unused new_dentry the new object D...
smack_inode_rmdir(9)
NAME smack_inode_rmdir - Smack check on directory deletion SYNOPSIS int smack_inode_rmdir (struct inode *dir , struct dentry *dentry ); ARGUMENTS dir containing directory object dentry directory to unlink DESCRIPTION Returns 0 if current can write the containing directory and the directory, erro...
smack_inode_set_acl(9)
NAME smack_inode_set_acl - Smack check for setting posix acls SYNOPSIS int smack_inode_set_acl (struct mnt_idmap *idmap , struct dentry *dentry , const char *acl_name , struct posix_acl *kacl ); ARGUMENTS idmap idmap of the mnt this request came from dentry the object acl_name name of th...
smack_inode_setattr(9)
NAME smack_inode_setattr - Smack check for setting attributes SYNOPSIS int smack_inode_setattr (struct mnt_idmap *idmap , struct dentry *dentry , struct iattr *iattr ); ARGUMENTS idmap idmap of the mount dentry the object iattr for the force flag DESCRIPTION Returns 0 if access is pe...
smack_inode_setsecurity(9)
NAME smack_inode_setsecurity - set smack xattrs SYNOPSIS int smack_inode_setsecurity (struct inode *inode , const char *name , const void *value , size_t size , int flags ); ARGUMENTS inode the object name attribute name value attribute value size size of the attribut...
smack_inode_setxattr(9)
NAME smack_inode_setxattr - Smack check for setting xattrs SYNOPSIS int smack_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 the object name name of the attr...
smack_inode_unlink(9)
NAME smack_inode_unlink - Smack check on inode deletion SYNOPSIS int smack_inode_unlink (struct inode *dir , struct dentry *dentry ); ARGUMENTS dir containing directory object dentry file to unlink DESCRIPTION Returns 0 if current can write the containing directory and the object, error code oth...
smack_inode_xattr_skipcap(9)
NAME smack_inode_xattr_skipcap - Skip the xattr capability checks? SYNOPSIS int smack_inode_xattr_skipcap (const char *name ); ARGUMENTS name name of the xattr DESCRIPTION Returns 1 to indicate that Smack "owns" the access control rights to xattrs named name; the LSM layer should avoid enforcing any trad...
smack_ipc_alloc_security(9)
NAME smack_ipc_alloc_security - Set the security blob for ipc SYNOPSIS int smack_ipc_alloc_security (struct kern_ipc_perm *isp ); ARGUMENTS isp the object DESCRIPTION Returns 0 SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), ...
smack_ipc_getlsmprop(9)
NAME smack_ipc_getlsmprop - Extract smack security data SYNOPSIS void smack_ipc_getlsmprop (struct kern_ipc_perm *ipp , struct lsm_prop *prop ); ARGUMENTS ipp the object permissions prop where result will be saved SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_s...
smack_ipc_permission(9)
NAME smack_ipc_permission - Smack access for ipc_permission() SYNOPSIS int smack_ipc_permission (struct kern_ipc_perm *ipp , short flag ); ARGUMENTS ipp the object permissions flag access requested DESCRIPTION Returns 0 if current has read and write access, error code otherwise SEE ALSO Kerne...
smack_ipv4host_label(9)
NAME smack_ipv4host_label - check host based restrictions SYNOPSIS struct smack_known * smack_ipv4host_label (struct sockaddr_in *sip ); ARGUMENTS sip the object end DESCRIPTION looks for host based access restrictions This version will only be appropriate for really small sets of single label hosts. The ...
smack_ipv6host_label(9)
NAME smack_ipv6host_label - check host based restrictions SYNOPSIS struct smack_known * smack_ipv6host_label (struct sockaddr_in6 *sip ); ARGUMENTS sip the object end DESCRIPTION looks for host based access restrictions This version will only be appropriate for really small sets of single label hosts. The c...
smack_ismaclabel(9)
NAME smack_ismaclabel - check if xattr @name references a smack MAC label SYNOPSIS int smack_ismaclabel (const char *name ); ARGUMENTS name Full xattr name to check. SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_copy_rela...
smack_kernel_act_as(9)
NAME smack_kernel_act_as - Set the subjective context in a set of credentials SYNOPSIS int smack_kernel_act_as (struct cred *new , u32 secid ); ARGUMENTS new points to the set of credentials to be modified. secid specifies the security ID to be set DESCRIPTION Set the security data for a kernel...
smack_kernel_create_files_as(9)
NAME smack_kernel_create_files_as - Set the file creation label in a set of creds SYNOPSIS int smack_kernel_create_files_as (struct cred *new , struct inode *inode ); ARGUMENTS new points to the set of credentials to be modified inode points to the inode to use as a reference DESCRIPTION Set th...
smack_key_alloc(9)
NAME smack_key_alloc - Set the key security blob SYNOPSIS int smack_key_alloc (struct key *key , const struct cred *cred , unsigned long flags ); ARGUMENTS key object cred the credentials to use flags unused DESCRIPTION No allocation required Returns 0 SEE ALSO Kernel file ./s...
smack_key_permission(9)
NAME smack_key_permission - Smack access on a key SYNOPSIS int smack_key_permission (key_ref_t key_ref , const struct cred *cred , enum key_need_perm need_perm ); ARGUMENTS key_ref gets to the object cred the credentials to use need_perm requested key permission DESCRIPTION Return 0 if t...
smack_log(9)
NAME smack_log - Audit the granting or denial of permissions. SYNOPSIS void smack_log (char *subject_label , char *object_label , int request , int result , struct smk_audit_info *ad ); ARGUMENTS subject_label smack label of the requester object_label smack label of the object being accesse...
smack_log_callback(9)
NAME smack_log_callback - SMACK specific information will be called by generic audit code SYNOPSIS void smack_log_callback (struct audit_buffer *ab , void *a ); ARGUMENTS ab the audit_buffer a audit_data SEE ALSO Kernel file ./security/smack/smack_access.c smk_access_entry(9), smk_acce...
smack_lsmprop_to_secctx(9)
NAME smack_lsmprop_to_secctx - return the smack label SYNOPSIS int smack_lsmprop_to_secctx (struct lsm_prop *prop , struct lsm_context *cp ); ARGUMENTS prop includes incoming Smack data cp destination DESCRIPTION Exists for audit code. SEE ALSO Kernel file ./security/smack/smack_lsm.c smk...
smack_mmap_file(9)
NAME smack_mmap_file - Check permissions for a mmap operation. SYNOPSIS int smack_mmap_file (struct file *file , unsigned long reqprot , unsigned long prot , unsigned long flags ); ARGUMENTS file contains the file structure for file to map (may be NULL). reqprot contains the protection requested by...
smack_msg_msg_alloc_security(9)
NAME smack_msg_msg_alloc_security - Set the security blob for msg_msg SYNOPSIS int smack_msg_msg_alloc_security (struct msg_msg *msg ); ARGUMENTS msg the object DESCRIPTION Returns 0 SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules...
smack_msg_queue_associate(9)
NAME smack_msg_queue_associate - Smack access check for msg_queue SYNOPSIS int smack_msg_queue_associate (struct kern_ipc_perm *isp , int msqflg ); ARGUMENTS isp the object msqflg access requested DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel f...
smack_msg_queue_msgctl(9)
NAME smack_msg_queue_msgctl - Smack access check for msg_queue SYNOPSIS int smack_msg_queue_msgctl (struct kern_ipc_perm *isp , int cmd ); ARGUMENTS isp the object cmd what it wants to do DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel file ....
smack_msg_queue_msgrcv(9)
NAME smack_msg_queue_msgrcv - Smack access check for msg_queue SYNOPSIS int smack_msg_queue_msgrcv (struct kern_ipc_perm *isp , struct msg_msg *msg , struct task_struct *target , long type , int mode ); ARGUMENTS isp the object msg unused target unused type unused ...
smack_msg_queue_msgsnd(9)
NAME smack_msg_queue_msgsnd - Smack access check for msg_queue SYNOPSIS int smack_msg_queue_msgsnd (struct kern_ipc_perm *isp , struct msg_msg *msg , int msqflg ); ARGUMENTS isp the object msg unused msqflg access requested DESCRIPTION Returns 0 if current has the requested acces...
smack_netlbl_add(9)
NAME smack_netlbl_add - Set the secattr on a socket SYNOPSIS int smack_netlbl_add (struct sock *sk ); ARGUMENTS sk the socket DESCRIPTION Attach the outbound smack value (smk_out) to the socket. Returns 0 on success or an error code SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_...
smack_netlbl_delete(9)
NAME smack_netlbl_delete - Remove the secattr from a socket SYNOPSIS void smack_netlbl_delete (struct sock *sk ); ARGUMENTS sk the socket DESCRIPTION Remove the outbound smack value from a socket SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), ...
smack_of_ipc(9)
NAME smack_of_ipc - the smack pointer for the ipc SYNOPSIS struct smack_known * smack_of_ipc (struct kern_ipc_perm *isp ); ARGUMENTS isp the object DESCRIPTION Returns a pointer to the smack value SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), ...
smack_populate_secattr(9)
NAME smack_populate_secattr - fill in the smack_known netlabel information SYNOPSIS int smack_populate_secattr (struct smack_known *skp ); ARGUMENTS skp pointer to the structure to fill DESCRIPTION Populate the netlabel secattr structure for a Smack label. Returns 0 unless creating the category mapping fail...
smack_post_notification(9)
NAME smack_post_notification - Smack access to post a notification to a queue SYNOPSIS int smack_post_notification (const struct cred *w_cred , const struct cred *cred , struct watch_notification *n ); ARGUMENTS w_cred The credentials of the watcher. cred The credentials of the event source (may b...
smack_privileged(9)
NAME smack_privileged - are all privilege requirements met SYNOPSIS bool smack_privileged (int cap ); ARGUMENTS cap The requested capability DESCRIPTION Is the task privileged and allowed to be privileged by the onlycap rule. Returns true if the task is allowed to be privileged, false if it's not. SEE ALSO...
smack_privileged_cred(9)
NAME smack_privileged_cred - are all privilege requirements met by cred SYNOPSIS bool smack_privileged_cred (int cap , const struct cred *cred ); ARGUMENTS cap The requested capability cred the credential to use DESCRIPTION Is the task privileged and allowed to be privileged by the onlycap rul...
smack_ptrace_access_check(9)
NAME smack_ptrace_access_check - Smack approval on PTRACE_ATTACH SYNOPSIS int smack_ptrace_access_check (struct task_struct *ctp , unsigned int mode ); ARGUMENTS ctp child task pointer mode ptrace attachment mode (PTRACE_MODE_*) DESCRIPTION Returns 0 if access is OK, an error code otherwise Do...
smack_ptrace_traceme(9)
NAME smack_ptrace_traceme - Smack approval on PTRACE_TRACEME SYNOPSIS int smack_ptrace_traceme (struct task_struct *ptp ); ARGUMENTS ptp parent task pointer DESCRIPTION Returns 0 if access is OK, an error code otherwise Do the capability checks, and require PTRACE_MODE_ATTACH. SEE ALSO Kernel file ./secur...
smack_sb_alloc_security(9)
NAME smack_sb_alloc_security - allocate a superblock blob SYNOPSIS int smack_sb_alloc_security (struct super_block *sb ); ARGUMENTS sb the superblock getting the blob DESCRIPTION Returns 0 on success or -ENOMEM on error. SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9...
smack_sb_statfs(9)
NAME smack_sb_statfs - Smack check on statfs SYNOPSIS int smack_sb_statfs (struct dentry *dentry ); ARGUMENTS dentry identifies the file system in question DESCRIPTION Returns 0 if current can read the floor of the filesystem, and error code otherwise SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fe...
smack_secctx_to_secid(9)
NAME smack_secctx_to_secid - return the secid for a smack label SYNOPSIS int smack_secctx_to_secid (const char *secdata , u32 seclen , u32 *secid ); ARGUMENTS secdata smack label seclen how long result is secid outgoing integer DESCRIPTION Exists for audit and networking code. SEE ALS...
smack_secid_to_secctx(9)
NAME smack_secid_to_secctx - return the smack label for a secid SYNOPSIS int smack_secid_to_secctx (u32 secid , struct lsm_context *cp ); ARGUMENTS secid incoming integer cp destination DESCRIPTION Exists for networking code. SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), ...
smack_sem_associate(9)
NAME smack_sem_associate - Smack access check for sem SYNOPSIS int smack_sem_associate (struct kern_ipc_perm *isp , int semflg ); ARGUMENTS isp the object semflg access requested DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel file ./security/sm...
smack_sem_semctl(9)
NAME smack_sem_semctl - Smack access check for sem SYNOPSIS int smack_sem_semctl (struct kern_ipc_perm *isp , int cmd ); ARGUMENTS isp the object cmd what it wants to do DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel file ./security/smack/smac...
smack_sem_semop(9)
NAME smack_sem_semop - Smack checks of semaphore operations SYNOPSIS int smack_sem_semop (struct kern_ipc_perm *isp , struct sembuf *sops , unsigned nsops , int alter ); ARGUMENTS isp the object sops unused nsops unused alter unused DESCRIPTION Treated as read and w...
smack_set_mnt_opts(9)
NAME smack_set_mnt_opts - set Smack specific mount options SYNOPSIS int smack_set_mnt_opts (struct super_block *sb , void *mnt_opts , unsigned long kern_flags , unsigned long *set_kern_flags ); ARGUMENTS sb the file system superblock mnt_opts Smack mount options kern_flags mount option fr...
smack_setprocattr(9)
NAME smack_setprocattr - Smack process attribute setting SYNOPSIS int smack_setprocattr (const char *name , void *value , size_t size ); ARGUMENTS name the name of the attribute in /proc/.../attr value the value to set size the size of the value DESCRIPTION Sets the Smack value of...
smack_setselfattr(9)
NAME smack_setselfattr - Set a Smack process attribute SYNOPSIS int smack_setselfattr (unsigned int attr , struct lsm_ctx *ctx , u32 size , u32 flags ); ARGUMENTS attr which attribute to set ctx buffer containing the data size size of ctx flags reserved, must be zer...
smack_shm_associate(9)
NAME smack_shm_associate - Smack access check for shm SYNOPSIS int smack_shm_associate (struct kern_ipc_perm *isp , int shmflg ); ARGUMENTS isp the object shmflg access requested DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel file ./security/sm...
smack_shm_shmat(9)
NAME smack_shm_shmat - Smack access for shmat SYNOPSIS int smack_shm_shmat (struct kern_ipc_perm *isp , char __user *shmaddr , int shmflg ); ARGUMENTS isp the object shmaddr unused shmflg access requested DESCRIPTION Returns 0 if current has the requested access, error code otherwise...
smack_shm_shmctl(9)
NAME smack_shm_shmctl - Smack access check for shm SYNOPSIS int smack_shm_shmctl (struct kern_ipc_perm *isp , int cmd ); ARGUMENTS isp the object cmd what it wants to do DESCRIPTION Returns 0 if current has the requested access, error code otherwise SEE ALSO Kernel file ./security/smack/sm...
smack_sk_alloc_security(9)
NAME smack_sk_alloc_security - Allocate a socket blob SYNOPSIS int smack_sk_alloc_security (struct sock *sk , int family , gfp_t gfp_flags ); ARGUMENTS sk the socket family unused gfp_flags memory allocation flags DESCRIPTION Assign Smack pointers to current Returns 0 on success, -ENO...
smack_sk_clone_security(9)
NAME smack_sk_clone_security - Copy security context SYNOPSIS void smack_sk_clone_security (const struct sock *sk , struct sock *newsk ); ARGUMENTS sk the old socket newsk the new socket DESCRIPTION Copy the security context of the old socket pointer to the cloned SEE ALSO Kernel file ./sec...
smack_sk_free_security(9)
NAME smack_sk_free_security - Free a socket blob SYNOPSIS void smack_sk_free_security (struct sock *sk ); ARGUMENTS sk the socket DESCRIPTION Clears the blob pointer SEE ALSO Kernel file ./security/smack/smack_lsm.c smk_fetch(9), init_inode_smack(9), init_task_smack(9), smk_copy_rules(9), smk_copy_r...
smack_socket_bind(9)
NAME smack_socket_bind - record port binding information. SYNOPSIS int smack_socket_bind (struct socket *sock , struct sockaddr *address , int addrlen ); ARGUMENTS sock the socket address the port address addrlen size of the address DESCRIPTION Records the label bound to a port. Retur...