summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2014-07-14 14:23:50 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-07-15 16:45:05 +0200
commit7c30e60c525ea798aaab142766ff00eef4b5df3b (patch)
treebcdc35e2f57f49c416dca6d14400e333dd95a7a8 /src/db/sysdb_sudo.h
parentb3f56d9e4bd065590383eb1f812a3b77e3c56f24 (diff)
downloadsssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.tar.gz
sssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.tar.xz
sssd-7c30e60c525ea798aaab142766ff00eef4b5df3b.zip
sudo: fetch sudoRunAs attribute
This attribute was used in pre 1.7 versions of sudo and it is now deprecated by sudoRunAsUser and sudoRunAsGroup. However, some users still use this attribute so we need to support it to ensure backward compatibility. This patch makes sure that this attribute is downloaded if present and provided to sudo. Sudo than decides how to handle it. The new mapping option is not present in a man page since this attribute is deprecated in sudo for a very long time. Resolves: https://fedorahosted.org/sssd/ticket/2212 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r--src/db/sysdb_sudo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h
index f8e214f9f..fc896c385 100644
--- a/src/db/sysdb_sudo.h
+++ b/src/db/sysdb_sudo.h
@@ -39,6 +39,7 @@
#define SYSDB_SUDO_CACHE_AT_HOST "sudoHost"
#define SYSDB_SUDO_CACHE_AT_COMMAND "sudoCommand"
#define SYSDB_SUDO_CACHE_AT_OPTION "sudoOption"
+#define SYSDB_SUDO_CACHE_AT_RUNAS "sudoRunAs"
#define SYSDB_SUDO_CACHE_AT_RUNASUSER "sudoRunAsUser"
#define SYSDB_SUDO_CACHE_AT_RUNASGROUP "sudoRunAsGroup"
#define SYSDB_SUDO_CACHE_AT_NOTBEFORE "sudoNotBefore"