[lxc/lxc] 7c4348: lxc-user-nic: clarify and fix

0 views
Skip to first unread message

Stéphane Graber

unread,
Apr 29, 2026, 6:15:33 PMApr 29
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/main
Home: https://github.com/lxc/lxc
Commit: 7c4348314ac1914074197774ea0292c69eb6316c
https://github.com/lxc/lxc/commit/7c4348314ac1914074197774ea0292c69eb6316c
Author: Serge E. Hallyn <se...@hallyn.com>
Date: 2026-04-29 (Wed, 29 Apr 2026)

Changed paths:
M src/lxc/cmd/lxc_user_nic.c

Log Message:
-----------
lxc-user-nic: clarify and fix

Some variable names were a bit confusing in find_line and cull_entries.
Rename and document, and fix the flows using these.

It's possible that a more maintainable approach, long term, would be
to break these up differently: have one function create a neat
in memory data structure representing the files, and have the paths
currently using find_line and cull_entries peek into the data structures.
But i think this is pretty clear.

This fixes CVE-2026-39402

Signed-off-by: Serge E. Hallyn <se...@hallyn.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


Commit: 14754e0b9913e3cc229f9912f57d4d2e7efe760d
https://github.com/lxc/lxc/commit/14754e0b9913e3cc229f9912f57d4d2e7efe760d
Author: Serge E. Hallyn <se...@hallyn.com>
Date: 2026-04-29 (Wed, 29 Apr 2026)

Changed paths:
A src/tests/lxc-test-usernic-2.in
M src/tests/meson.build

Log Message:
-----------
usernic: add a test for ovs port deletion permission

Signed-off-by: Serge E. Hallyn <se...@hallyn.com>
Reviewed-by: Alexander Mikhalitsyn <aleksandr....@futurfusion.io>


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

Changed paths:
M src/lxc/cmd/lxc_user_nic.c
A src/tests/lxc-test-usernic-2.in
M src/tests/meson.build

Log Message:
-----------
Merge pull request #4678 from stgraber/security

Fix security issue with lxc-user-nic and OpenVswitch networks


Compare: https://github.com/lxc/lxc/compare/16fc0e426b0e...f292c4a24638

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