[Bug 1802965] [NEW] "unable to allocate memory" when proc is mounted in a chrooted environment

Dmitry 1802965 at bugs.launchpad.net
Mon Nov 12 17:42:51 UTC 2018


Public bug reported:

The host system is Ubuntu Bionic amd64. I created a Xenial-based i386
chroot environment with debootstrap. After that I'm doing the following:

# chroot into it
sudo chroot xenial-i386

# mount all virtual fs we usually need to run programs
mount -t proc proc /proc
mount -t sysfs sysfs /sys
mount -t devpts devpts /dev/pts

# sudo -V
sudo: main: unable to allocate memory

The problem is with /proc. If I unmount /proc, sudo -V works fine.

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: xenial

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1802965

Title:
  "unable to allocate memory" when proc is mounted in a chrooted
  environment

Status in sudo package in Ubuntu:
  New

Bug description:
  The host system is Ubuntu Bionic amd64. I created a Xenial-based i386
  chroot environment with debootstrap. After that I'm doing the
  following:

  # chroot into it
  sudo chroot xenial-i386

  # mount all virtual fs we usually need to run programs
  mount -t proc proc /proc
  mount -t sysfs sysfs /sys
  mount -t devpts devpts /dev/pts

  # sudo -V
  sudo: main: unable to allocate memory

  The problem is with /proc. If I unmount /proc, sudo -V works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1802965/+subscriptions



More information about the foundations-bugs mailing list