Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

[lxc/lxc] ff1ea5: tools/lxc_attach: fix ENFORCE_MEMFD_REXEC checks

1 view
Skip to first unread message

Stéphane Graber

unread,
Apr 2, 2025, 9:33:02 AMApr 2
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: ff1ea5099c5f216ba0c3199477b80d5ed626c4f3
https://github.com/lxc/lxc/commit/ff1ea5099c5f216ba0c3199477b80d5ed626c4f3
Author: Alexander Mikhalitsyn <aleksandr....@canonical.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)

Changed paths:
M src/lxc/tools/lxc_attach.c

Log Message:
-----------
tools/lxc_attach: fix ENFORCE_MEMFD_REXEC checks

We unconditionally define ENFORCE_MEMFD_REXEC in meson.build
to a corresponding boolean value, so we need to use #if
instead of #ifdef in the code.

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@canonical.com>


Commit: becd5538e66a5437a661ca1c77580c8c1766b733
https://github.com/lxc/lxc/commit/becd5538e66a5437a661ca1c77580c8c1766b733
Author: Alexander Mikhalitsyn <aleksandr....@canonical.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)

Changed paths:
M src/lxc/conf.c

Log Message:
-----------
lxc/conf: handle rootfs open_at error in lxc_mount_rootfs

If LXC build is misconfigured, for instance, --prefix=/
and /lib is a symlink to /usr/lib then open_at always fails
to open rootfs. Let's add error print to make it easier to
figure out this.

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@canonical.com>


Commit: 3c6ea300b5c087ab5987f7c5b97f139c91216810
https://github.com/lxc/lxc/commit/3c6ea300b5c087ab5987f7c5b97f139c91216810
Author: Alexander Mikhalitsyn <aleksandr....@canonical.com>
Date: 2025-04-02 (Wed, 02 Apr 2025)

Changed paths:
M src/lxc/caps.c

Log Message:
-----------
lxc/caps: fix open /proc/sys/kernel/cap_last_cap

Since 7418b27f1 ("tree-wide: use __u32 for capabilities") open
/proc/sys/kernel/cap_last_cap never worked, it was failing with
EXDEV and we were using a fallback codepath to get a last cap.

Signed-off-by: Alexander Mikhalitsyn <aleksandr....@canonical.com>


Commit: 53e07509bf36d5296ec6db655691c56ad6ba9bb6
https://github.com/lxc/lxc/commit/53e07509bf36d5296ec6db655691c56ad6ba9bb6
Author: Stéphane Graber <stgr...@stgraber.org>
Date: 2025-04-02 (Wed, 02 Apr 2025)

Changed paths:
M src/lxc/caps.c
M src/lxc/conf.c
M src/lxc/tools/lxc_attach.c

Log Message:
-----------
Merge pull request #4533 from mihalicyn/bunch_of_fixes_apr2025

A bunch of small fixes


Compare: https://github.com/lxc/lxc/compare/a19e81a081e5...53e07509bf36

To unsubscribe from these emails, change your notification settings at https://github.com/lxc/lxc/settings/notifications
Reply all
Reply to author
Forward
0 new messages