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
224d1fd2
Unverified
Commit
224d1fd2
authored
Jun 02, 2018
by
Christian Brauner
Committed by
GitHub
Jun 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2372 from flx42/more-seccomp-fixes
More seccomp fixes
parents
ef52e679
f42183e6
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 @
224d1fd2
...
...
@@ -184,14 +184,14 @@ static enum scmp_compare parse_v2_rule_op(char *s)
/*
* This function is used to parse the args string into the structure.
* args string format:[index,value,op,
valueTwo
] or [index,value,op]
* args string format:[index,value,op,
mask
] or [index,value,op]
* index: the index for syscall arguments (type uint)
* value: the value for syscall arguments (type uint64)
* op: the operator for syscall arguments(string),
a valid list of constants as of libseccomp v2.3.2 is
SCMP_CMP_NE,SCMP_CMP_LE,SCMP_CMP_LE, SCMP_CMP_EQ, SCMP_CMP_GE,
SCMP_CMP_GT, SCMP_CMP_MASKED_EQ, or !=,<=,==,>=,>,&=
*
valueTwo: the value for syscall arguments only used for mask eq
(type uint64, optional)
*
mask: the mask to apply on "value" for SCMP_CMP_MASKED_EQ
(type uint64, optional)
* Returns 0 on success, < 0 otherwise.
*/
static
int
get_seccomp_arg_value
(
char
*
key
,
struct
seccomp_v2_rule_args
*
rule_args
)
...
...
@@ -201,7 +201,7 @@ static int get_seccomp_arg_value(char *key, struct seccomp_v2_rule_args *rule_ar
uint64_t
mask
=
0
,
value
=
0
;
enum
scmp_compare
op
=
0
;
char
*
tmp
=
NULL
;
char
s
[
31
]
=
{
0
},
v
[
24
]
=
{
0
},
m
[
24
]
=
{
0
};
char
s
[
31
]
=
{
0
},
v
[
24
]
=
{
0
},
m
[
24
]
=
{
'0'
};
tmp
=
strchr
(
key
,
'['
);
if
(
!
tmp
)
{
...
...
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