Let the user completly disable polkit authentication by building NM with configure option '--enable-polkit=disabled'.
In that case, configuring 'main.auth-polkit=yes' will fail all authentication requests (except root-requests, which are always granted).
This reduces the size of the NetworkManager binary by some 26KB (16KB stripped).
53e244b auth: support disabling POLKIT authentication entirely at compile time
configure.ac | 24 +++++++++++++++++++-----
src/nm-auth-manager.c | 17 +++++++++++++++++
src/nm-auth-manager.h | 3 +++
src/nm-auth-subject.c | 4 ++++
src/nm-auth-subject.h | 4 ++++
src/nm-auth-utils.c | 11 +++++++++++
6 files changed, 58 insertions(+), 5 deletions(-)
Upstream: cgit.freedesktop.org