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
dfce2c76
Unverified
Commit
dfce2c76
authored
Jul 01, 2019
by
Stéphane Graber
Committed by
GitHub
Jul 01, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3059 from brauner/2019-06-21/seccomp_notify
lxccontainer: rework seccomp notify api function
parents
33d7d28f
679289bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
18 deletions
+5
-18
lxccontainer.c
src/lxc/lxccontainer.c
+4
-12
lxccontainer.h
src/lxc/lxccontainer.h
+1
-6
No files found.
src/lxc/lxccontainer.c
View file @
dfce2c76
...
...
@@ -5248,23 +5248,15 @@ out:
return
ret
;
}
static
int
do_lxcapi_seccomp_notify
(
struct
lxc_container
*
c
,
unsigned
int
cmd
,
int
fd
)
static
int
do_lxcapi_seccomp_notify
_fd
(
struct
lxc_container
*
c
)
{
if
(
!
c
||
!
c
->
lxc_conf
)
return
minus_one_set_errno
(
-
EINVAL
);
switch
(
cmd
)
{
case
LXC_SECCOMP_NOTIFY_GET_FD
:
if
(
fd
)
return
minus_one_set_errno
(
EINVAL
);
return
lxc_seccomp_get_notify_fd
(
&
c
->
lxc_conf
->
seccomp
);
}
return
minus_one_set_errno
(
EINVAL
);
return
lxc_seccomp_get_notify_fd
(
&
c
->
lxc_conf
->
seccomp
);
}
WRAP_API
_2
(
int
,
lxcapi_seccomp_notify
,
unsigned
int
,
int
)
WRAP_API
(
int
,
lxcapi_seccomp_notify_fd
)
struct
lxc_container
*
lxc_container_new
(
const
char
*
name
,
const
char
*
configpath
)
{
...
...
@@ -5405,7 +5397,7 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath
c
->
console_log
=
lxcapi_console_log
;
c
->
mount
=
lxcapi_mount
;
c
->
umount
=
lxcapi_umount
;
c
->
seccomp_notify
=
lxcapi_seccomp_notify
;
c
->
seccomp_notify
_fd
=
lxcapi_seccomp_notify_fd
;
return
c
;
...
...
src/lxc/lxccontainer.h
View file @
dfce2c76
...
...
@@ -60,11 +60,6 @@ struct lxc_mount {
int
version
;
};
enum
{
LXC_SECCOMP_NOTIFY_GET_FD
=
0
,
LXC_SECCOMP_NOTIFY_MAX
,
};
/*!
* An LXC container.
*
...
...
@@ -873,7 +868,7 @@ struct lxc_container {
int
(
*
umount
)(
struct
lxc_container
*
c
,
const
char
*
target
,
unsigned
long
mountflags
,
struct
lxc_mount
*
mnt
);
int
(
*
seccomp_notify
)(
struct
lxc_container
*
c
,
unsigned
int
cmd
,
int
fd
);
int
(
*
seccomp_notify
_fd
)(
struct
lxc_container
*
c
);
};
/*!
...
...
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