Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
4f0e0186
Unverified
Commit
4f0e0186
authored
Mar 18, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: handle on-exec
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a45cba87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
apparmor.c
src/lxc/lsm/apparmor.c
+3
-3
No files found.
src/lxc/lsm/apparmor.c
View file @
4f0e0186
...
@@ -1165,15 +1165,15 @@ static int apparmor_process_label_fd_get(struct lsm_ops *ops, pid_t pid, bool on
...
@@ -1165,15 +1165,15 @@ static int apparmor_process_label_fd_get(struct lsm_ops *ops, pid_t pid, bool on
static
int
apparmor_process_label_set_at
(
struct
lsm_ops
*
ops
,
int
label_fd
,
const
char
*
label
,
bool
on_exec
)
static
int
apparmor_process_label_set_at
(
struct
lsm_ops
*
ops
,
int
label_fd
,
const
char
*
label
,
bool
on_exec
)
{
{
__do_free
char
*
command
=
NULL
;
int
ret
=
-
1
;
int
ret
=
-
1
;
size_t
len
;
size_t
len
;
__do_free
char
*
command
=
NULL
;
if
(
on_exec
)
if
(
on_exec
)
log_trace
(
0
,
"Changing AppArmor profile on exec not supported"
);
TRACE
(
"Changing AppArmor profile on exec not supported"
);
len
=
strlen
(
label
)
+
strlen
(
"changeprofile "
)
+
1
;
len
=
strlen
(
label
)
+
strlen
(
"changeprofile "
)
+
1
;
command
=
m
alloc
(
len
);
command
=
z
alloc
(
len
);
if
(
!
command
)
if
(
!
command
)
return
ret_errno
(
ENOMEM
);
return
ret_errno
(
ENOMEM
);
...
...
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