Home
last modified time | relevance | path

Searched refs:policy (Results 1 – 25 of 110) sorted by relevance

12345

/dragonfly/crypto/libressl/crypto/x509/
HDx509_pci.c79 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci()
81 pci->proxyPolicy->policy->length, in i2r_pci()
82 pci->proxyPolicy->policy->data); in i2r_pci()
88 ASN1_INTEGER **pathlen, ASN1_OCTET_STRING **policy) in process_pci_value() argument
119 if (!*policy) { in process_pci_value()
120 *policy = ASN1_OCTET_STRING_new(); in process_pci_value()
121 if (!*policy) { in process_pci_value()
138 tmp_data = realloc((*policy)->data, in process_pci_value()
139 (*policy)->length + val_len + 1); in process_pci_value()
141 (*policy)->data = tmp_data; in process_pci_value()
[all …]
HDpcy_data.c86 policy_data_new(POLICYINFO *policy, const ASN1_OBJECT *cid, int crit) in policy_data_new() argument
91 if (policy == NULL && cid == NULL) in policy_data_new()
113 ret->valid_policy = policy->policyid; in policy_data_new()
114 policy->policyid = NULL; in policy_data_new()
117 if (policy != NULL) { in policy_data_new()
118 ret->qualifier_set = policy->qualifiers; in policy_data_new()
119 policy->qualifiers = NULL; in policy_data_new()
/dragonfly/usr.sbin/nscd/
HDcacheplcs.c102 cache_queue_policy_add_item(struct cache_policy_ *policy, in cache_queue_policy_add_item() argument
109 queue_policy = (struct cache_queue_policy_ *)policy; in cache_queue_policy_add_item()
116 cache_queue_policy_remove_item(struct cache_policy_ *policy, in cache_queue_policy_remove_item() argument
123 queue_policy = (struct cache_queue_policy_ *)policy; in cache_queue_policy_remove_item()
130 cache_queue_policy_get_first_item(struct cache_policy_ *policy) in cache_queue_policy_get_first_item() argument
135 queue_policy = (struct cache_queue_policy_ *)policy; in cache_queue_policy_get_first_item()
141 cache_queue_policy_get_last_item(struct cache_policy_ *policy) in cache_queue_policy_get_last_item() argument
146 queue_policy = (struct cache_queue_policy_ *)policy; in cache_queue_policy_get_last_item()
153 cache_queue_policy_get_next_item(struct cache_policy_ *policy, in cache_queue_policy_get_next_item() argument
166 cache_queue_policy_get_prev_item(struct cache_policy_ *policy, in cache_queue_policy_get_prev_item() argument
[all …]
HDcachelib.c240 switch (common_entry->common_params.policy) { in destroy_cache_entry()
287 struct cache_policy_ *policy; in clear_cache_entry() local
308 policy = common_entry->policies[i]; in clear_cache_entry()
311 item = policy->get_first_item_func(policy); in clear_cache_entry()
313 next_item = policy->get_next_item_func(policy, in clear_cache_entry()
315 policy->remove_item_func(policy, item); in clear_cache_entry()
316 policy->destroy_item_func(item); in clear_cache_entry()
369 struct cache_policy_ *policy, in flush_cache_policy() argument
379 assert(policy != NULL); in flush_cache_policy()
382 item = policy->get_first_item_func(policy); in flush_cache_policy()
[all …]
HDparser.c190 const char *entry_name, enum cache_policy_t policy) in set_positive_policy() argument
199 entry->positive_cache_params.policy = policy; in set_positive_policy()
206 const char *entry_name, enum cache_policy_t policy) in set_negative_policy() argument
215 entry->negative_cache_params.policy = policy; in set_negative_policy()
/dragonfly/crypto/openssh/
HDsandbox-systrace.c129 struct systrace_policy policy; in ssh_sandbox_parent() local
163 memset(&policy, 0, sizeof(policy)); in ssh_sandbox_parent()
164 policy.strp_op = SYSTR_POLICY_NEW; in ssh_sandbox_parent()
165 policy.strp_maxents = SYS_MAXSYSCALL; in ssh_sandbox_parent()
166 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent()
170 policy.strp_op = SYSTR_POLICY_ASSIGN; in ssh_sandbox_parent()
171 policy.strp_pid = box->child_pid; in ssh_sandbox_parent()
172 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent()
185 policy.strp_op = SYSTR_POLICY_MODIFY; in ssh_sandbox_parent()
186 policy.strp_code = i; in ssh_sandbox_parent()
[all …]
/dragonfly/lib/libthread_xu/thread/
HDthr_setschedparam.c44 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument
52 if (curthread->attr.sched_policy == policy && in _pthread_setschedparam()
57 if (policy == SCHED_OTHER) { in _pthread_setschedparam()
61 ret = _thr_setscheduler(curthread->tid, policy, param); in _pthread_setschedparam()
66 curthread->attr.sched_policy = policy; in _pthread_setschedparam()
73 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam()
78 if (policy == SCHED_OTHER) { in _pthread_setschedparam()
82 ret = _thr_setscheduler(pthread->tid, policy, param); in _pthread_setschedparam()
87 pthread->attr.sched_policy = policy; in _pthread_setschedparam()
HDthr_kern.c153 _rtp_to_schedparam(const struct rtprio *rtp, int *policy, in _rtp_to_schedparam() argument
158 *policy = SCHED_RR; in _rtp_to_schedparam()
162 *policy = SCHED_FIFO; in _rtp_to_schedparam()
166 *policy = SCHED_OTHER; in _rtp_to_schedparam()
174 _schedparam_to_rtp(int policy, const struct sched_param *param, in _schedparam_to_rtp() argument
177 switch(policy) { in _schedparam_to_rtp()
196 _thr_getscheduler(lwpid_t lwpid, int *policy, struct sched_param *param) in _thr_getscheduler() argument
207 _rtp_to_schedparam(&rtp, policy, param); in _thr_getscheduler()
212 _thr_setscheduler(lwpid_t lwpid, int policy, const struct sched_param *param) in _thr_setscheduler() argument
219 _schedparam_to_rtp(policy, param, &rtp); in _thr_setscheduler()
HDthr_getschedparam.c43 _pthread_getschedparam(pthread_t pthread, int * __restrict policy, in _pthread_getschedparam() argument
49 if (policy == NULL || param == NULL) in _pthread_getschedparam()
58 *policy = curthread->attr.sched_policy; in _pthread_getschedparam()
66 *policy = pthread->attr.sched_policy; in _pthread_getschedparam()
HDthr_setprio.c40 int ret, policy; in _pthread_setprio() local
43 if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0) { in _pthread_setprio()
45 ret = _pthread_setschedparam(pthread, policy, &param); in _pthread_setprio()
HDthr_attr.c205 int * __restrict policy) in _pthread_attr_getschedpolicy() argument
209 if ((attr == NULL) || (*attr == NULL) || (policy == NULL)) in _pthread_attr_getschedpolicy()
212 *policy = (*attr)->sched_policy; in _pthread_attr_getschedpolicy()
433 int policy; in _pthread_attr_setschedparam() local
441 policy = (*attr)->sched_policy; in _pthread_attr_setschedparam()
444 int minv = sched_get_priority_min(policy); in _pthread_attr_setschedparam()
445 int maxv = sched_get_priority_max(policy); in _pthread_attr_setschedparam()
HDthr_getprio.c41 int policy, ret; in _pthread_getprio() local
44 if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0) in _pthread_getprio()
/dragonfly/sys/kern/
HDkern_sched.c127 register_t policy; in ksched_setparam() local
130 e = getscheduler(&policy, ksched, lp); in ksched_setparam()
133 if (policy == SCHED_OTHER) in ksched_setparam()
136 e = ksched_setscheduler(ret, ksched, lp, policy, param); in ksched_setparam()
161 struct lwp *lp, int policy, const struct sched_param *param) in ksched_setscheduler() argument
166 switch(policy) { in ksched_setscheduler()
172 rtp.type = (policy == SCHED_FIFO) ? in ksched_setscheduler()
225 ksched_get_priority_max(register_t*ret, struct ksched *ksched, int policy) in ksched_get_priority_max() argument
229 switch (policy) { in ksched_get_priority_max()
249 ksched_get_priority_min(register_t *ret, struct ksched *ksched, int policy) in ksched_get_priority_min() argument
[all …]
/dragonfly/usr.sbin/mfiutil/
HDmfi_volume.c117 uint8_t changes, policy; in update_cache_policy() local
122 policy = new->default_cache_policy; in update_cache_policy()
123 changes = policy ^ old->default_cache_policy; in update_cache_policy()
126 policy & MR_LD_CACHE_ALLOW_WRITE_CACHE ? "Enabling" : in update_cache_policy()
130 policy & MR_LD_CACHE_ALLOW_READ_CACHE ? "Enabling" : in update_cache_policy()
134 policy & MR_LD_CACHE_WRITE_BACK ? "write-back" : in update_cache_policy()
138 policy & MR_LD_CACHE_READ_AHEAD ? in update_cache_policy()
139 (policy & MR_LD_CACHE_READ_ADAPTIVE ? in update_cache_policy()
143 policy & MR_LD_CACHE_WRITE_CACHE_BAD_BBU ? "Enabling" : in update_cache_policy()
184 uint8_t policy; in process_cache_command() local
[all …]
/dragonfly/contrib/file/magic/Magdir/
HDselinux1 # Type: SE Linux policy modules *.pp reference policy
6 0 lelong 0xf97cff8f SE Linux modular policy
17 1 string policy_module( SE Linux policy module source
18 2 string policy_module( SE Linux policy module source
20 0 string ##\ <summary> SE Linux policy interface source
22 #0 search gen_context( SE Linux policy file contexts
24 #0 search gen_sens( SE Linux policy MLS constraints source
/dragonfly/crypto/libressl/crypto/ts/
HDts_verify_ctx.c103 ASN1_OBJECT_free(ctx->policy); in TS_VERIFY_CTX_cleanup()
185 ASN1_OBJECT *policy; in TS_REQ_to_TS_VERIFY_CTX() local
200 if ((policy = TS_REQ_get_policy_id(req)) != NULL) { in TS_REQ_to_TS_VERIFY_CTX()
201 if (!(ret->policy = OBJ_dup(policy))) in TS_REQ_to_TS_VERIFY_CTX()
HDts_rsp_sign.c83 ASN1_OBJECT *policy);
252 TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy) in TS_RESP_CTX_add_policy() argument
259 if (!(copy = OBJ_dup(policy))) in TS_RESP_CTX_add_policy()
426 ASN1_OBJECT *policy; in TS_RESP_create_response() local
456 if (!(policy = TS_RESP_get_policy(ctx))) in TS_RESP_create_response()
460 if (!(ctx->tst_info = TS_RESP_create_tst_info(ctx, policy))) in TS_RESP_create_response()
576 ASN1_OBJECT *policy = NULL; in TS_RESP_get_policy() local
586 policy = ctx->default_policy; in TS_RESP_get_policy()
589 for (i = 0; !policy && i < sk_ASN1_OBJECT_num(ctx->policies); ++i) { in TS_RESP_get_policy()
592 policy = current; in TS_RESP_get_policy()
[all …]
/dragonfly/crypto/libressl/apps/openssl/
HDts.c84 const char *policy, int no_nonce, int cert, const char *in, const char *out,
89 const char *policy, int no_nonce, int cert);
96 char *passin, char *inkey, char *signer, char *chain, const char *policy,
101 const char *policy);
133 char *policy; member
273 .opt.arg = &ts_config.policy,
417 ts_config.md, ts_config.policy, ts_config.no_nonce, in ts_main()
437 ts_config.signer, ts_config.chain, ts_config.policy, in ts_main()
533 const char *policy, int no_nonce, int cert, const char *in, const char *out, in query_command() argument
554 policy, no_nonce, cert); in query_command()
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
HDwpas_kay.c195 enum macsec_policy policy; in ieee802_1x_alloc_kay_sm() local
204 policy = SHOULD_SECURE; in ieee802_1x_alloc_kay_sm()
206 policy = SHOULD_ENCRYPT; in ieee802_1x_alloc_kay_sm()
208 policy = DO_NOT_SECURE; in ieee802_1x_alloc_kay_sm()
242 res = ieee802_1x_kay_init(kay_ctx, policy, ssid->macsec_replay_protect, in ieee802_1x_alloc_kay_sm()
331 if (!wpa_s->kay || wpa_s->kay->policy == DO_NOT_SECURE) in ieee802_1x_notify_create_actor()
418 if (wpa_s->kay->policy == DO_NOT_SECURE) in ieee802_1x_create_preshared_mka()
/dragonfly/contrib/openpam/lib/libpam/
HDopenpam_load.c125 openpam_clear_chains(pam_chain_t *policy[]) in openpam_clear_chains() argument
130 openpam_destroy_chain(policy[i]); in openpam_clear_chains()
131 policy[i] = NULL; in openpam_clear_chains()
/dragonfly/contrib/tcpdump/
HDprint-hncp.c654 uint8_t policy; in hncp_print_rec() local
660 policy = GET_U_1(value); in hncp_print_rec()
662 if (policy == 0) { in hncp_print_rec()
668 } else if (policy >= 1 && policy <= 128) { in hncp_print_rec()
688 } else if (policy == 129) { in hncp_print_rec()
691 } else if (policy == 130) { in hncp_print_rec()
694 } else if (policy == 131) { in hncp_print_rec()
700 } else if (policy >= 132) { in hncp_print_rec()
701 ND_PRINT("Unknown (%u)", policy); /* Reserved for future additions */ in hncp_print_rec()
/dragonfly/contrib/gcc-8.0/libgcc/
HDgthr-posix.h416 int policy; in __gthread_objc_thread_set_priority() local
420 if (__gthrw_(pthread_getschedparam) (thread_id, &policy, &params) == 0) in __gthread_objc_thread_set_priority()
422 if ((priority_max = __gthrw_(sched_get_priority_max) (policy)) == -1) in __gthread_objc_thread_set_priority()
425 if ((priority_min = __gthrw_(sched_get_priority_min) (policy)) == -1) in __gthread_objc_thread_set_priority()
439 if (__gthrw_(pthread_setschedparam) (thread_id, policy, &params) == 0) in __gthread_objc_thread_set_priority()
456 int policy; in __gthread_objc_thread_get_priority() local
459 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, &params) == 0) in __gthread_objc_thread_get_priority()
/dragonfly/contrib/gcc-4.7/libgcc/
HDgthr-posix.h411 int policy; in __gthread_objc_thread_set_priority() local
415 if (__gthrw_(pthread_getschedparam) (thread_id, &policy, &params) == 0) in __gthread_objc_thread_set_priority()
417 if ((priority_max = __gthrw_(sched_get_priority_max) (policy)) == -1) in __gthread_objc_thread_set_priority()
420 if ((priority_min = __gthrw_(sched_get_priority_min) (policy)) == -1) in __gthread_objc_thread_set_priority()
434 if (__gthrw_(pthread_setschedparam) (thread_id, policy, &params) == 0) in __gthread_objc_thread_set_priority()
451 int policy; in __gthread_objc_thread_get_priority() local
454 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, &params) == 0) in __gthread_objc_thread_get_priority()
/dragonfly/contrib/wpa_supplicant/src/ap/
HDwpa_auth_kay.c281 enum macsec_policy policy; in ieee802_1x_alloc_kay_sm_hapd() local
290 policy = SHOULD_SECURE; in ieee802_1x_alloc_kay_sm_hapd()
292 policy = SHOULD_ENCRYPT; in ieee802_1x_alloc_kay_sm_hapd()
294 policy = DO_NOT_SECURE; in ieee802_1x_alloc_kay_sm_hapd()
328 res = ieee802_1x_kay_init(kay_ctx, policy, in ieee802_1x_alloc_kay_sm_hapd()
419 if (!hapd->kay || hapd->kay->policy == DO_NOT_SECURE) in ieee802_1x_notify_create_actor_hapd()
501 if (hapd->kay->policy == DO_NOT_SECURE) in ieee802_1x_create_preshared_mka_hapd()
/dragonfly/contrib/openpam/
HDHISTORY40 - ENHANCE: Add a feature flag to control fallback to "other" policy.
57 module (or misspelling the name of a module) in a policy could
72 the policy file; OpenPAM will automatically add it, just like it
116 - ENHANCE: Rewrite the policy parser to used openpam_readlinev(),
119 - ENHANCE: The previous implementation of the policy parser relied on
123 backslash escapes in policy files are now handled in a consistent
141 - BUGFIX: Plug a memory leak in the policy parser.
159 - ENHANCE: rewrote the policy parser to support quoted option values.
167 the policy file and some function arguments. (CVE-2011-4122)
200 - ENHANCE: if a policy specifies a relative module path, prepend the
[all …]

12345