[lxc/lxc] db2575: lxc-user-nic: clarify and fix

0 views
Skip to first unread message

Serge Hallyn

unread,
Apr 29, 2026, 8:56:01 PMApr 29
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/stable-5.0
Home: https://github.com/lxc/lxc
Commit: db25752fe8a03c8264a21ca99f49b2db93c56910
https://github.com/lxc/lxc/commit/db25752fe8a03c8264a21ca99f49b2db93c56910
Author: Serge E. Hallyn <se...@hallyn.com>
Date: 2026-04-30 (Thu, 30 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: d1e36cc5ff26ff9171419ce6544eb3e1664a3968
https://github.com/lxc/lxc/commit/d1e36cc5ff26ff9171419ce6544eb3e1664a3968
Author: Serge E. Hallyn <se...@hallyn.com>
Date: 2026-04-30 (Thu, 30 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>


Compare: https://github.com/lxc/lxc/compare/cb8e38aca27a...d1e36cc5ff26

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