summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv_private.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-05-11 09:42:01 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-06-29 11:37:18 -0400
commit76db25eab9010a33657f35e5afc8477c996df7a3 (patch)
tree4238dbbfca28a6819285259fdbd1930f6a1992c8 /src/responder/sudo/sudosrv_private.h
parentb041138015878405fe09ee6695d9ff5e5be07405 (diff)
downloadsssd-76db25eab9010a33657f35e5afc8477c996df7a3.tar.gz
sssd-76db25eab9010a33657f35e5afc8477c996df7a3.tar.xz
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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h
index 47850ad63..e23a0d0d2 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;