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
29cb2617
Commit
29cb2617
authored
Jan 27, 2018
by
Marcos Paulo de Souza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seccomp.c: Use return instead of attribution and return
Signed-off-by:
Marcos Paulo de Souza
<
marcos.souza.org@gmail.com
>
parent
8f57ca64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
seccomp.c
src/lxc/seccomp.c
+8
-12
No files found.
src/lxc/seccomp.c
View file @
29cb2617
...
...
@@ -144,26 +144,22 @@ struct seccomp_v2_rule {
static
enum
scmp_compare
parse_v2_rule_op
(
char
*
s
)
{
enum
scmp_compare
ret
;
if
(
strcmp
(
s
,
"SCMP_CMP_NE"
)
==
0
||
strcmp
(
s
,
"!="
)
==
0
)
ret
=
SCMP_CMP_NE
;
ret
urn
SCMP_CMP_NE
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_LT"
)
==
0
||
strcmp
(
s
,
"<"
)
==
0
)
ret
=
SCMP_CMP_LT
;
ret
urn
SCMP_CMP_LT
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_LE"
)
==
0
||
strcmp
(
s
,
"<="
)
==
0
)
ret
=
SCMP_CMP_LE
;
ret
urn
SCMP_CMP_LE
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_EQ"
)
==
0
||
strcmp
(
s
,
"=="
)
==
0
)
ret
=
SCMP_CMP_EQ
;
ret
urn
SCMP_CMP_EQ
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_GE"
)
==
0
||
strcmp
(
s
,
">="
)
==
0
)
ret
=
SCMP_CMP_GE
;
ret
urn
SCMP_CMP_GE
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_GT"
)
==
0
||
strcmp
(
s
,
">"
)
==
0
)
ret
=
SCMP_CMP_GT
;
ret
urn
SCMP_CMP_GT
;
else
if
(
strcmp
(
s
,
"SCMP_CMP_MASKED_EQ"
)
==
0
||
strcmp
(
s
,
"&="
)
==
0
)
ret
=
SCMP_CMP_MASKED_EQ
;
else
ret
=
_SCMP_CMP_MAX
;
return
SCMP_CMP_MASKED_EQ
;
return
ret
;
return
_SCMP_CMP_MAX
;
}
/* This function is used to parse the args string into the structure.
...
...
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