Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_lookup_profile - find a profile by its full or partial name*@ns: the namespace to start from (NOT NULL)*@hname: name to do lookup on. Does not contain namespace prefix (NOT NULL)*@n: size of @hname* Returns: refcounted profile or NULL if not found

Proto:struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, size_t n)

Type:struct aa_profile

Parameter:

TypeParameterName
struct aa_ns *ns
const char *hname
size_tn
437  _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
438  Do
439  profile = __lookupn_profile - lookup the profile matching @hname*@base: base list to start looking up profile name from (NOT NULL)*@hname: hierarchical profile name (NOT NULL)*@n: length of @hname* Requires: rcu_read_lock be held* Returns: unrefcounted profile
440  When profile && Not aa_get_profile_not0 - increment refcount on profile @p found via lookup*@p: profile (MAYBE NULL)* Returns: pointer to @p if @p is NULL will return NULL* Requires: @p must be held with valid refcount when called cycle
441  _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()
444  If Not profile && strncmp(hname, "unconfined", n) == 0 Then profile = aa_get_newest_profile - simple wrapper fn to wrap the label version*@p: profile (NOT NULL)* Returns refcount to newest version of the profile (maybe @p)* Requires: @p must be held with a valid refcount
448  Return profile
Caller
NameDescribe
aa_lookup_profile
aa_fqlookupn_profile