Public bug reported:

A Docker container, like an LXD container (bug 1759257), cannot load
kernel modules, so it should not report Canonical Livepatch as being
available in the motd.

$ docker run --rm -it ubuntu:18.04
root@12d1934cc2df:/# apt-get update
root@12d1934cc2df:/# apt-get install lsb-release ubuntu-advantage-tools
root@12d1934cc2df:/# /etc/cron.daily/ubuntu-advantage-tools 
root@12d1934cc2df:/# /etc/update-motd.d/80-livepatch 

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch
root@12d1934cc2df:/# exit

$ docker run --rm -it ubuntu:20.04
root@b9959e2f6ae9:/# apt-get update
root@b9959e2f6ae9:/# apt-get install ca-certificates ubuntu-advantage-tools
root@b9959e2f6ae9:/# ubuntu-advantage status
SERVICE       AVAILABLE  DESCRIPTION
cc-eal        no         Common Criteria EAL2 Provisioning Packages
esm-apps      yes        UA Apps: Extended Security Maintenance
esm-infra     yes        UA Infra: Extended Security Maintenance
fips          no         NIST-certified FIPS modules
fips-updates  no         Uncertified security updates to FIPS modules
livepatch     yes        Canonical Livepatch service

This machine is not attached to a UA subscription.
See https://ubuntu.com/advantage

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  Livepatch should not be reported as available in a Docker container

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1894346/+subscriptions

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

Reply via email to