/sssd/src/responder/sudo/ |
H A D | sudosrv_dp.c | 41 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 D | sudosrv_get_sudorules.c | 204 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 D | sudosrv_cmd.c | 105 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 D | sudosrv_private.h | 64 uint32_t num_rules; member in struct:sudo_cmd_ctx 101 uint32_t num_rules,
|
/sssd/src/providers/data_provider/ |
H A D | dp_target_sudo.c | 41 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 D | sss_sudo.h | 80 * 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 D | sss_sudo.c | 38 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 D | sss_sudo_response.c | 93 &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 D | sysdb_sudo.h | 134 size_t num_rules); 139 size_t num_rules);
|
H A D | sysdb_sudo.c | 182 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 D | sdap_async_sudo.c | 39 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 D | sdap_sudo.h | 57 size_t *num_rules);
|
H A D | sdap_sudo_refresh.c | 267 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 D | sudo_testcli.c | 124 printf("Number of rules: %d\n", result->num_rules); 126 for (i = 0; i < result->num_rules; i++) {
|
/sssd/src/providers/ipa/ |
H A D | ipa_sudo_async.c | 240 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 D | ipa_sudo_conversion.c | 404 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 D | ipa_sudo.h | 90 size_t num_rules);
|
H A D | ipa_sudo_refresh.c | 255 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 D | test_sysdb_sudo.c | 659 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 D | pyhbac.c | 1554 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;
|