Commit Graph

90 Commits

Author SHA1 Message Date
Wolfgang Bumiller
01ed43133f update patches for lxc-5
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-06-22 11:34:47 +02:00
Wolfgang Bumiller
545d7dec6e update patches for lxc-4.0.12
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2022-04-04 11:27:40 +02:00
Wolfgang Bumiller
87c39e902a update patches for lxc-4.0.11
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-12-03 13:07:49 +01:00
Stoiko Ivanov
4c7843ef61 patches: update series file with latest patches
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-20 17:28:05 +02:00
Stoiko Ivanov
ab2219beca add patches for cgroup handling in non-unified cgroup setups
I opened a PR at lxc-upstream with these changes [0].

Testing in my hybrid layout environment fixes the issue with
priviledged container reported in the forum.
(Note that the issue also occurs with unprivileged container, if they
have a `lxc.cgroup.devices.(allow|deny)` entry (which they don't in
our default config)

[0] https://github.com/lxc/lxc/pull/3911

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-07-20 13:21:51 +02:00
Wolfgang Bumiller
27a22db977 add patch to include userns.conf.d/
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-07-05 10:55:26 +02:00
Thomas Lamprecht
63e050e246 import LXC 4.0.9 and update patches
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-12 19:21:45 +02:00
Wolfgang Bumiller
02c596f304 update to lxc-4.0.6
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2021-01-25 11:26:30 +01:00
Wolfgang Bumiller
080abced1d rebase on lxc-4.0.3 tag
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-31 11:07:51 +02:00
Wolfgang Bumiller
799a3fe0ff merge fix for busy-looping on cgroup events
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-30 15:08:35 +02:00
Stoiko Ivanov
6f24ec6c4f apparmor: add rule for allowing remount of boot_id
commit 863845075d3f77d27c91bd9f47d2f8ddc4867bd5 in upstream only partially
fixes the apparmor deny for mounting boot_id (used for example for identifying
different boots with `journalctl`) inside the container.

Tested by editing the profile and replacing it disregarding the cache:
`apparmor_parser -W -T -r /etc/apparmor.d/usr.bin.lxc-start`

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-07-30 15:03:16 +02:00
Wolfgang Bumiller
80fb84e7de bump version to 4.0.2-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-20 11:49:32 +02:00
Wolfgang Bumiller
8170740ba0 update to current master: devices cgroup isolation fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-07 10:52:54 +02:00
Wolfgang Bumiller
3e9264ba48 update to master / lxc-4.0.0+fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2020-04-06 09:11:19 +02:00
Wolfgang Bumiller
0a134a36e5 update to current master
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-10-23 11:03:01 +02:00
Wolfgang Bumiller
98c94fe544 update apparmor patch
the previous patch removed some required lines from the
nesting profile part, this brings it closer to lxd plus the
additional read-only-bind-remount rule generation

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-09-03 14:07:46 +02:00
Wolfgang Bumiller
2b3c35899b merge fix for 'getent' in lxc-attach
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-08-13 14:20:15 +02:00
Wolfgang Bumiller
8a25e88454 fix issues with shell detection on attach
Merge: attach: always use getent

Commit message:
In debian buster, some libnss plugins (if installed) can
cause getpwent to segfault instead of erroring out cleanly.
To avoid this, stick to always using getent.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-08-13 14:01:33 +02:00
Wolfgang Bumiller
90fcde9290 merge new apparmor profile update
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-08-09 11:47:49 +02:00
Wolfgang Bumiller
40c4fcc712 update apparmor profile
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-08-05 09:22:09 +02:00
Wolfgang Bumiller
d3bbd2a250 bump compat to 11, fix reloading of lxc.service
Add a patch to add an ExecReload for lxc.service, and use
the new dh_installsystemd instead of the old
dh_systemd_start.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-07-11 12:11:35 +02:00
Wolfgang Bumiller
907c590de2 merge fix for CVE-2019-5736
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-02-12 08:07:07 +01:00
Wolfgang Bumiller
352dbb681f merge 2 fixups:
* Revert "conf: remove extra MS_BIND with sysfs:mixed"
    This should let privileged Ubuntu 14.04 containers boot
    again.

* conf: use SYSERROR on lxc_write_to_file errors
    Slightly more useful error output in a specific error
    case.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-01-17 09:34:34 +01:00
Wolfgang Bumiller
834bb4d705 update to lxc-3.1.0
The default cgroup pattern was switched from lxc/%n to
lxc.payload/%n, so add a ./configure option to revert this
change as PVE expects containers in lxc/%n.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2019-01-02 14:39:37 +01:00
Wolfgang Bumiller
71a3cc63d4 apparmor: allow various ro,remount,bind mounts
Required to enable new systemd sandboxing mechanisms.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-11-15 12:21:57 +01:00
Wolfgang Bumiller
f62d31fd51 fixup patch names namespace separation patch
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-10-11 11:49:40 +02:00
Wolfgang Bumiller
f46e8fbf9b bump version to 3.0.2+pve1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-08-20 11:51:46 +02:00
Fabian Grünbichler
3aee60181b cherry-pick CVE-2018-6556 fix
from upstream's stable-3.0 branch
2018-08-07 11:39:50 +02:00
Wolfgang Bumiller
2d8021b3bf bump version to 3.0.1+pve1-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-07-26 14:46:33 +02:00
Wolfgang Bumiller
99be5c8cba merge upstream bugfixes:
* fix some memory leaks
  * fix temp file creation
  * fix rootfs pinning with NFS
  * drop supplementary groups on attach
  * fix gid=5 mount option on /dev/pts

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-05-02 10:43:05 +02:00
Wolfgang Bumiller
1513a0b50a bump version to 3.0.0-1
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-03-28 14:05:46 +02:00
Wolfgang Bumiller
c44ec9cece merge lxc-console improvements from stable branch
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-24 13:47:29 +01:00
Wolfgang Bumiller
bc7e56ac99 bump version to 2.1.1-1
And switch to using submodules.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2017-11-20 11:27:18 +01:00
Wolfgang Bumiller
f81e43ae79 update cgroup namespace separation patches 2017-09-19 10:06:03 +02:00
Wolfgang Bumiller
f39a178ac4 update to lxc-2.1.0 2017-09-06 11:56:32 +02:00
Wolfgang Bumiller
cf815adf2d fix a segfault in lxc-attach 2017-06-30 11:01:14 +02:00
Wolfgang Bumiller
c8c3e739bc bump version to 2.0.8-2 2017-05-31 14:00:17 +02:00
Wolfgang Bumiller
ccdf81b558 merge resource limits and additional fixes 2017-05-31 14:00:13 +02:00
Wolfgang Bumiller
7395ab25d1 bump version to 2.0.8-1 2017-05-12 15:03:55 +02:00
Wolfgang Bumiller
3c2b20b3b9 merge: CVE-2017-5985: Ensure target netns is caller-owned 2017-03-10 09:10:53 +01:00
Fabian Grünbichler
9bf17fcbee fix whitespace error 2017-02-14 13:37:00 +01:00
Wolfgang Bumiller
ade16ee611 switch to git-patch workflow; add lxc-monitord.service 2017-02-10 12:01:55 +01:00
Wolfgang Bumiller
790ed80040 remove patch which has gone upstream 2017-02-09 13:26:48 +01:00
Wolfgang Bumiller
d16f9eea6a drop cgmanager.service dependencies 2017-02-08 10:08:09 +01:00
Wolfgang Bumiller
bf4f5fada3 also remove the Delegate option from lxc@.service 2017-02-02 14:08:41 +01:00
Wolfgang Bumiller
ce37e3349f use forking mode for lxc@.service 2017-02-02 11:17:34 +01:00
Wolfgang Bumiller
02a2999d39 update cgroup namespace separation patches 2016-12-23 15:58:18 +01:00
Wolfgang Bumiller
d7bc4f06d3 restore backward cgroup namespace backward compatibility 2016-12-22 14:49:18 +01:00
Wolfgang Bumiller
07288e64fa update cgroup namespace separation patches 2016-12-22 12:23:39 +01:00
Wolfgang Bumiller
9cbc07f09a merge: tools: lxc-start: set configfile after load_config 2016-12-02 14:22:16 +01:00