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.
138 * so that the security module can extract security-specific mount
140 * This also allows the original mount data to be stripped of security-
143 * @copy copied data which will be passed to the security module.
146 * Extracts security system specific mount options and verifies no changes
167 * Set the security relevant mount options used for a superblock
168 * @sb the superblock to set security mount options for
171 * Copy all security options from a given superblock to another
177 * Parse a string of security data filling in the opts structure
204 * Security hooks for inode operations.
207 * Allocate and attach a security structure to @inode->i_security. The
214 * Deallocate the inode security structure and set @inode->i_security to
217 * Obtain the security attribute name suffix and value to set on a newly
218 * created inode and set up the incore security field for the new inode.
224 * If the security module does not use security attributes or does
225 * not wish to put a security attribute on this particular inode,
234 * -EOPNOTSUPP if no security attribute is needed, or
375 * existing Linux permission function, so a security module can use it to
404 * Update inode security field after successful setxattr operation.
420 * security label associated with @name for @inode via @buffer. Note that
421 * @name is the remainder of the attribute name after the security prefix
426 * Set the security label associated with @name for @inode from the
430 * security. prefix has been removed.
433 * Copy the extended attribute names for the security labels
445 * The setuid bit is being removed. Remove similar security labels.
457 * overlay filesystem. Security module can prepare a set of new creds
469 * security module does not know about attribute or a negative error code
473 * Fill in @inode security information for a @dentry if allowed.
479 * Security hooks for kernfs node operations
482 * Initialize the security context of a newly created kernfs node based
488 * Security hooks for file operations
492 * called by various operations that read or write files. A security
502 * Security modules must handle this separately if they need such
508 * Allocate and attach a security structure to the file->f_security field.
509 * The security field is initialized to NULL when the structure is first
514 * Deallocate and free any security structures stored in file->f_security.
523 * should never be used by the security module.
559 * never be used by the security module.
565 * Save owner security information (typically from current->security) in
573 * struct file, so the file structure (and associated security information)
580 * This hook allows security modules to control the ability of a process
589 * Security hooks for task operations.
607 * Deallocate and clear the cred->security field in a set of credentials.
618 * Retrieve the security identifier of the cred structure @c
624 * @secid specifies the security ID to be set
705 * Retrieve the security identifier of the process @p.
777 * Set the security attributes for an inode based on an associated task's
778 * security attributes, e.g. for /proc/pid inodes.
782 * Security hooks for Netlink messaging.
785 * Save security information for a netlink message so that permission
786 * checking can be performed when the message is processed. The security
795 * Security hooks for Unix domain networking.
821 * Security hooks for socket operations.
831 * This hook allows a module to update or allocate a per-socket security
832 * structure. Note that the security field was not added directly to the
833 * socket structure, but rather, the socket security information is stored
835 * allocate and attach security information to
928 * This hook allows the security module to provide peer socket security
933 * @optval userspace memory where the security state is to be copied.
935 * of the security state.
941 * This hook allows the security module to provide peer socket security
945 * security state returned by this hook for a packet via the SCM_SECURITY
952 * Allocate and attach a security structure to the sk->sk_security field,
953 * which is used to copy security attributes between local stream sockets.
955 * Deallocate security structure.
957 * Clone/copy security structure.
980 * This hook allows a module to allocate a security structure for a TUN
982 * @security pointer to a security structure pointer.
985 * This hook allows a module to free the security structure for a TUN
987 * @security pointer to the TUN device's security structure
992 * @security pointer to the TUN device's security structure.
994 * This hook can be used by the module to update any security state
997 * @security pointer to the TUN device's security structure.
999 * This hook can be used by the module to update any security state
1000 * associated with the TUN device's security structure.
1001 * @security pointer to the TUN devices's security structure.
1003 * Security hooks for SCTP
1007 * the security module.
1030 * Security hooks for Infiniband
1036 * @sec pointer to a security structure.
1041 * @sec pointer to a security structure.
1043 * Allocate a security structure for Infiniband objects.
1044 * @sec pointer to a security structure pointer.
1047 * Deallocate an Infiniband security structure.
1048 * @sec contains the security structure to be freed.
1050 * Security hooks for XFRM operations.
1053 * @ctxp is a pointer to the xfrm_sec_ctx being added to Security Policy
1055 * @sec_ctx contains the security context information being provided by
1057 * Allocate a security structure to the xp->security field; the security
1064 * Allocate a security structure in new_ctxp that contains the
1069 * Deallocate xp->security.
1072 * Authorize deletion of xp->security.
1074 * @x contains the xfrm_state being added to the Security Association
1076 * @sec_ctx contains the security context information being provided by
1078 * Allocate a security structure to the x->security field; the security
1083 * @x contains the xfrm_state being added to the Security Association
1085 * @polsec contains the policy's security context.
1088 * Allocate a security structure to the x->security field; the security
1094 * Deallocate x->security.
1097 * Authorize deletion of x->security.
1101 * @fl_secid contains the flow security label that is used to authorize
1120 * Security hooks affecting all Key Management operations
1123 * Permit allocation of a key and assign security data. Note that key does
1129 * Notification of destruction; free security data.
1137 * evaluate the security data on the key.
1141 * Get a textual representation of the security context attached to a key
1152 * Security hooks affecting all System V IPC operations.
1165 * Security hooks for individual messages held in System V IPC message queues
1168 * Allocate and attach a security structure to the msg->security field.
1169 * The security field is initialized to NULL when the structure is first
1174 * Deallocate the security structure for this message.
1177 * Security hooks for System V IPC Message Queues
1180 * Allocate and attach a security structure to the
1181 * @perm->security field. The security field is initialized to
1186 * Deallocate security field @perm->security for the message queue.
1222 * Security hooks for System V Shared Memory Segments
1225 * Allocate and attach a security structure to the @perm->security
1226 * field. The security field is initialized to NULL when the structure is
1231 * Deallocate the security structure @perm->security for the memory segment.
1257 * Security hooks for System V Semaphores
1260 * Allocate and attach a security structure to the @perm->security
1261 * field. The security field is initialized to NULL when the structure is
1266 * Deallocate security structure @perm->security for the semaphore.
1315 * Security modules may also want to perform a process tracing check
1318 * binprm_security_ops if the process is being traced and its security
1354 * @opts contains options for the capable check <include/linux/security.h>
1387 * Convert secid to security context. If secdata is NULL the length of
1392 * @secid contains the security ID.
1393 * @secdata contains the pointer that stores the converted security
1397 * Convert security context to secid.
1398 * @secid contains the pointer to the generated security ID.
1399 * @secdata contains the security context.
1402 * Release the security context.
1403 * @secdata contains the security context.
1404 * @seclen contains the length of the security context.
1406 * Security hooks for Audit
1427 * @secid contains the security id in question.
1439 * Notify the security module that it must revalidate the security context
1443 * Notify the security module of what the security context of an inode
1444 * should be. Initializes the incore security context managed by the
1445 * security module for this inode. Example usage: NFS client invokes
1446 * this hook to initialize the security context in its incore inode to the
1450 * @inode we wish to set the security context of.
1455 * Change the security context of an inode. Updates the
1456 * incore security context managed by the security module and invokes the
1459 * this hook to change the security context in its incore inode and on the
1463 * @dentry contains the inode we wish to set the security context of.
1468 * On success, returns 0 and fills out @ctx and @ctxlen with the security
1470 * @inode we wish to get the security context of.
1471 * @ctx is a pointer in which to place the allocated security context.
1474 * Security hooks for the general notification queue:
1488 * Security hooks for using the eBPF maps and programs functionalities through
1493 * into the kernel. The actual security module can implement their own
1510 * Initialize the security field inside bpf map.
1513 * Clean up the security information stored inside bpf map.
1516 * Initialize the security field inside bpf program.
1519 * Clean up the security information stored inside bpf prog.
1527 * Security hooks for perf events
1532 * Allocate and save perf_event security info.
1534 * Release (free) perf_event security info.
1536 * Read perf_event security info if allowed.
1538 * Write perf_event security info if allowed.
1553 * Security module hook list structure.
1564 * Security blob size or offset data.
1628 * Assuring the safety of deleting a security module is up to
1629 * the security module involved. This may entail ordering the