Hi Brian,

  ** 2 lxd image : one privileged and the other unprivileged :

[Container #1]
# lxc launch ubuntu:16.04 lshwpriv -c security.privileged=true
# lxc config show lshwpriv | grep -i priv
  security.privileged: "true"

[Container #2]
# lxc launch ubuntu:16.04 lshwunpriv -c security.privileged=false
# lxc config show lshwunpriv | grep -i priv
  security.privileged: "false"

  ** I also test with an lxc image :

# lxc-create -t download -n x -- --dist ubuntu --release xenial --arch amd64
# lxc-start -n x
# lxc-attach -n x
# dpkg -l | grep -i lshw
ii  lshw                        02.17-1.1ubuntu3.4                         
amd64        information about hardware configuration


All above containers had the package found in the upload queue installed :

# dpkg -l | grep -i lshw
ii  lshw                             02.17-1.1ubuntu3.4                         
amd64        information about hardware configuration

lshw works on all of the above containers + on the physical host I have
tested with a USB drive connected to it.

  ** Output from physical hardware with a Patriot USB key connected :

*-usb
                   description: Mass storage device
                   product: Patriot Memory
                   physical id: 4
                   bus info: usb@2:4
                   logical name: scsi800
                   version: 1.00
                   serial: 0701788EAE02AE03
                   capabilities: usb-3.10 scsi emulated scsi-host
                   configuration: driver=usb-storage maxpower=504mA 
speed=5000Mbit/s

- Eric

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

Title:
  lshw crashes with SEGV in privileged containers

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

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

Reply via email to