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
727c3073
Commit
727c3073
authored
Dec 15, 2015
by
Wesley M
Committed by
Stéphane Graber
Dec 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring conditional directives.
Signed-off-by:
Wesley Marques
<
wesleymr.27@gmail.com
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
ab572367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
seccomp.c
src/lxc/seccomp.c
+5
-3
No files found.
src/lxc/seccomp.c
View file @
727c3073
...
...
@@ -558,6 +558,7 @@ int lxc_read_seccomp_config(struct lxc_conf *conf)
{
FILE
*
f
;
int
ret
;
int
check_seccomp_attr_set
;
if
(
!
conf
->
seccomp
)
return
0
;
...
...
@@ -578,11 +579,12 @@ int lxc_read_seccomp_config(struct lxc_conf *conf)
/* turn of no-new-privs. We don't want it in lxc, and it breaks
* with apparmor */
if
(
seccomp_attr_set
(
#if HAVE_SCMP_FILTER_CTX
conf
->
seccomp_ctx
,
check_seccomp_attr_set
=
seccomp_attr_set
(
conf
->
seccomp_ctx
,
SCMP_FLTATR_CTL_NNP
,
0
);
#else
check_seccomp_attr_set
=
seccomp_attr_set
(
SCMP_FLTATR_CTL_NNP
,
0
);
#endif
SCMP_FLTATR_CTL_NNP
,
0
)
)
{
if
(
check_seccomp_attr_set
)
{
ERROR
(
"failed to turn off n-new-privs"
);
return
-
1
;
}
...
...
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