Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ae3b3165
Commit
ae3b3165
authored
Jun 02, 2017
by
John Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: cleanup __find_child()
Signed-off-by:
John Johansen
<
john.johansen@canonical.com
>
parent
39d84824
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
security/apparmor/policy.c
security/apparmor/policy.c
+8
-8
No files found.
security/apparmor/policy.c
View file @
ae3b3165
...
...
@@ -397,33 +397,33 @@ struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat,
/* TODO: profile accounting - setup in remove */
/**
* __
find_child - find a profile on @head list with a name matching
@name
* __
strn_find_child - find a profile on @head list using substring of
@name
* @head: list to search (NOT NULL)
* @name: name of profile (NOT NULL)
* @len: length of @name substring to match
*
* Requires: rcu_read_lock be held
*
* Returns: unrefcounted profile ptr, or NULL if not found
*/
static
struct
aa_profile
*
__find_child
(
struct
list_head
*
head
,
const
char
*
name
)
static
struct
aa_profile
*
__strn_find_child
(
struct
list_head
*
head
,
const
char
*
name
,
int
len
)
{
return
(
struct
aa_profile
*
)
__policy_
find
(
head
,
name
);
return
(
struct
aa_profile
*
)
__policy_
strn_find
(
head
,
name
,
len
);
}
/**
* __
strn_find_child - find a profile on @head list using substring of
@name
* __
find_child - find a profile on @head list with a name matching
@name
* @head: list to search (NOT NULL)
* @name: name of profile (NOT NULL)
* @len: length of @name substring to match
*
* Requires: rcu_read_lock be held
*
* Returns: unrefcounted profile ptr, or NULL if not found
*/
static
struct
aa_profile
*
__strn_find_child
(
struct
list_head
*
head
,
const
char
*
name
,
int
len
)
static
struct
aa_profile
*
__find_child
(
struct
list_head
*
head
,
const
char
*
name
)
{
return
(
struct
aa_profile
*
)
__policy_strn_find
(
head
,
name
,
len
);
return
__strn_find_child
(
head
,
name
,
strlen
(
name
)
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment