summaryrefslogtreecommitdiffstats
path: root/src/responder/sudo/sudosrv_private.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 19:46:30 +0100
commite54cde6e089080e919bf990ba1fee885b227000c (patch)
treed547ed76c1421f40e0eaf02627e515284727ac22 /src/responder/sudo/sudosrv_private.h
parente0a3fbf8ba571c90a765135a04cf51a98ceaf407 (diff)
downloadsssd-e54cde6e089080e919bf990ba1fee885b227000c.tar.gz
sssd-e54cde6e089080e919bf990ba1fee885b227000c.tar.xz
sssd-e54cde6e089080e919bf990ba1fee885b227000c.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. Resolved Conflicts: src/responder/sudo/sudosrv_get_sudorules.c
Diffstat (limited to 'src/responder/sudo/sudosrv_private.h')
-rw-r--r--src/responder/sudo/sudosrv_private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/responder/sudo/sudosrv_private.h b/src/responder/sudo/sudosrv_private.h
index 9d3156ca1..71a272ab4 100644
--- a/src/responder/sudo/sudosrv_private.h
+++ b/src/responder/sudo/sudosrv_private.h
@@ -62,11 +62,11 @@ struct sudo_cmd_ctx {
struct sss_domain_info *domain;
bool check_next;
- size_t expired_rules_num;
+ uint32_t expired_rules_num;
/* output data */
struct sysdb_attrs **rules;
- size_t num_rules;
+ uint32_t num_rules;
};
struct sudo_dom_ctx {
@@ -101,7 +101,7 @@ errno_t sudosrv_parse_query_recv(TALLOC_CTX *mem_ctx,
errno_t sudosrv_build_response(TALLOC_CTX *mem_ctx,
uint32_t error,
- int rules_num,
+ uint32_t rules_num,
struct sysdb_attrs **rules,
uint8_t **_response_body,
size_t *_response_len);
@@ -113,7 +113,7 @@ sss_dp_get_sudoers_send(TALLOC_CTX *mem_ctx,
bool fast_reply,
enum sss_dp_sudo_type type,
const char *name,
- size_t num_rules,
+ uint32_t num_rules,
struct sysdb_attrs **rules);
errno_t