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
32d8e679
Unverified
Commit
32d8e679
authored
May 24, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxcseccomp: cleanup header
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
871746f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
lxcseccomp.h
src/lxc/lxcseccomp.h
+9
-8
No files found.
src/lxc/lxcseccomp.h
View file @
32d8e679
...
@@ -27,23 +27,24 @@
...
@@ -27,23 +27,24 @@
#include "conf.h"
#include "conf.h"
#ifdef HAVE_SECCOMP
#ifdef HAVE_SECCOMP
int
lxc_seccomp_load
(
struct
lxc_conf
*
conf
);
extern
int
lxc_seccomp_load
(
struct
lxc_conf
*
conf
);
int
lxc_read_seccomp_config
(
struct
lxc_conf
*
conf
);
extern
int
lxc_read_seccomp_config
(
struct
lxc_conf
*
conf
);
void
lxc_seccomp_free
(
struct
lxc_conf
*
conf
);
extern
void
lxc_seccomp_free
(
struct
lxc_conf
*
conf
);
#else
#else
static
inline
int
lxc_seccomp_load
(
struct
lxc_conf
*
conf
)
{
static
inline
int
lxc_seccomp_load
(
struct
lxc_conf
*
conf
)
{
return
0
;
return
0
;
}
}
static
inline
int
lxc_read_seccomp_config
(
struct
lxc_conf
*
conf
)
{
static
inline
int
lxc_read_seccomp_config
(
struct
lxc_conf
*
conf
)
{
return
0
;
return
0
;
}
}
static
inline
void
lxc_seccomp_free
(
struct
lxc_conf
*
conf
)
{
static
inline
void
lxc_seccomp_free
(
struct
lxc_conf
*
conf
)
if
(
conf
->
seccomp
)
{
{
free
(
conf
->
seccomp
);
free
(
conf
->
seccomp
);
conf
->
seccomp
=
NULL
;
conf
->
seccomp
=
NULL
;
}
}
}
#endif
#endif
...
...
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