diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-02-24 12:02:05 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-02-24 13:47:47 -0500 |
commit | c14486feb47672a3562989ddb00653f58357e368 (patch) | |
tree | 92fe193ae916c95ae95654a55a7bdce45587aeac /server/infopipe/infopipe.h | |
parent | 795e12d8315c4f7f0d4b2abb77fb49e0417e362a (diff) | |
download | sssd-c14486feb47672a3562989ddb00653f58357e368.tar.gz sssd-c14486feb47672a3562989ddb00653f58357e368.tar.bz2 sssd-c14486feb47672a3562989ddb00653f58357e368.zip |
Adding support for CheckPermissions to InfoPipe.
CheckPermissions will currently return unrestricted access to the
root user, and no access to any other user. Once we decide on an
ACL mechanism, this will be easy to change.
I have also added very basic tests for the Introspect and
CheckPermissions methods.
Diffstat (limited to 'server/infopipe/infopipe.h')
-rw-r--r-- | server/infopipe/infopipe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/infopipe/infopipe.h b/server/infopipe/infopipe.h index 83a3d8d4..9db5c0d1 100644 --- a/server/infopipe/infopipe.h +++ b/server/infopipe/infopipe.h @@ -55,6 +55,9 @@ int infp_introspect(DBusMessage *message, struct sbus_message_ctx *reply); #define INFP_CHECK_PERMISSIONS "CheckPermissions1" int infp_check_permissions(DBusMessage *message, struct sbus_message_ctx *reply); +#define INFP_PERMISSION_METHODS \ + {INFP_CHECK_PERMISSIONS,infp_check_permissions}, + /********************************************************** * User Methods (from infopipe_users.c) * **********************************************************/ |