*** This bug is a duplicate of bug 1567037 ***
    https://bugs.launchpad.net/bugs/1567037

** Description changed:

- Unprivileged lxc containers are created under used "honstings" account.
- lxc-attach crashes when it is used to execute a script via su command from 
root shell.
+ Unprivileged lxc containers are created under used "hostings" account.
+ In commands below LXC container with name "bugreport" had been created (with 
lxc-create) and started (with lxc-start -n bugreport)
+ 
+ lxc-attach command crashes when it is used to execute a script via su
+ command from root shell.
  
  su - hostings -c 'lxc-attach -n "bugreport" -- /root/initialize.sh
  "bugreport"'
  
  and produces syslog entry
  Apr 26 17:05:24 hostings kernel: [20956.998698] lxc-attach[18855]: segfault 
at 1c ip 0000561050b1d994 sp 00007ffdbf3fdb60 error 6 in 
lxc-attach[561050b1c000+4000]
  
  Same command works when executed from user "hostings" shell
  lxc-attach -n "bugreport" -- /root/initialize.sh "bugreport"
  
  ProblemType: Crash
  DistroRelease: Ubuntu 16.04
  Package: lxc1 2.0.0-0ubuntu2
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Tue Apr 26 10:12:29 2016
  ExecutablePath: /usr/bin/lxc-attach
  ExecutableTimestamp: 1461078981
  InstallationDate: Installed on 2016-04-22 (3 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  ProcCmdline: lxc-attach -n my -- /root/initialize.sh my
  ProcCwd: /home/hostings
  SegvAnalysis: Skipped: missing required field "Disassembly"
  Signal: 11
  SourcePackage: lxc
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: libvirtd tty
  dnsmasq.conf: dhcp-host=hdev,10.0.3.100
  modified.conffile..etc.lxc.default.conf: [modified]
  mtime.conffile..etc.lxc.default.conf: 2016-04-25T12:01:07.442775

** Description changed:

  Unprivileged lxc containers are created under used "hostings" account.
- In commands below LXC container with name "bugreport" had been created (with 
lxc-create) and started (with lxc-start -n bugreport)
+ In commands below LXC container with name "my" had been created (with 
lxc-create) and started (with lxc-start -n bugreport)
  
  lxc-attach command crashes when it is used to execute a script via su
  command from root shell.
  
- su - hostings -c 'lxc-attach -n "bugreport" -- /root/initialize.sh
- "bugreport"'
+ su - hostings -c 'lxc-attach -n "my" -- /root/initialize.sh "my"'
  
  and produces syslog entry
  Apr 26 17:05:24 hostings kernel: [20956.998698] lxc-attach[18855]: segfault 
at 1c ip 0000561050b1d994 sp 00007ffdbf3fdb60 error 6 in 
lxc-attach[561050b1c000+4000]
  
  Same command works when executed from user "hostings" shell
- lxc-attach -n "bugreport" -- /root/initialize.sh "bugreport"
+ lxc-attach -n "my" -- /root/initialize.sh "my"
  
  ProblemType: Crash
  DistroRelease: Ubuntu 16.04
  Package: lxc1 2.0.0-0ubuntu2
  ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
  Uname: Linux 4.4.0-21-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  Date: Tue Apr 26 10:12:29 2016
  ExecutablePath: /usr/bin/lxc-attach
  ExecutableTimestamp: 1461078981
  InstallationDate: Installed on 2016-04-22 (3 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  ProcCmdline: lxc-attach -n my -- /root/initialize.sh my
  ProcCwd: /home/hostings
  SegvAnalysis: Skipped: missing required field "Disassembly"
  Signal: 11
  SourcePackage: lxc
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: libvirtd tty
  dnsmasq.conf: dhcp-host=hdev,10.0.3.100
  modified.conffile..etc.lxc.default.conf: [modified]
  mtime.conffile..etc.lxc.default.conf: 2016-04-25T12:01:07.442775

** Tags added: lxc

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

Title:
  lxc-attach crashes when used to execute script via su

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to