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
Kirill Smelkov
linux
Commits
a7ae3645
Commit
a7ae3645
authored
Sep 11, 2017
by
John Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: add the ability to get a task's secid
Signed-off-by:
John Johansen
<
john.johansen@canonical.com
>
parent
c0929212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
security/apparmor/lsm.c
security/apparmor/lsm.c
+8
-0
No files found.
security/apparmor/lsm.c
View file @
a7ae3645
...
...
@@ -711,6 +711,13 @@ static void apparmor_bprm_committed_creds(struct linux_binprm *bprm)
return
;
}
static
void
apparmor_task_getsecid
(
struct
task_struct
*
p
,
u32
*
secid
)
{
struct
aa_label
*
label
=
aa_get_task_label
(
p
);
*
secid
=
label
->
secid
;
aa_put_label
(
label
);
}
static
int
apparmor_task_setrlimit
(
struct
task_struct
*
task
,
unsigned
int
resource
,
struct
rlimit
*
new_rlim
)
{
...
...
@@ -1187,6 +1194,7 @@ static struct security_hook_list apparmor_hooks[] __lsm_ro_after_init = {
LSM_HOOK_INIT
(
task_free
,
apparmor_task_free
),
LSM_HOOK_INIT
(
task_alloc
,
apparmor_task_alloc
),
LSM_HOOK_INIT
(
task_getsecid
,
apparmor_task_getsecid
),
LSM_HOOK_INIT
(
task_setrlimit
,
apparmor_task_setrlimit
),
LSM_HOOK_INIT
(
task_kill
,
apparmor_task_kill
),
...
...
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