Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
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
zhul
criu
Commits
89675247
Commit
89675247
authored
Oct 05, 2015
by
Andrei Vagin
Committed by
Pavel Emelyanov
Oct 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zdtm: don't exclude ipc and uts namespaces in case of userns
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
c7bc3655
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
ns.c
test/zdtm/lib/ns.c
+4
-9
No files found.
test/zdtm/lib/ns.c
View file @
89675247
...
@@ -400,17 +400,12 @@ void ns_create(int argc, char **argv)
...
@@ -400,17 +400,12 @@ void ns_create(int argc, char **argv)
exit
(
1
);
exit
(
1
);
}
}
flags
=
CLONE_NEWPID
|
CLONE_NEWNS
|
CLONE_NEWUTS
|
CLONE_NEWNET
|
CLONE_NEWIPC
|
SIGCHLD
;
val
=
getenv
(
"ZDTM_USERNS"
);
val
=
getenv
(
"ZDTM_USERNS"
);
if
(
val
)
if
(
val
)
/*
flags
|=
CLONE_NEWUSER
;
* CLONE_NEWIPC and CLONE_NEWUTS are excluded, because
* their sysctl-s are protected by CAP_SYS_ADMIN
*/
flags
=
CLONE_NEWPID
|
CLONE_NEWNS
|
CLONE_NEWNET
|
CLONE_NEWUSER
|
SIGCHLD
;
else
flags
=
CLONE_NEWPID
|
CLONE_NEWNS
|
CLONE_NEWUTS
|
CLONE_NEWNET
|
CLONE_NEWIPC
|
SIGCHLD
;
if
(
construct_root
())
if
(
construct_root
())
exit
(
1
);
exit
(
1
);
...
...
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