Statistics
| Branch: | Tag: | Revision:

mininet / mnexec.c @ master

History | View | Annotate | Download (5.88 KB)

# Date Author Comment
96ea5367 11/18/2015 07:47 PM Tomasz Buchert

mnexec: properly setup the mount namespace

Systemd's default is to mark the root mount as shared and it is
inherited as such by the new mount namespace. This means that any
mounts performed inthe new namespace will be visible by the rest of
the system, breaking privateDirs....

9b5fa1d7 11/11/2014 12:57 AM Bob Lantz

Always chdir() to current working directory.

b85943dc 09/04/2014 09:22 AM Bob Lantz

chdir() to correct path after calling chroot()

Since chroot() doesn't chdir() by default, we are left in
an unreachable directory in node.pexec() (and in xterms.)

fixes #370

bfdbb708 08/26/2014 09:09 PM Bob Lantz

Fall back to chroot() if setns() fails for mnt namespace

fixes #347

9c3ecfe3 07/02/2014 05:53 PM Cody Burkard

conforming to mininet style

6a81b6df 06/19/2014 10:08 PM Cody Burkard

added persistence option to HostWithPrivateDirs. also attached mount namespaces when mnexec -a is specified

54615659 11/19/2013 01:05 AM Rich Lane

mnexec: mount sysfs in each container

The sysfs filesystem is [tagged][1] with a set of namespaces when mounted, taken
from the mounting process. Among other things, this controls which network
devices will show up in /sys/class/net and /sys/class/net/bonding_masters....

8f80f875 09/28/2013 12:42 AM Jose Pedro Oliveira

Change cgroup() return type from int to void (avoids a gcc warning)

2941bbae 09/28/2013 12:37 AM Jose Pedro Oliveira

Defines _GNU_SOURCE (required by the unshare syscall)

f5737aa3 09/28/2013 12:34 AM Jose Pedro Oliveira

The header file limits.h was being included twice

b8fd3d2d 09/19/2013 02:26 PM Jose Pedro Oliveira

Fixes compiler warning: control reaches end of non-void function

387250cd 09/19/2013 02:25 PM Jose Pedro Oliveira

Fixes compiler warning: implicit declaration of function 'isalnum'

cae7be1a 09/18/2013 05:33 PM Zi Shen Lim

mnexec: getopt bugfix

getopt returns an 'int', so use change datatype of 'c' to match it.
Otherwise, 'c' may hold a value of 255 (0xff), and fail the comparison
with -1 (0xffffffff): while ((c = getopt(...)) != -1)

This bug was uncovered on Ubuntu 13.04 running on ARM, using...

36bf8ac9 07/15/2013 10:17 AM Vitaliy Ivanov

mnexec.c: substituting tabs with spaces.

33c7e464 04/10/2013 02:38 AM Bob Lantz

Use __NR_setns so that setns has the right syscall # in 32-bit mode
fixes #127

d85a58fe 07/07/2012 06:18 AM Bob Lantz

Autogenerate man page for mnexec.

df600200 04/13/2012 10:50 PM Bob Lantz

CPULimiteHost.popen(): set cgroup and (optionally) RT priority

e78e8fb5 04/13/2012 10:50 PM Bob Lantz

Add support for attaching to network namespace using setns(2)

51a14824 03/14/2010 08:03 AM Bob Lantz

Removed unused variable.

bcacfc05 03/14/2010 02:23 AM Bob Lantz

Support for control-C. Finally.

I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
the pid, so we can kill it when someone hits control-C!...

c4ae4232 03/14/2010 02:19 AM Bob Lantz

Support for control-C. Finally.

I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
the pid, so we can kill it when someone hits control-C!...