Change logs for lxc source package in Zesty

  • lxc (2.0.8-0ubuntu1~17.04.2) zesty; urgency=medium
    
      * Cherry-pick upstream workaround for ppc64el failure:
        - 0011-utils-fix-ppc64le-builds.patch
    
     -- Stéphane Graber <email address hidden>  Mon, 29 May 2017 14:47:05 -0400
  • lxc (2.0.8-0ubuntu1~17.04.1) zesty; urgency=medium
    
      * New upstream bugfix release (2.0.8) (LP: #1691911):
        - Security fix for CVE-2017-5985 (previously fixed in Ubuntu)
    
        - All templates have been updated to not set default passwords anymore,
          instead requiring lxc-attach be used to configure users.
    
          This may affect some automated environments that were relying on our
          default (very much insecure) users.
    
        - Make lxc-start-ephemeral Python 3.2-compatible
        - Fix typo
        - Allow build without sys/capability.h
        - lxc-opensuse: fix default value for release code
        - util: always malloc for setproctitle
        - util: update setproctitle comments
        - confile: clear lxc.network..ipv{4,6} when empty
        - lxc_setup_tios(): Ignore SIGTTOU and SIGTTIN signals
        - Make lxc-net return non-zero on failure
        - seccomp: allow x32 guests on amd64 hosts.
        - Add HAVE_LIBCAP
        - c/r: only supply --ext-mount-map for bind mounts
        - Added 'mkdir -p' functionality in create_or_remove_cgroup
        - Use LXC_ROOTFS_MOUNT in clonehostname hook
        - squeeze is not a supported release anymore, drop the key
        - start: dumb down SIGCHLD from WARN() to NOTICE()
        - log: fix lxc_unix_epoch_to_utc()
        - cgfsng: make trim() safer
        - seccomp: set SCMP_FLTATR_ATL_TSKIP if available
        - lxc-user-nic: re-order #includes
        - lxc-user-nic: improve + bugfix
        - lxc-user-nic: delete link on failure
        - conf: only try to delete veth when privileged
        - Fix lxc-containers to support multiple bridges
        - Fix mixed tab/spaces in previous patch
        - lxc-alpine: use dl-cdn.a.o as default mirror instead of random one
        - lxc-checkconfig: verify new[ug]idmap are setuid-root
        - [templates] archlinux: resolve conflicting files
        - [templates] archlinux: noneed default_timezone variable
        - python3: Deal with potential NULL char*
        - lxc-download.in / allow setting keyserver from env
        - lxc-download.in / Document keyserver change in help
        - Change variable check to match existing style
        - tree-wide: include directly
        - conf/ile: make sure buffer is large enough
        - tree-wide: include directly
        - tests: Support running on IPv6 networks
        - tests: Kill containers (don't wait for shutdown)
        - Fix opening wrong file in suggest_default_idmap
        - do not set the root password in the debian template
        - do not set insecure passwords
        - don't set a default password for altlinux, gentoo, openmandriva and pld
        - tools: exit with return code of lxc_execute()
        - Keep veth.pair.name on network shutdown
        - Makefile: fix static clang init.lxc build
        - Avoid waiting for bridge interface if disabled in sysconfig/lxc
        - Increased buffer length in print_stats()
        - avoid assigning to a variable which is not POSIX shell proof (bug #1498)
        - remove obsolete note about api stability
        - conf: less error prone pointer access
        - conf: lxc_map_ids() non-functional changes
        - caps: add lxc_{proc,file}_cap_is_set()
        - conf: check for {filecaps,setuid} on new{g,u}idmap
        - conf: improve log when mounting rootfs
        - ls: simplify the judgment condition when list active containers
        - fix typo introduced in #1509
        - attach|unshare: fix the wrong comment
        - caps: skip file capability checks on android
        - autotools: check for cap_get_file
        - caps: return false if caps are not supported
        - conf: non-functional changes to setup_pts()
        - conf: use bind-mount for /dev/ptmx
        - conf: non-functional changes
        - utils: use loop device helpers from LXD
        - create ISSUE_TEMPLATE.md
        - cgroups: improve cgfsng debugging
        - issue template: fix typo
        - conf: close fd in lxc_setup_devpts()
        - conf: non-functional changes
        - utils: tweak lxc_mount_proc_if_needed()
        - Change sshd template to work with Ubuntu 17.04
        - conf: order mount options
        - conf: add MS_LAZYTIME to mount options
        - monitor: report errno on exec() error
        - af unix: allow for maximum socket name
        - commands: avoid NULL pointer dereference
        - commands: non-functional changes
        - lxccontainer: avoid NULL pointer dereference
        - monitor: simplify abstract socket logic
        - precise is not the latest LTS, let's use xenial instead
        - fix the wrong exit status
        - conf: non-functional changes lxc_fill_autodev()
        - conf: remove /dev/console from lxc_fill_autodev()
        - conf: non-functional changes lxc_setup()
        - conf: non-functional changes to console functions
        - conf: improve lxc_setup_dev_console()
        - conf: lxc_setup_ttydir_console()
        - config: remove /dev/console bind mount
        - doc: document console behavior
        - utils: add lxc_unstack_mountpoint()
        - conf: unstack all mounts atop /dev/console
        - console: fail when we cannot allocate peer tty
        - start: remove umount2()
        - conf: non-functional changes
        - utils: handle > 2^31 in lxc_unstack_mountpoint()
        - Install systemd units for CentOS
        - Merge ubuntu and debiancase
        - start: add crucial details about lxc_spawn()
    
      * Cherry-pick some upstream fixes:
        - conf{,ile}: allow one to clear all config items
        - start: pin rootfs when privileged
        - conf: fix build without libcap
        - start: don't call lxc_map_ids() without id map
        - lxc-attach: allow for situations without /dev/tty
        - utils: fix num parsing functions
        - tests: lxc_safe_{u}int() add corner-case tests
    
      * Fix broken proxy detection in debian/tests/exercise
      * Only move lxc bash completion from /etc if we installed it there
      * Update tests to deal with cgroupv2 tree (recent systemd)
      * Drop un-needed lintian override
    
     -- Stéphane Graber <email address hidden>  Thu, 18 May 2017 23:22:44 -0400
  • lxc (2.0.7-0ubuntu2) zesty-security; urgency=medium
    
      * SECURITY UPDATE: lxc-user-nic doesn't check netns ownership (LP: #1654676)
        - Ensure target netns is caller-owned
        - CVE-2017-5985
    
     -- Stéphane Graber <email address hidden>  Tue, 07 Mar 2017 14:33:46 -0500
  • lxc (2.0.7-0ubuntu1) zesty; urgency=medium
    
      * New upstream bugfix release (2.0.7):
        - attach: Close lsm label file descriptor
        - attach: Non-functional changes
        - attach: Simplify lsm_openat()
        - caps: Add lxc_cap_is_set()
        - conf: attach: Save errno across call to close
        - conf: Clearly report to either use drop or keep
        - conf: criu: Add make_anonymous_mount_file()
        - conf: Fix suggest_default_idmap()
        - configure: Add --enable-gnutls option
        - configure: Check for memfd_create()
        - configure: Check whether gettid() is declared
        - configure: Do not allow variable length arrays
        - configure: Remove -Werror=vla
        - configure: Use AC_HEADER_MAJOR to detect major()/minor()/makedev()
        - conf: Non-functional changes
        - conf: Remove thread-unsafe strsignal + improve log
        - init: Add cgroupfs-mount to Should-Start/Stop sysvinit LSB headers
        - log: Add lxc_unix_epoch_to_utc()
        - log: Annotate lxc_unix_epoch_to_utc()
        - log: Drop all timezone conversion functions
        - log: Make sure that date is correctly formatted
        - log: Use lxc_unix_epoch_to_utc()
        - log: Use N/A if getpid() != gettid() when threaded
        - log: Use thread-safe localtime_r()
        - lvm: Suppress warnings about leaked files
        - lxccontainer: Log failure to send sig to init pid
        - monitor: Add more logging
        - monitor: Close mainloop on exit if we opened it
        - monitor: Improve log + set log level to DEBUG
        - monitor: Log which pipe fd is currently used
        - monitor: Make lxc-monitord async signal safe
        - monitor: Non-functional changes
        - python3-lxc: Fix api_test.py on s390x
        - start: Check for CAP_SETGID before setgroups()
        - start: Fix execute and improve setgroups() calls
        - state: Use async signal safe fun in lxc_wait()
        - templates: lxc-debian: Don't try to read /usr/lib/systemd on the host
        - templates: lxc-debian: Fix getty service startup
        - templates: lxc-debian: Fix typo with dpkg --print-foreign-architectures
        - templates: lxc-debian: Handle ppc hostarch -> powerpc
        - templates: lxc-opensuse: Change openSUSE default release to Leap 42.2
        - templates: lxc-opensuse: Remove libgcc_s1
        - templates: lxc-opensuse: Remove poweroff.target -> sigpwr.target copy
        - templates: lxc-opensuse: Set to be unconfined by AppArmor
        - templates: lxc-opensuse: Update for Leap 42.2
        - tests; Don't cause test failures on cleanup errors
        - tests: Skip unpriv tests on broken overlay module
        - tools: Improve logging
        - tools: lxc-start: Remove c->is_defined(c) check
        - tools: lxc-start: Set configfile after load_config
        - tools: Only check for O_RDONLY
        - tree-wide: Random macro cleanups
        - tree-wide: Remove any variable length arrays
        - tree-wide: Sic semper assertis!
        - utils: Add macro __LXC_NUMSTRLEN
        - utils: Add uid, gid, group convenience wrappers
    
      * Cherry-pick upstream bugfix:
        - 0002-Make-lxc-start-ephemeral-Python-3.2-compatible.patch
    
      * Resolve lintian warnings
        - Drop un-needed overrides
        - Fix typos in debian/control
    
     -- Stéphane Graber <email address hidden>  Fri, 27 Jan 2017 17:21:52 -0500
  • lxc (2.0.6-0ubuntu5) zesty; urgency=medium
    
      * Cherry-pick upstream bugfix:
        - 0003-tools-only-check-for-O_RDONLY.patch (LP: #1653725)
    
     -- Stéphane Graber <email address hidden>  Wed, 04 Jan 2017 14:11:45 -0500
  • lxc (2.0.6-0ubuntu4) zesty; urgency=medium
    
      * Cherry-pick upstream bugfix:
        - tests: Don't cause test failures on-cleanup errors
    
     -- Stéphane Graber <email address hidden>  Thu, 01 Dec 2016 18:37:52 -0500
  • lxc (2.0.6-0ubuntu3) zesty; urgency=medium
    
      * Properly escape the dirmngr command so it doesn't end up being an
        empty string...
    
     -- Stéphane Graber <email address hidden>  Thu, 01 Dec 2016 16:08:30 -0500
  • lxc (2.0.6-0ubuntu2) zesty; urgency=medium
    
      * Workaround autopkgtest failure when using gpg2 with dirmngr.
      * Restrict tests to run on standalone systems.
    
     -- Stéphane Graber <email address hidden>  Thu, 01 Dec 2016 12:27:51 -0500
  • lxc (2.0.6-0ubuntu1) zesty; urgency=medium
    
      * New upstream bugfix release (2.0.6):
        - Security fix for CVE-2016-8649
        - utils: make detect_ramfs_rootfs() return bool
        - tests: add test for detect_ramfs_rootfs()
        - add Documentation entries to lxc and lxc@ units
        - mark the python examples as having utf-8 encoding
        - log: sanity check the returned value from snprintf()
        - lxc-alpine: mount /dev/shm as tmpfs
        - archlinux: Do DHCP on eth0
        - archlinux: Fix resolving
        - Drop leftover references to lxc_strerror()
        - tests: fix image download for s390x
        - tools: fix coding style in lxc_attach
        - tools: make overlay valid backend
        - tools: better error reporting for lxc-start
        - alpine: Fix installing extra packages
        - lxc-alpine: do not drop setfcap
        - s390x: Fix seccomp handling of personalities
        - tools: correct the argument typo in lxc_copy
        - Use libtool for liblxc.so
        - c/r: use --external instead of --veth-pair
        - c/r: remember to increment netnr
        - c/r: add checkpoint/restore support for macvlan interfaces
        - ubuntu: Fix package upgrades requiring proc
        - c/r: drop duplicate hunk from macvlan case
        - c/r: use snprintf to compute device name
        - Tweak libtool handling to work with Android
        - tests: add lxc_error() and lxc_debug()
        - container start: clone newcgroup immediately
        - use python3_sitearch for including the python code
        - fix rpm build, include all built files, but only once
        - cgfs: fix invalid free()
        - find OpenSUSE's build also as obs-build
        - improve help text for --fancy and --fancy-format
        - improve wording of the help page for lxc-ls
        - cgfs: add print_cgfs_init_debuginfo()
        - cgfs: skip empty entries under /proc/self/cgroup
        - cgfs: explicitly check for NULL
        - tools: use correct exit code for lxc-stop
        - c/r: explicitly emit bind mounts as criu arguments
        - log: bump LXC_LOG_BUFFER_SIZE to 4096
        - conf: merge network namespace move & rename on shutdown
        - c/r: save criu's stdout during dump too
        - c/r: remove extra \ns from logs
        - c/r: fix off-by-one error
        - c/r: check state before doing a checkpoint/restore
        - start: CLONE_NEWCGROUP after we have setup cgroups
        - create symlink for /var/run
        - utils: add lxc_append_string()
        - cgroups: remove isolated cpus from cpuset.cpus
        - Update Ubuntu release name: add zesty and remove wily
        - templates: add squashfs support to lxc-ubuntu-cloud.in
        - cgroups: skip v2 hierarchy entry
        - also stop lxc-net in runlevels 0 and 6
        - add lxc.egg-info to gitignore
        - install bash completion where pkg-config tells us to
        - conf: do not use %m format specifier
        - debian: Don't depend on libui-dialog-perl
        - cgroups: use %zu format specifier to print size_t
        - lxc-checkpoint: automatically detect if --external or --veth-pair
        - cgroups: prevent segfault in cgfsng
        - utils: add lxc_preserve_ns()
        - start: add netnsfd to lxc_handler
        - conf: use lxc_preserve_ns()
        - attach: use lxc_preserve_ns()
        - lxc_user_nic: use lxc_preserve_ns()
        - conf, start: improve log output
        - conf: explicitly remove veth device from host
        - conf, start: be smarter when deleting networks
        - start, utils: improve preserve_ns()
        - start, error: improve log + non-functional changes
        - start, namespace: move ns_info to namespace.{c,h}
        - attach, utils: bugfixes
        - attach: use ns_info[LXC_NS_MAX] struct
        - namespace: always attach to user namespace first
        - cgroup: improve isolcpus handling
        - cgroups: handle non-existent isolcpus file
        - utils: add lxc_safe_uint()
        - tests: add unit tests for lxc_safe_uint()
        - utils: add lxc_safe_int()
        - tests: add unit tests for lxc_safe_int()
        - conf/ile: get ip prefix via lxc_safe_uint()
        - confile: use lxc_safe_u/int in config_init_{u,g}id
        - conf/ile: use lxc_safe_uint() in config_pts()
        - conf/ile: use lxc_safe_u/int() in config_start()
        - conf/ile: use lxc_safe_uint() in config_monitor()
        - conf/ile: use lxc_safe_uint() in config_tty()
        - conf/ile: use lxc_safe_uint() in config_kmsg()
        - conf/ile: avoid atoi in config_lsm_aa_incomplete()
        - conf/ile: use lxc_safe_uint() in config_autodev()
        - conf/ile: avoid atoi() in config_ephemeral()
        - utils: use lxc_safe_int()
        - lxc_monitord: use lxc_safe_int() && use exit()
        - start: use lxc_safe_int()
        - conf: use lxc_safe_{u}int()
        - tools/lxc_execute: use lxc_safe_uint()
        - tools/lxc_stop: use lxc_safe_uint()
        - utils: add lxc_safe_long()
        - tests: add unit tests for lxc_safe_long()
        - tools/lxc_stop: use lxc_safe_long()
        - tools/lxc_top: use lxc_safe_int()
        - tools/lxc_ls: use lxc_safe_uint()
        - tools/lxc_autostart: use lxc_safe_{int,long}()
        - tools/lxc_console: use lxc_safe_uint()
        - tools: replace non-standard namespace identifiers
        - Configure a static MAC address on the LXC bridge
        - tests: remove overflow tests
        - attach: do not send procfd to attached process
      * Remaining patches:
        - 0001-Allocate-new-lxcbr0-subnet-at-startup-time.patch
      * Re-enable lxc-test-ubuntu on yakkety/zesty (template was fixed).
    
     -- Stéphane Graber <email address hidden>  Wed, 23 Nov 2016 23:56:02 -0500
  • lxc (2.0.5-0ubuntu4) zesty-security; urgency=medium
    
      * SECURITY UPDATE: Escape through ptrace and inherited fd (LP: #1639345)
        - attach: Do not send procfd to attached process
        - CVE-2016-8649
    
     -- Stéphane Graber <email address hidden>  Tue, 22 Nov 2016 00:49:00 -0500
  • lxc (2.0.5-0ubuntu3) zesty; urgency=medium
    
      * Also skip lxc-test-ubuntu on zesty
        (LXC still doesn't support squashfs cloud images)
    
     -- Stéphane Graber <email address hidden>  Fri, 21 Oct 2016 22:40:14 -0400
  • lxc (2.0.5-0ubuntu2) zesty; urgency=medium
    
      * Cherry-pick bugfix from upstream:
        - s390x: Fix seccomp handling of personalities (LP: #1635639)
        - Setup libtool (LP: #1620313)
      * Build-depend on dpkg-dev (>= 1.16.1~) | hardening-wrapper. LP: #1620313.
    
     -- Stéphane Graber <email address hidden>  Fri, 21 Oct 2016 13:44:19 -0400
  • lxc (2.0.5-0ubuntu1) yakkety; urgency=medium
    
      * New upstream bugfix release (2.0.5):
        - Fix .gitignore after /tools/ split
        - Add lxc-test-utils to .gitignore
        - bdev: use correct overlay module name
        - cleanup: tools: remove --name from lxc-top usage message
        - cleanup: whitespaces in option alignment for lxc-execute
        - Use full GPG fingerprint instead of long IDs.
        - tools: move --rcfile to the common options list
        - tools: set configfile after load_config
        - doc: add --rcfile to common opts
        - doc: Update Korean lxc-attach(1)
        - doc: Add --rcfile to Korean common opts
        - doc: Add --rcfile to Japanese common opts
        - tools: use exit(EXIT_*) everywhere
        - tools: unify exit() calls outside of main()
        - utils: Add mips signalfd syscall numbers
        - seccomp: Implement MIPS seccomp handling
        - seccomp: Add mips and mips64 entries to lxc_config_parse_arch
        - seccomp: fix strerror()
        - confile: add more archs to lxc_config_parse_arch()
        - seccomp: add support for s390x
        - seccomp: remove double include and order includes
        - seccomp: non functional changes
        - templates: use fd 9 instead of 200
        - templates: fedora requires openssl binary
        - tools: use boolean for ret in lxc_device.c
        - c/r: use /proc/self/tid/children instead of pidfile
        - c/r: Fix pid_t on some arches
        - templates: Add mips hostarch detection to debian
        - cleanup: replace tabs wth spaces in usage strings
        - remove extra 'ret'
        - c/r: write status only after trying to parse the pid
        - set FULL_PATH_NAMES=NO in doc/api/Doxyfile
        - templates: rm halt.target -> sigpwr.target symlink
        - templates: remove creation of bogus directory
        - console: use correct log name
        - configure: add --disable-werror
        - tests: fix get_item tests
        - templates: use correct cron version in alpine template
        - c/r: zero a smaller than known migrate_opts struct
        - lxczfs: small fixes
        - c/r: free valid_opts if necessary
        - make rsync deal with sparse files efficiently
        - lxc-create -t debian fails on ppc64el arch
        - c/r: fix typo in comment
        - cgroup: add new functions for interacting with hierachies
        - utils: add lxc_deslashify
        - c/r: pass --cgroup-roots on checkpoint
        - cgroup: get rid of weird hack in cgfsng_escape
        - cgroup: drop cgroup_canonical_path
        - c/r: check that cgroup_num_hierarchies > 0
        - tools: do not add trailing spaces on lxc-ls -1
        - conf: retrieve mtu from netdev->link
        - conf: try to retrieve mtu from veth
        - c/r: detatch from controlling tty on restore
        - Fix null derefence if attach is called without access to any tty
        - utils: fix lxc_string_split()
        - tools: lxc_deslashify() handle special cases
        - tests: add unit tests for lxc_deslashify()
        - Fix for ALTLinux container creation in all branches
        - utils: lxc_deslashify() free memory
        - Fix spelling of CentOS in the templates
        - Define LXC_DEVEL to detect development releases
        - tools: lxc-checkconfig conditionalize devpts check
      * Drop all cherry-pick patches, now upstream.
      * Update to newer standards. Drop un-needed debian/control field.
      * Address all lintian messages.
      * Revert the previous upload as it caused FTBFS.
    
     -- Stéphane Graber <email address hidden>  Wed, 05 Oct 2016 13:56:58 +0200