Lines Matching full:security

2  * Linux Security Module interfaces
28 #include <linux/security.h>
33 * union security_list_options - Linux Security Module hook function list
35 * Security hooks for program execution operations.
38 * If the setup in prepare_exec_creds did not setup @bprm->cred->security
40 * @bprm->cred->security to be what commit_creds needs to install for the
42 * (e.g. for transitions between security domains).
55 * between security domains).
64 * begin. It allows a check against the @bprm->cred->security value
71 * Prepare to install the new security attributes of a process being
80 * Tidy up after the installation of the new security attributes of a
87 * Security hooks for mount using fs_context.
91 * Allocate and attach a security structure to sc->security. This pointer
103 * Security hooks for filesystem operations.
106 * Allocate and attach a security structure to the sb->s_security field.
141 * so that the security module can extract security-specific mount
143 * This also allows the original mount data to be stripped of security-
146 * @copy copied data which will be passed to the security module.
155 * Extracts security system specific mount options and verifies no changes
176 * Set the security relevant mount options used for a superblock
177 * @sb the superblock to set security mount options for
180 * Copy all security options from a given superblock to another
186 * Parse a string of security data filling in the opts structure
213 * Security hooks for inode operations.
216 * Allocate and attach a security structure to @inode->i_security. The
223 * Deallocate the inode security structure and set @inode->i_security to
226 * Obtain the security attribute name suffix and value to set on a newly
227 * created inode and set up the incore security field for the new inode.
233 * If the security module does not use security attributes or does
234 * not wish to put a security attribute on this particular inode,
243 * -EOPNOTSUPP if no security attribute is needed, or
246 * Set up the incore security field for the new anonymous inode
247 * and return whether the inode creation is permitted by the security
252 * Returns 0 on success, -EACCES if the security module denies the
393 * existing Linux permission function, so a security module can use it to
422 * Update inode security field after successful setxattr operation.
438 * security label associated with @name for @inode via @buffer. Note that
439 * @name is the remainder of the attribute name after the security prefix
444 * Set the security label associated with @name for @inode from the
448 * security. prefix has been removed.
451 * Copy the extended attribute names for the security labels
463 * The setuid bit is being removed. Remove similar security labels.
476 * overlay filesystem. Security module can prepare a set of new creds
488 * security module does not know about attribute or a negative error code
492 * Fill in @inode security information for a @dentry if allowed.
498 * Security hooks for kernfs node operations
501 * Initialize the security context of a newly created kernfs node based
507 * Security hooks for file operations
511 * called by various operations that read or write files. A security
521 * Security modules must handle this separately if they need such
527 * Allocate and attach a security structure to the file->f_security field.
528 * The security field is initialized to NULL when the structure is first
533 * Deallocate and free any security structures stored in file->f_security.
542 * should never be used by the security module.
574 * never be used by the security module.
580 * Save owner security information (typically from current->security) in
588 * struct file, so the file structure (and associated security information)
595 * This hook allows security modules to control the ability of a process
604 * Security hooks for task operations.
622 * Deallocate and clear the cred->security field in a set of credentials.
633 * Retrieve the security identifier of the cred structure @c
639 * @secid specifies the security ID to be set
720 * Retrieve the subjective security identifier of the task_struct in @p
726 * Retrieve the objective security identifier of the task_struct in @p
798 * Set the security attributes for an inode based on an associated task's
799 * security attributes, e.g. for /proc/pid inodes.
803 * Security hooks for Netlink messaging.
806 * Save security information for a netlink message so that permission
807 * checking can be performed when the message is processed. The security
816 * Security hooks for Unix domain networking.
842 * Security hooks for socket operations.
852 * This hook allows a module to update or allocate a per-socket security
853 * structure. Note that the security field was not added directly to the
854 * socket structure, but rather, the socket security information is stored
856 * allocate and attach security information to
949 * This hook allows the security module to provide peer socket security
954 * @optval userspace memory where the security state is to be copied.
956 * of the security state.
962 * This hook allows the security module to provide peer socket security
966 * security state returned by this hook for a packet via the SCM_SECURITY
973 * Allocate and attach a security structure to the sk->sk_security field,
974 * which is used to copy security attributes between local stream sockets.
976 * Deallocate security structure.
978 * Clone/copy security structure.
1001 * This hook allows a module to allocate a security structure for a TUN
1003 * @security pointer to a security structure pointer.
1006 * This hook allows a module to free the security structure for a TUN
1008 * @security pointer to the TUN device's security structure
1013 * @security pointer to the TUN device's security structure.
1015 * This hook can be used by the module to update any security state
1018 * @security pointer to the TUN device's security structure.
1020 * This hook can be used by the module to update any security state
1021 * associated with the TUN device's security structure.
1022 * @security pointer to the TUN devices's security structure.
1024 * Security hooks for SCTP
1028 * the security module.
1051 * Security hooks for Infiniband
1057 * @sec pointer to a security structure.
1062 * @sec pointer to a security structure.
1064 * Allocate a security structure for Infiniband objects.
1065 * @sec pointer to a security structure pointer.
1068 * Deallocate an Infiniband security structure.
1069 * @sec contains the security structure to be freed.
1071 * Security hooks for XFRM operations.
1074 * @ctxp is a pointer to the xfrm_sec_ctx being added to Security Policy
1076 * @sec_ctx contains the security context information being provided by
1078 * Allocate a security structure to the xp->security field; the security
1085 * Allocate a security structure in new_ctxp that contains the
1090 * Deallocate xp->security.
1093 * Authorize deletion of xp->security.
1095 * @x contains the xfrm_state being added to the Security Association
1097 * @sec_ctx contains the security context information being provided by
1099 * Allocate a security structure to the x->security field; the security
1104 * @x contains the xfrm_state being added to the Security Association
1106 * @polsec contains the policy's security context.
1109 * Allocate a security structure to the x->security field; the security
1115 * Deallocate x->security.
1118 * Authorize deletion of x->security.
1122 * @fl_secid contains the flow security label that is used to authorize
1141 * Security hooks affecting all Key Management operations
1144 * Permit allocation of a key and assign security data. Note that key does
1150 * Notification of destruction; free security data.
1158 * evaluate the security data on the key.
1162 * Get a textual representation of the security context attached to a key
1173 * Security hooks affecting all System V IPC operations.
1186 * Security hooks for individual messages held in System V IPC message queues
1189 * Allocate and attach a security structure to the msg->security field.
1190 * The security field is initialized to NULL when the structure is first
1195 * Deallocate the security structure for this message.
1198 * Security hooks for System V IPC Message Queues
1201 * Allocate and attach a security structure to the
1202 * @perm->security field. The security field is initialized to
1207 * Deallocate security field @perm->security for the message queue.
1243 * Security hooks for System V Shared Memory Segments
1246 * Allocate and attach a security structure to the @perm->security
1247 * field. The security field is initialized to NULL when the structure is
1252 * Deallocate the security structure @perm->security for the memory segment.
1278 * Security hooks for System V Semaphores
1281 * Allocate and attach a security structure to the @perm->security
1282 * field. The security field is initialized to NULL when the structure is
1287 * Deallocate security structure @perm->security for the semaphore.
1336 * Security modules may also want to perform a process tracing check
1339 * binprm_security_ops if the process is being traced and its security
1375 * @opts contains options for the capable check <include/linux/security.h>
1408 * Convert secid to security context. If secdata is NULL the length of
1413 * @secid contains the security ID.
1414 * @secdata contains the pointer that stores the converted security
1418 * Convert security context to secid.
1419 * @secid contains the pointer to the generated security ID.
1420 * @secdata contains the security context.
1423 * Release the security context.
1424 * @secdata contains the security context.
1425 * @seclen contains the length of the security context.
1427 * Security hooks for Audit
1448 * @secid contains the security id in question.
1460 * Notify the security module that it must revalidate the security context
1464 * Notify the security module of what the security context of an inode
1465 * should be. Initializes the incore security context managed by the
1466 * security module for this inode. Example usage: NFS client invokes
1467 * this hook to initialize the security context in its incore inode to the
1471 * @inode we wish to set the security context of.
1476 * Change the security context of an inode. Updates the
1477 * incore security context managed by the security module and invokes the
1480 * this hook to change the security context in its incore inode and on the
1484 * @dentry contains the inode we wish to set the security context of.
1489 * On success, returns 0 and fills out @ctx and @ctxlen with the security
1491 * @inode we wish to get the security context of.
1492 * @ctx is a pointer in which to place the allocated security context.
1495 * Security hooks for the general notification queue:
1509 * Security hooks for using the eBPF maps and programs functionalities through
1514 * into the kernel. The actual security module can implement their own
1531 * Initialize the security field inside bpf map.
1534 * Clean up the security information stored inside bpf map.
1537 * Initialize the security field inside bpf program.
1540 * Clean up the security information stored inside bpf prog.
1548 * Security hooks for perf events
1553 * Allocate and save perf_event security info.
1555 * Release (free) perf_event security info.
1557 * Read perf_event security info if allowed.
1559 * Write perf_event security info if allowed.
1574 * Security module hook list structure.
1585 * Security blob size or offset data.
1650 * Assuring the safety of deleting a security module is up to
1651 * the security module involved. This may entail ordering the