Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
e16c5fe9
Commit
e16c5fe9
authored
10 years ago
by
cody burkard
Browse files
Options
Downloads
Patches
Plain Diff
attach to cgroup first, then mount namespace
parent
5fc3f57e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mininet/node.py
+2
-2
2 additions, 2 deletions
mininet/node.py
util/m
+1
-1
1 addition, 1 deletion
util/m
with
3 additions
and
3 deletions
mininet/node.py
+
2
−
2
View file @
e16c5fe9
...
@@ -653,8 +653,8 @@ def popen( self, *args, **kwargs ):
...
@@ -653,8 +653,8 @@ def popen( self, *args, **kwargs ):
args: Popen() args, single list, or string
args: Popen() args, single list, or string
kwargs: Popen() keyword args
"""
kwargs: Popen() keyword args
"""
# Tell mnexec to execute command in our cgroup
# Tell mnexec to execute command in our cgroup
mncmd
=
[
'
mnexec
'
,
'
-
da
'
,
s
tr
(
self
.
pid
)
,
mncmd
=
[
'
mnexec
'
,
'
-
g
'
,
s
elf
.
name
,
'
-
g
'
,
s
elf
.
name
]
'
-
da
'
,
s
tr
(
self
.
pid
)
]
if
self
.
sched
==
'
rt
'
:
if
self
.
sched
==
'
rt
'
:
mncmd
+=
[
'
-r
'
,
str
(
self
.
rtprio
)
]
mncmd
+=
[
'
-r
'
,
str
(
self
.
rtprio
)
]
return
Host
.
popen
(
self
,
*
args
,
mncmd
=
mncmd
,
**
kwargs
)
return
Host
.
popen
(
self
,
*
args
,
mncmd
=
mncmd
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
util/m
+
1
−
1
View file @
e16c5fe9
...
@@ -40,5 +40,5 @@ if [ -d $rootdir -a -x $rootdir/bin/bash ]; then
...
@@ -40,5 +40,5 @@ if [ -d $rootdir -a -x $rootdir/bin/bash ]; then
cmd
=
"chroot
$rootdir
/bin/bash -c
$cmd
"
cmd
=
"chroot
$rootdir
/bin/bash -c
$cmd
"
fi
fi
cmd
=
"exec sudo mnexec -a
$pid
$cg
$cmd
"
cmd
=
"exec sudo mnexec
$cg
-a
$pid
$cmd
"
eval
$cmd
eval
$cmd
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment