schroot mounted pts mehrfach

Alles rund um sicherheitsrelevante Fragen und Probleme.
Antworten
svennoack
Beiträge: 2
Registriert: 04.08.2015 12:30:28

schroot mounted pts mehrfach

Beitrag von svennoack » 04.08.2015 13:10:56

Wenn ich eine schroot öffne und dann mount aufliste, fällt auf, dass /dev/pts mehrfach im System gemountet ist. Öffne ich eine zweite schroot, dann ist /dev/pts dreimal eingebunden und die erste schroot bindet /dev/pts zweimal ein und die zweite bindet /dev/pts gar nicht ein. Wenn ich dann die schroot mit exit verlasse, dann gibt es Fehler bei umount.
Dieses Verhalten zeigt sich unter Debian 8 (Jessie). Unter Debian 7 (Wheezy) habe ich dieses verhalten nicht.

meine fstab

Code: Alles auswählen

# fstab: static file system information for chroots.
# Note that the mount point will be prefixed by the chroot path
# (CHROOT_PATH)
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/proc           /proc           none    rw,bind         0       0
/sys            /sys            none    rw,bind         0       0
/dev            /dev            none    rw,bind         0       0
/dev/pts       /dev/pts        none    rw,bind         0       0
/home           /home           none    rw,bind         0       0
/tmp            /tmp            none    rw,bind         0       0
/var/lib/hudson /var/lib/hudson none    rw,bind         0       0
/usr/local/lib/OSELAS.Toolchain-2012.12.1       /opt/OSELAS.Toolchain-2012.12.1         none    rw,bind         0       0
/usr/local/lib/ptxdist-2013.03.0                /usr/local/lib/ptxdist-2013.03.0        none    rw,bind         0       0

# If you use gdm3, uncomment this line to allow Xauth to work
#/var/run/gdm3  /var/run/gdm3   none    rw,bind         0       0
# For PulseAudio and other desktop-related things
#/var/lib/dbus   /var/lib/dbus  none    rw,bind         0       0

# It may be desirable to have access to /run, especially if you wish
# to run additional services in the chroot.  However, note that this
# may potentially cause undesirable behaviour on upgrades, such as
# killing services on the host.
#/run           /run            none    rw,bind         0       0
#/run/lock      /run/lock       none    rw,bind         0       0
#/dev/shm       /dev/shm        none    rw,bind         0       0
#/run/shm       /run/shm        none    rw,bind         0       0
Konsole 1: $ schroot -pc rocket
Konsole 2:

Code: Alles auswählen

$ mount -l | grep devpts
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /var/lib/schroot/mount/chroot--precise-69eaadb7-cedb-4f20-b0db-c2b2a5e2825b/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
Konsole 3: $ schroot -pc rocket
Konsole 2:

Code: Alles auswählen

$ mount -l | grep devpts
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /var/lib/schroot/mount/chroot--precise-69eaadb7-cedb-4f20-b0db-c2b2a5e2825b/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /var/lib/schroot/mount/chroot--precise-dbab3570-1683-462b-b8bc-8c73f7738aad/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
devpts on /var/lib/schroot/mount/chroot--precise-69eaadb7-cedb-4f20-b0db-c2b2a5e2825b/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
Fehlermeldung:
E: 10mount: umount: /var/lib/schroot/mount/chroot--precise-95e902ec-0dbc-48cb-9bf9-c76be07b9c1a/dev/pts: not mounted
E: chroot--precise-95e902ec-0dbc-48cb-9bf9-c76be07b9c1a: Chroot setup failed: stage=setup-stop

svennoack
Beiträge: 2
Registriert: 04.08.2015 12:30:28

Re: schroot mounted pts mehrfach

Beitrag von svennoack » 12.08.2015 07:35:45

Das System startet mit System.d. Bei System.d ist "shared mountpoints" konfiguriert. Die Anzeige ist also kein Fehler.

Siehe dazu:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=726375

Antworten