[pkg-lxc-devel] Bug#1118024: lxc: lxc-ls --fancy prints errors for unprivileged containers in trixie

Thierry debian_bugreport at sagedebianlive.metelu.net
Mon Oct 13 22:51:12 BST 2025


Package: lxc
Version: 1:6.0.4-4+b3
Tags: trixie

Dear Maintainer,

after migration from bookworm to trixie, the command "lxc-ls --fancy"
outputs several lines of errors (three times as much as the number of
running containers):

$ lxc-ls --fancy
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 2376 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 2376 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 2376 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 3946 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 3946 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 3946 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 11931 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 11931 to "net" of 3
lxc-ls: ../src/lxc/utils.c: switch_to_ns: 900 Operation not permitted - Failed to set process 11931 to "net" of 3
[...]

Those messages are sent in stderr.

It looks like the upstream bug https://github.com/lxc/lxc/issues/4560
that was fixed in https://github.com/lxc/lxc/pull/4566

It would be nice to have this commit merged for trixie.

Ciao,
Thierry



More information about the Pkg-lxc-devel mailing list