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
5413d2e5
Commit
5413d2e5
authored
11 years ago
by
Bob Lantz
Committed by
Brian O'Connor
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check for chroot dir and chroot if necessary.
parent
226a1dc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
util/m
+9
-1
9 additions, 1 deletion
util/m
with
9 additions
and
1 deletion
util/m
+
9
−
1
View file @
5413d2e5
...
...
@@ -33,4 +33,12 @@ if [ -d "$cgroup" ]; then
cg
=
"-g
$host
"
fi
exec sudo
mnexec
-a
$pid
$cg
$cmd
# Check whether host should be running in a chroot dir
rootdir
=
"/var/run/mn/
$host
/root"
if
[
-d
$rootdir
]
;
then
cmd
=
"'cd
`
pwd
`
; exec
$cmd
'"
cmd
=
"chroot
$rootdir
bash -c
$cmd
"
fi
cmd
=
"exec sudo mnexec -a
$pid
$cg
$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