Searched refs:num_rules (Results 1 - 20 of 20) sorted by relevance

/sssd/src/responder/sudo/
H A Dsudosrv_dp.c41 uint32_t num_rules; member in struct:sss_dp_get_sudoers_info
55 uint32_t num_rules,
79 info->num_rules = num_rules;
85 num_rules, name, dom->name);
156 info->dom->name, be_type, info->name, info->num_rules);
174 &info->num_rules);
186 for (i = 0; i < info->num_rules; i++) {
49 sss_dp_get_sudoers_send(TALLOC_CTX *mem_ctx, struct resp_ctx *rctx, struct sss_domain_info *dom, bool fast_reply, enum sss_dp_sudo_type type, const char *name, uint32_t num_rules, struct sysdb_attrs **rules) argument
H A Dsudosrv_get_sudorules.c204 uint32_t num_rules; local
234 &rules, &num_rules);
248 for (i = 0; i < num_rules; i++) {
257 *_num_rules = num_rules;
317 uint32_t num_rules; local
338 num_rules = num_user_rules + num_ng_rules;
339 if (num_rules == 0) {
346 rules = talloc_array(tmp_ctx, struct sysdb_attrs *, num_rules);
361 ret = sort_sudo_rules(rules, num_rules, inverse_order);
368 *_num_rules = num_rules;
422 uint32_t num_rules; local
490 uint32_t num_rules; local
614 uint32_t num_rules; member in struct:sudosrv_get_rules_state
[all...]
H A Dsudosrv_cmd.c105 uint32_t num_rules = cmd_ctx->num_rules; local
117 "%u rules\n", cmd_ctx->num_rules);
119 ret = sysdb_sudo_filter_rules_by_time(cmd_ctx, cmd_ctx->num_rules,
121 &num_rules, &rules);
127 num_rules);
132 num_rules, rules,
261 &cmd_ctx->num_rules);
H A Dsudosrv_private.h64 uint32_t num_rules; member in struct:sudo_cmd_ctx
101 uint32_t num_rules,
/sssd/src/providers/data_provider/
H A Ddp_target_sudo.c41 uint32_t num_rules; local
87 dbus_message_iter_get_basic(&iter, &num_rules);
89 rules = talloc_zero_array(mem_ctx, char *, num_rules + 1);
107 for (i = 0; i < num_rules; i++) {
126 rules[num_rules] = NULL;
/sssd/src/sss_client/sudo/
H A Dsss_sudo.h80 * but no rules match for him, the num_rules element
83 unsigned int num_rules; member in struct:sss_sudo_result
100 * _result->num_rules == 0). Other problems are returned
108 * means that the num_rules member is 0.
133 * _result->num_rules == 0). Other problems are returned
140 * is "empty", which means that the num_rules member
H A Dsss_sudo.c38 static void sss_sudo_free_rules(unsigned int num_rules,
204 sss_sudo_free_rules(result->num_rules, result->rules);
208 void sss_sudo_free_rules(unsigned int num_rules, struct sss_sudo_rule *rules) argument
217 for (i = 0; i < num_rules; i++) {
H A Dsss_sudo_response.c93 &cursor, &result->num_rules);
99 result->rules = calloc(result->num_rules, sizeof(struct sss_sudo_rule));
105 for (i = 0; i < result->num_rules; i++) {
/sssd/src/db/
H A Dsysdb_sudo.h134 size_t num_rules);
139 size_t num_rules);
H A Dsysdb_sudo.c182 uint32_t num_rules = 0; local
199 num_rules++;
201 num_rules);
204 rules[num_rules - 1] = in_rules[i];
208 *_num_rules = num_rules;
693 size_t num_rules)
701 if (num_rules == 0 || rules == NULL) {
705 for (i = 0; i < num_rules; i++) {
775 size_t num_rules)
791 ret = sysdb_sudo_purge_byrules(domain, rules, num_rules);
691 sysdb_sudo_purge_byrules(struct sss_domain_info *dom, struct sysdb_attrs **rules, size_t num_rules) argument
772 sysdb_sudo_purge(struct sss_domain_info *domain, const char *delete_filter, struct sysdb_attrs **rules, size_t num_rules) argument
952 sysdb_sudo_store(struct sss_domain_info *domain, struct sysdb_attrs **rules, size_t num_rules) argument
[all...]
/sssd/src/providers/ldap/
H A Dsdap_async_sudo.c39 size_t num_rules; member in struct:sdap_sudo_load_sudoers_state
64 state->num_rules = 0;
106 ret = sdap_search_bases_recv(subreq, state, &state->num_rules,
115 state->num_rules);
124 size_t *num_rules,
133 *num_rules = state->num_rules;
292 size_t num_rules; member in struct:sdap_sudo_refresh_state
631 state->num_rules = rules_count;
652 size_t *num_rules)
122 sdap_sudo_load_sudoers_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, size_t *num_rules, struct sysdb_attrs ***rules) argument
649 sdap_sudo_refresh_recv(TALLOC_CTX *mem_ctx, struct tevent_req *req, int *dp_error, size_t *num_rules) argument
[all...]
H A Dsdap_sudo.h57 size_t *num_rules);
H A Dsdap_sudo_refresh.c267 size_t num_rules; member in struct:sdap_sudo_rules_refresh_state
336 state->num_rules = i;
392 state->deleted = downloaded_rules_num != state->num_rules ? true : false;
/sssd/src/sss_client/sudo_testcli/
H A Dsudo_testcli.c124 printf("Number of rules: %d\n", result->num_rules);
126 for (i = 0; i < result->num_rules; i++) {
/sssd/src/providers/ipa/
H A Dipa_sudo_async.c240 size_t num_rules; local
257 &num_rules, &msgs);
269 ret = sysdb_msg2attrs(tmp_ctx, num_rules, msgs, &rules);
277 *_num_rules = num_rules;
294 size_t num_rules; local
312 &rules, &num_rules);
317 if (num_rules == 0) {
329 for (i = 0; i < num_rules; i++) {
381 size_t num_rules; member in struct:ipa_sudo_fetch_state
796 &state->rules, &state->num_rules);
850 size_t num_rules; member in struct:ipa_sudo_refresh_state
[all...]
H A Dipa_sudo_conversion.c404 size_t num_rules)
411 if (num_rules == 0) {
416 for (i = 0; i < num_rules; i++) {
742 size_t num_rules; member in struct:ipa_sudo_conv_result_ctx
1169 ctx->rules[ctx->num_rules] = attrs;
1170 ctx->num_rules++;
1215 unsigned long num_rules; local
1218 num_rules = hash_count(conv->rules);
1219 if (num_rules == 0) {
1227 ctx.num_rules
402 ipa_sudo_conv_rules(struct ipa_sudo_conv *conv, struct sysdb_attrs **rules, size_t num_rules) argument
[all...]
H A Dipa_sudo.h90 size_t num_rules);
H A Dipa_sudo_refresh.c255 size_t num_rules; member in struct:ipa_sudo_rules_refresh_state
293 state->num_rules = 0;
327 state->num_rules = i;
382 state->deleted = downloaded_rules_num != state->num_rules ? true : false;
/sssd/src/tests/cmocka/
H A Dtest_sysdb_sudo.c659 size_t num_rules = 2; local
660 struct sysdb_attrs *tmp_rules[num_rules];
661 const char *rule_names[num_rules];
662 const char *db_results[num_rules];
689 for (int i = 0; i < num_rules; ++i) {
695 assert_true(are_values_in_array(rule_names, num_rules,
696 db_results, num_rules));
/sssd/src/python/
H A Dpyhbac.c1554 Py_ssize_t num_rules; local
1572 num_rules = PySequence_Size(py_rules_list);
1573 rules = PyMem_New(struct hbac_rule *, num_rules+1);
1579 for (i=0; i < num_rules; i++) {
1599 rules[num_rules] = NULL;

Completed in 750 milliseconds