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
97272aec
Unverified
Commit
97272aec
authored
Oct 11, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to fix bionic builds of unmount-namespace
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
73740a13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
unmount-namespace.c
hooks/unmount-namespace.c
+27
-0
No files found.
hooks/unmount-namespace.c
View file @
97272aec
...
@@ -38,6 +38,33 @@
...
@@ -38,6 +38,33 @@
#include <mntent.h>
/* getmntent, endmntent */
#include <mntent.h>
/* getmntent, endmntent */
#include <errno.h>
/* errno */
#include <errno.h>
/* errno */
#include <../src/config.h>
#if IS_BIONIC
#include <../src/include/lxcmntent.h>
#else
#include <mntent.h>
#endif
#ifndef O_PATH
#define O_PATH 010000000
#endif
/* Define setns() if missing from the C library */
#ifndef HAVE_SETNS
static
inline
int
setns
(
int
fd
,
int
nstype
)
{
#ifdef __NR_setns
return
syscall
(
__NR_setns
,
fd
,
nstype
);
#elif defined(__NR_set_ns)
return
syscall
(
__NR_set_ns
,
fd
,
nstype
);
#else
errno
=
ENOSYS
;
return
-
1
;
#endif
}
#endif
struct
mount
{
struct
mount
{
char
*
src
;
/* currently not used */
char
*
src
;
/* currently not used */
char
*
dst
;
char
*
dst
;
...
...
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