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
7b2352c7
Unverified
Commit
7b2352c7
authored
Jun 06, 2018
by
Stéphane Graber
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2378 from brauner/2018-06-05/revert_seccomp_strict
Revert "seccomp: make do_resolve_add_rule() more strict"
parents
1716351a
8c26014b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
seccomp.c
src/lxc/seccomp.c
+4
-2
No files found.
src/lxc/seccomp.c
View file @
7b2352c7
...
@@ -500,12 +500,14 @@ bool do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx,
...
@@ -500,12 +500,14 @@ bool do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx,
nr
=
seccomp_syscall_resolve_name
(
line
);
nr
=
seccomp_syscall_resolve_name
(
line
);
if
(
nr
==
__NR_SCMP_ERROR
)
{
if
(
nr
==
__NR_SCMP_ERROR
)
{
WARN
(
"Failed to resolve syscall
\"
%s
\"
"
,
line
);
WARN
(
"Failed to resolve syscall
\"
%s
\"
"
,
line
);
return
false
;
WARN
(
"This syscall will NOT be handled by seccomp"
);
return
true
;
}
}
if
(
nr
<
0
)
{
if
(
nr
<
0
)
{
WARN
(
"Got negative return value %d for syscall
\"
%s
\"
"
,
nr
,
line
);
WARN
(
"Got negative return value %d for syscall
\"
%s
\"
"
,
nr
,
line
);
return
false
;
WARN
(
"This syscall will NOT be handled by seccomp"
);
return
true
;
}
}
memset
(
&
arg_cmp
,
0
,
sizeof
(
arg_cmp
));
memset
(
&
arg_cmp
,
0
,
sizeof
(
arg_cmp
));
...
...
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