]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: optimize mountinfo use
authorKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 11:36:42 +0000 (13:36 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 11:36:42 +0000 (13:36 +0200)
commita7f70ce17a925f1085bfa4b292427f8741d7e2a2
tree2e218d38ea040f38c0a7b768a7bd4baba6a894ac
parent0c799b0da944f03af1a69417813ecbf08df77abc
lsns: optimize mountinfo use

Let's parse mountinfo only for unknown namespaces or when
namespace Id is not accessible (unprivileged users).

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsfd.c
misc-utils/lsfd.h