diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-05-11 09:42:01 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-29 11:37:18 -0400 |
commit | 76db25eab9010a33657f35e5afc8477c996df7a3 (patch) | |
tree | 4238dbbfca28a6819285259fdbd1930f6a1992c8 /src/responder/sudo/sudosrv_private.h | |
parent | b041138015878405fe09ee6695d9ff5e5be07405 (diff) | |
download | sssd-76db25eab9010a33657f35e5afc8477c996df7a3.tar.gz sssd-76db25eab9010a33657f35e5afc8477c996df7a3.tar.bz2 sssd-76db25eab9010a33657f35e5afc8477c996df7a3.zip |
sudo responder: new request enum type
sss_sudo_type represents query type that comes to the responder
sss_dp_sudo_type represents query type to DP that is issued by the responder
I'm leaving current values of sss_dp_sudo_type untouched so the compilation
is not broken. Hovewer, they will be changed to new DP types once the DP
interface is updated.
Diffstat (limited to 'src/responder/sudo/sudosrv_private.h')
-rw-r--r-- | src/responder/sudo/sudosrv_private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h index 47850ad6..e23a0d0d 100644 --- a/src/responder/sudo/sudosrv_private.h +++ b/src/responder/sudo/sudosrv_private.h @@ -37,6 +37,11 @@ enum sss_dp_sudo_type { SSS_DP_SUDO_USER }; +enum sss_sudo_type { + SSS_SUDO_DEFAULTS, + SSS_SUDO_USER +}; + struct sudo_ctx { struct resp_ctx *rctx; @@ -49,7 +54,7 @@ struct sudo_ctx { struct sudo_cmd_ctx { struct cli_ctx *cli_ctx; struct sudo_ctx *sudo_ctx; - enum sss_dp_sudo_type type; + enum sss_sudo_type type; /* input data */ uid_t uid; |