[Lxc-users] Why I can see the root of the host system in the container?

Osvaldo Filho arquivostcf at gmail.com
Wed Apr 7 10:38:44 UTC 2010


Why I can see the root of the host system in the container? Is this normal?

root at webf:~# df
Sist. Arq.           1K-blocos      Usad Dispon.   Uso% Montado em
rootfs                25197252   9016528  14900748  38% /
/dev/sda2             25197252   9016528  14900748  38% /
none                   1029096         0   1029096   0% /dev/shm
none                   1024248       276   1023972   1% /dev/console
varrun                 1029096        24   1029072   1% /var/run
varlock                1029096         0   1029096   0% /var/lock
root at webf:~#

--------------------- Config ----------------------
lxc.utsname = webf
lxc.tty = 4
lxc.pts = 1024
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = virbr0
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.rootfs = ./rootfs
lxc.mount = ./fstab.lxc
lxc.cgroup.cpuset.cpus = 0
lxc.network.ipv4 = 192.168.122.111/24
lxc.network.hwaddr = 1a:2b:3c:4d:5e:ff
lxc.cgroup.devices.deny = a # Deny all access to devices
lxc.cgroup.devices.allow = c 1:3 rwm # /dev/null
lxc.cgroup.devices.allow = c 1:5 rwm # /dev/zero
lxc.cgroup.devices.allow = c 5:1 rwm # /dev/console
lxc.cgroup.devices.allow = c 5:0 rwm # /dev/tty
lxc.cgroup.devices.allow = c 5:1 rwm # /dev/console
lxc.cgroup.devices.allow = c 4:0 rwm # /dev/tty0
lxc.cgroup.devices.allow = c 4:1 rwm # /dev/tty1
lxc.cgroup.devices.allow = c 4:2 rwm # /dev/tty2
lxc.cgroup.devices.allow = c 4:3 rwm # /dev/tty3
lxc.cgroup.devices.allow = c 1:9 rwm # /dev/urandon
lxc.cgroup.devices.allow = c 1:8 rwm # /dev/random
lxc.cgroup.devices.allow = c 136:* rwm # /dev/pts/*
lxc.cgroup.devices.allow = c 5:2 rwm # /dev/pts/ptmx
lxc.cgroup.devices.allow = c 254:0 rwm # /dev/rtc0




More information about the lxc-users mailing list