summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb_sudo.h
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-01-22 14:31:37 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-01-22 18:31:03 +0100
commitdac148d7e7019bc3b5591e01228e117681de4661 (patch)
tree55b07a7ff0a8188275d01694e6f99983289143f1 /src/db/sysdb_sudo.h
parent42e4c17f1ced86af276b4b46c6eb601e03ff7740 (diff)
downloadsssd-dac148d7e7019bc3b5591e01228e117681de4661.tar.gz
sssd-dac148d7e7019bc3b5591e01228e117681de4661.tar.xz
sssd-dac148d7e7019bc3b5591e01228e117681de4661.zip
sudo responder: change num_rules type from size_t to uint32_t
https://fedorahosted.org/sssd/ticket/1779 2^32 should be enough to store sudo rules. size_t type was causing troubles on big endian architectures, because it wasn't used correctly in combination with D-Bus.
Diffstat (limited to 'src/db/sysdb_sudo.h')
-rw-r--r--src/db/sysdb_sudo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_sudo.h b/src/db/sysdb_sudo.h
index f37afff8c..882dd1085 100644
--- a/src/db/sysdb_sudo.h
+++ b/src/db/sysdb_sudo.h
@@ -60,10 +60,10 @@
| SYSDB_SUDO_FILTER_NGRS
errno_t sysdb_sudo_filter_rules_by_time(TALLOC_CTX *mem_ctx,
- size_t in_num_rules,
+ uint32_t in_num_rules,
struct sysdb_attrs **in_rules,
time_t now,
- size_t *_num_rules,
+ uint32_t *_num_rules,
struct sysdb_attrs ***_rules);
errno_t