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
65afdf08
Commit
65afdf08
authored
May 15, 2017
by
0x0916
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seccomp: s/n-new-privs/no-new-privs/g
Signed-off-by:
0x0916
<
w@laoqinren.net
>
parent
179029df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
seccomp.c
src/lxc/seccomp.c
+3
-3
No files found.
src/lxc/seccomp.c
View file @
65afdf08
...
...
@@ -217,7 +217,7 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch, uint32_t default_policy_
return
NULL
;
}
if
(
seccomp_attr_set
(
ctx
,
SCMP_FLTATR_CTL_NNP
,
0
))
{
ERROR
(
"Failed to turn off n-new-privs."
);
ERROR
(
"Failed to turn off n
o
-new-privs."
);
seccomp_release
(
ctx
);
return
NULL
;
}
...
...
@@ -398,7 +398,7 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
return
-
1
;
}
if
(
seccomp_attr_set
(
conf
->
seccomp_ctx
,
SCMP_FLTATR_CTL_NNP
,
0
))
{
ERROR
(
"Failed to turn off n-new-privs."
);
ERROR
(
"Failed to turn off n
o
-new-privs."
);
return
-
1
;
}
#ifdef SCMP_FLTATR_ATL_TSKIP
...
...
@@ -735,7 +735,7 @@ int lxc_read_seccomp_config(struct lxc_conf *conf)
check_seccomp_attr_set
=
seccomp_attr_set
(
SCMP_FLTATR_CTL_NNP
,
0
);
#endif
if
(
check_seccomp_attr_set
)
{
ERROR
(
"Failed to turn off n-new-privs."
);
ERROR
(
"Failed to turn off n
o
-new-privs."
);
return
-
1
;
}
#ifdef SCMP_FLTATR_ATL_TSKIP
...
...
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