diff options
author | Thomas Haller <thaller@redhat.com> | 2014-08-19 18:56:23 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-09-29 13:51:11 +0200 |
commit | 53e244bef637c3e4004961651d4ed23eda7393b5 (patch) | |
tree | fcc07fb0b3fe5ecab3b2b5c00587a9075a3d8ee7 /src/nm-auth-subject.c | |
parent | eabe7d856c243673bbaba3295ce74d72e188596d (diff) | |
download | NetworkManager-53e244bef637c3e4004961651d4ed23eda7393b5.tar.gz |
auth: support disabling POLKIT authentication entirely at compile time
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).
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nm-auth-subject.c')
-rw-r--r-- | src/nm-auth-subject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nm-auth-subject.c b/src/nm-auth-subject.c index f982616677..fa3b5dca47 100644 --- a/src/nm-auth-subject.c +++ b/src/nm-auth-subject.c @@ -150,6 +150,8 @@ nm_auth_subject_to_string (NMAuthSubject *self, char *buf, gsize buf_len) return buf; } +#if WITH_POLKIT + /* returns a floating variant */ GVariant * nm_auth_subject_unix_process_to_polkit_gvariant (NMAuthSubject *self) @@ -171,6 +173,8 @@ nm_auth_subject_unix_process_to_polkit_gvariant (NMAuthSubject *self) return ret; } +#endif + NMAuthSubjectType nm_auth_subject_get_subject_type (NMAuthSubject *subject) { |