Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_access.c Create Date:2022-07-28 19:25:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_from_secid - find the Smack label associated with a secid*@secid: an integer that might be associated with a Smack label* Returns a pointer to the appropriate Smack label entry if there is one,* otherwise a pointer to the invalid Smack label.

Proto:struct smack_known *smack_from_secid(const unsigned int secid)

Type:struct smack_known

Parameter:

TypeParameterName
const unsigned intsecid
596  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
598  If smk_secid == secid Then
599  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
600  Return skp
608  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
609  Return smack_known_huh
Caller
NameDescribe
smack_from_secattrsmack_from_secattr - Convert a netlabel attr.mls.lvl/attr.mls.cat pair to smack*@sap: netlabel secattr*@ssp: socket security information* Returns a pointer to a Smack label entry found on the label list.
smack_socket_sock_rcv_skbsmack_socket_sock_rcv_skb - Smack packet delivery access check*@sk: socket*@skb: packet* Returns 0 if the packet should be delivered, an error code otherwise
smack_inet_conn_requestsmack_inet_conn_request - Smack access check on connect*@sk: socket involved*@skb: packet*@req: unused* Returns 0 if a task with the packet label could write to* the socket, otherwise an error code
smack_inet_csk_clonesmack_inet_csk_clone - Copy the connection information to the new socket*@sk: the new socket*@req: the connection's request_sock* Transfer the connection's peer label to the newly created socket.
smack_audit_rule_matchsmack_audit_rule_match - Audit given object ?*@secid: security id for identifying the object to test*@field: audit rule flags given from user-space*@op: required testing operator*@vrule: smack internal rule presentation* The core Audit hook
smack_secid_to_secctxsmack_secid_to_secctx - return the smack label for a secid*@secid: incoming integer*@secdata: destination*@seclen: how long it is* Exists for networking code.