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
a21d44eb
Unverified
Commit
a21d44eb
authored
Jun 01, 2018
by
Felix Abecassis
Committed by
Christian Brauner
Jun 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seccomp: use a default value of 0 for the mask
The mask was unconditionally parsed, it failed if no mask was provided. Signed-off-by:
Felix Abecassis
<
fabecassis@nvidia.com
>
parent
85db109e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
seccomp.c
src/lxc/seccomp.c
+1
-1
No files found.
src/lxc/seccomp.c
View file @
a21d44eb
...
@@ -201,7 +201,7 @@ static int get_seccomp_arg_value(char *key, struct seccomp_v2_rule_args *rule_ar
...
@@ -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
;
uint64_t
mask
=
0
,
value
=
0
;
enum
scmp_compare
op
=
0
;
enum
scmp_compare
op
=
0
;
char
*
tmp
=
NULL
;
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
,
'['
);
tmp
=
strchr
(
key
,
'['
);
if
(
!
tmp
)
{
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