Home
last modified time | relevance | path

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

12345678

/titanic_41/usr/src/lib/libc/port/rt/
H A Dsched.c84 int policy; in is_base_class() local
86 for (policy = 0, pccp = sched_class; in is_base_class()
87 policy < _SCHED_NEXT; in is_base_class()
88 policy++, pccp++) { in is_base_class()
99 get_info_by_policy(int policy) in get_info_by_policy() argument
101 pcclass_t *pccp = &sched_class[policy]; in get_info_by_policy()
106 if ((uint_t)policy >= NPOLICY || pccp->pcc_state < 0) { in get_info_by_policy()
119 ASSERT(policy >= _SCHED_NEXT); in get_info_by_policy()
120 pccp->pcc_info.pc_cid = policy - _SCHED_NEXT; in get_info_by_policy()
138 pccp->pcc_policy = policy; in get_info_by_policy()
[all …]
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_pwd_policy.c52 krb5_ldap_create_password_policy (context, policy) in krb5_ldap_create_password_policy() argument
54 osa_policy_ent_t policy;
68 if (policy == NULL || policy->name == NULL)
74 st = krb5_ldap_name_to_policydn (context, policy->name, &policy_dn);
95 (signed) policy->pw_max_life)) != 0)
97 (signed) policy->pw_min_life)) != 0)
99 (signed) policy->pw_min_classes)) != 0)
101 (signed) policy->pw_min_length)) != 0)
103 (signed) policy->pw_history_num)) != 0))
128 krb5_ldap_put_password_policy (context, policy) in krb5_ldap_put_password_policy() argument
[all …]
H A Dldap_tkt_policy.c43 krb5_ldap_create_policy(context, policy, mask) in krb5_ldap_create_policy() argument
45 krb5_ldap_policy_params *policy;
57 if (policy == NULL || policy->policy == NULL) {
66 if ((st = krb5_ldap_name_to_policydn (context, policy->policy, &policy_dn)) != 0)
70 strval[0] = policy->policy;
82 policy->maxtktlife)) != 0)
88 policy->maxrenewlife)) != 0)
94 policy->tktflags)) != 0)
119 krb5_ldap_modify_policy(context, policy, mask) in krb5_ldap_modify_policy() argument
121 krb5_ldap_policy_params *policy;
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dpthread.c49 _thr_setparam(pthread_t tid, int policy, int prio) in _thr_setparam() argument
58 if (policy == ulwp->ul_policy && in _thr_setparam()
59 (policy == SCHED_FIFO || policy == SCHED_RR) && in _thr_setparam()
69 } else if ((cid = setparam(P_LWPID, tid, policy, prio)) == -1) { in _thr_setparam()
72 if (policy == SCHED_FIFO || policy == SCHED_RR) in _thr_setparam()
77 ulwp->ul_policy = policy; in _thr_setparam()
107 (ap->policy == SCHED_SYS || in pthread_create()
108 (pccp = get_info_by_policy(ap->policy)) == NULL || in pthread_create()
117 (ap->policy != self->ul_policy || in pthread_create()
124 error = _thr_setparam(tid, ap->policy, ap->prio); in pthread_create()
[all …]
H A Dpthr_attr.c334 pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy) in pthread_attr_setschedpolicy() argument
339 policy != SCHED_SYS && get_info_by_policy(policy) != NULL) { in pthread_attr_setschedpolicy()
340 ap->policy = policy; in pthread_attr_setschedpolicy()
351 pthread_attr_getschedpolicy(const pthread_attr_t *attr, int *policy) in pthread_attr_getschedpolicy() argument
356 policy != NULL) { in pthread_attr_getschedpolicy()
357 *policy = ap->policy; in pthread_attr_getschedpolicy()
/titanic_41/usr/src/lib/libkmf/libkmf/common/
H A Dpolicy.c130 KMF_POLICY_RECORD *policy) in parseValidation() argument
139 parseOCSPValidation(n, &policy->validation_info); in parseValidation()
140 policy->revocation |= KMF_REVOCATION_METHOD_OCSP; in parseValidation()
182 policy->revocation |= KMF_REVOCATION_METHOD_CRL; in parseValidation()
414 parsePolicyElement(xmlNodePtr node, KMF_POLICY_RECORD *policy) in parsePolicyElement() argument
422 policy->name = (char *)xmlGetProp(node, in parsePolicyElement()
428 policy->ignore_date = 1; in parsePolicyElement()
435 policy->ignore_unknown_ekus = 1; in parsePolicyElement()
442 policy->ignore_trust_anchor = 1; in parsePolicyElement()
449 policy->validity_adjusttime = c; in parsePolicyElement()
[all …]
H A Dcertop.c519 KMF_POLICY_RECORD *policy; in kmf_sign_cert() local
567 policy = handle->policy; in kmf_sign_cert()
569 if (ret == KMF_ERR_EXTENSION_NOT_FOUND && policy->ku_bits == 0) in kmf_sign_cert()
671 KMF_POLICY_RECORD *policy; in kmf_sign_data() local
711 policy = handle->policy; in kmf_sign_data()
712 if (ret == KMF_ERR_EXTENSION_NOT_FOUND && policy->ku_bits == 0) in kmf_sign_data()
841 KMF_POLICY_RECORD *policy; in kmf_verify_data() local
898 policy = handle->policy; in kmf_verify_data()
900 if (ret == KMF_ERR_EXTENSION_NOT_FOUND && policy->ku_bits == 0) in kmf_verify_data()
1087 KMF_POLICY_RECORD *policy; in kmf_encrypt() local
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dcrypt.c111 static void free_crypt_policy(struct crypt_policy_s *policy);
116 const struct crypt_policy_s *policy);
220 struct crypt_policy_s *policy = NULL; in crypt_gensalt() local
232 policy = getcryptpolicy(); in crypt_gensalt()
233 if (policy == NULL) { in crypt_gensalt()
239 if (!alg_valid(algname, policy)) { in crypt_gensalt()
241 algname = strdup(policy->cp_default); in crypt_gensalt()
260 free_crypt_policy(policy); in crypt_gensalt()
374 struct crypt_policy_s *policy; in getcryptpolicy() local
380 policy = malloc(sizeof (struct crypt_policy_s)); in getcryptpolicy()
[all …]
/titanic_41/usr/src/cmd/hal/fdi/
H A DMakefile42 policy/10osvendor/10-laptop-panel-mgmt-policy.fdi \
43 policy/10osvendor/10-network-attached.fdi \
44 policy/10osvendor/10-power-mgmt-policy.fdi \
45 policy/10osvendor/10-cpufreq.fdi \
46 policy/10osvendor/10-toshiba-buttons.fdi \
47 policy/10osvendor/20-storage-methods.fdi \
48 policy/10osvendor/20-zfs-methods.fdi \
H A DREADME49 any policy device information files.
65 Contains device information files that describe policy for hardware
71 Subdirs are installed in $(sysconfdir)/hal/policy (e.g. /etc/hal/policy)
73 policy
75 | # -> installs into /usr/share/hal/fdi/policy/10freedesktop
77 | # -> installs into /usr/share/hal/fdi/policy/20thirdparty
79 # -> installs into /etc/hal/fdi/policy
/titanic_41/usr/src/cmd/krb5/ldap_util/
H A Dkdb5_ldap_policy.c275 if (policyparams->policy != NULL)
279 policyparams->policy = strdup(argv[i]);
280 if (policyparams->policy == NULL) {
289 if (policyparams->policy == NULL)
343 char *policy = NULL; local
359 if (policy != NULL)
363 policy = strdup(argv[i]);
364 if (policy == NULL) {
372 if (policy == NULL)
376 printf(gettext("This will delete the policy object '%s', are you sure?\n"), policy);
[all …]
/titanic_41/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.h135 void libhal_storage_policy_free (LibHalStoragePolicy *policy) LIBHAL_DEPRECATE…
137 void libhal_storage_policy_set_icon_path (LibHalStoragePolicy *policy,
141 void libhal_storage_policy_set_icon_mapping (LibHalStoragePolicy *policy,
143 const char *libhal_storage_policy_lookup_icon (LibHalStoragePolicy *policy,
225 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
228 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
231 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
233 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
235 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
237 LibHalStoragePolicy *policy) LIBHAL_DEPRECATED;
[all …]
/titanic_41/usr/src/lib/nsswitch/ldap/common/
H A Dgetexecattr.c88 if (exec->policy != (char *)NULL) { in _print_execstr()
89 (void) fprintf(stdout, " policy: [%s]\n", exec->policy); in _print_execstr()
134 exec->policy = (char *)NULL; in _exec_ldap_exec2ent()
162 exec->policy = nullstring; in _exec_ldap_exec2ent()
164 exec->policy = buffer; in _exec_ldap_exec2ent()
169 (void) strcpy(exec->policy, in _exec_ldap_exec2ent()
271 char *buffer, **name, **policy, **type; in _nss_ldap_exec2str() local
288 policy = __ns_ldap_getAttr(result->entry, _EXEC_POLICY); in _nss_ldap_exec2str()
290 if (policy == NULL || policy[0] == NULL) in _nss_ldap_exec2str()
293 policy_str = policy[0]; in _nss_ldap_exec2str()
[all …]
/titanic_41/usr/src/cmd/modload/
H A Dupdate_drv.c98 char *policy = NULL; in main() local
155 policy = optarg; in main()
183 !m_flag && !i_flag && priv == NULL && policy == NULL)) { in main()
191 if (m_flag || i_flag || policy != NULL || priv != NULL) { in main()
226 if (policy != NULL && (policy = check_plcy_entry(policy, driver_name, in main()
282 if (policy != NULL) { in main()
284 policy, B_TRUE)) != 0) { in main()
365 if (update_conf && (i_flag || policy != NULL)) { in main()
503 if (policy != NULL) { in main()
505 policy)) != NOERR) { in main()
[all …]
/titanic_41/usr/src/cmd/krb5/kadmin/cli/
H A Dkadmin.c1082 oprinc->policy = argv[i];
1089 oprinc->policy = NULL;
1258 princ.policy = "default";
1600 dprinc.policy ? dprinc.policy : gettext("[none]"));
1607 dprinc.mkvno, dprinc.policy ? dprinc.policy : gettext("[none]"),
1687 kadmin_parse_policy_args(argc, argv, policy, mask, caller) in kadmin_parse_policy_args() argument
1690 kadm5_policy_ent_t policy;
1712 policy->pw_max_life = date - now;
1727 policy->pw_min_life = date - now;
1736 policy->pw_min_length = atoi(argv[i]);
[all …]
/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetexecattr.c63 const char *policy = _priv_exec->policy; in check_match() local
72 if ((check_policy && policy && in check_match()
73 (strcmp(policy, exec->policy) != 0)) || in check_match()
77 } else if ((policy && exec->policy && in check_match()
78 (strcmp(policy, exec->policy) != 0)) || in check_match()
111 execp->policy = _strtok_escape(NULL, sep, &last); in check_match_strbuf()
231 if ((_priv_exec->policy && in _exec_nis_cb()
232 (strstr(inval, _priv_exec->policy) == NULL)) || in _exec_nis_cb()
278 KV_TOKEN_DELIMIT, _priv_exec->policy, KV_TOKEN_DELIMIT, in _exec_nis_lookup()
/titanic_41/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_policy.c107 if ((entry == (kadm5_policy_ent_t) NULL) || (entry->policy == NULL)) in kadm5_create_policy_internal()
109 if(strlen(entry->policy) == 0) in kadm5_create_policy_internal()
114 pent.name = entry->policy; in kadm5_create_policy_internal()
115 p = entry->policy; in kadm5_create_policy_internal()
225 if((entry == (kadm5_policy_ent_t) NULL) || (entry->policy == NULL)) in kadm5_modify_policy_internal()
227 if(strlen(entry->policy) == 0) in kadm5_modify_policy_internal()
232 if ((ret = krb5_db_get_policy(handle->context, entry->policy, &p, &cnt))) in kadm5_modify_policy_internal()
310 if ((entry->policy = (char *) malloc(strlen(t->name) + 1)) == NULL) { in kadm5_get_policy()
314 strcpy(entry->policy, t->name); in kadm5_get_policy()
326 free(entry->policy); in kadm5_get_policy()
/titanic_41/usr/src/cmd/fs.d/nfs/svc/
H A Dnfs-server163 policy=`get_policy $NFS_FMRI`
179 generate_rules $FMRI $policy "tcp" $ip $tport $file
184 generate_rules $FMRI $policy "udp" $ip $uport $file
190 generate_rules $FMRI $policy "tcp" $ip \
198 generate_rules $FMRI $policy "udp" $ip \
209 generate_rules $NFS_FMRI $policy "tcp" \
217 generate_rules $NFS_FMRI $policy "udp" \
/titanic_41/usr/src/lib/krb5/kadm5/clnt/
H A Dclnt_policy.c45 kadm5_policy_ent_t policy, long mask) in kadm5_create_policy() argument
53 if(policy == (kadm5_policy_ent_t) NULL) in kadm5_create_policy()
58 memcpy(&arg.rec, policy, sizeof(kadm5_policy_ent_rec)); in kadm5_create_policy()
90 kadm5_policy_ent_t policy, long mask) in kadm5_modify_policy() argument
98 if(policy == (kadm5_policy_ent_t) NULL) in kadm5_modify_policy()
104 memcpy(&arg.rec, policy, sizeof(kadm5_policy_ent_rec)); in kadm5_modify_policy()
/titanic_41/usr/src/lib/libbe/common/
H A Dbe_snapshot.c89 char *policy = NULL; in be_create_snapshot() local
125 BE_ATTR_POLICY, DATA_TYPE_STRING, &policy, NULL) != 0) { in be_create_snapshot()
140 if ((ret = _be_create_snapshot(be_name, &snap_name, policy)) in be_create_snapshot()
401 _be_create_snapshot(char *be_name, char **snap_name, char *policy) in _be_create_snapshot() argument
416 bt.policy = policy; in _be_create_snapshot()
452 if (bt.policy == NULL) { in _be_create_snapshot()
453 bt.policy = be_default_policy(); in _be_create_snapshot()
456 if (!valid_be_policy(bt.policy)) { in _be_create_snapshot()
458 "invalid BE policy type (%s)\n"), bt.policy); in _be_create_snapshot()
512 bt.policy) != 0) { in _be_create_snapshot()
[all …]
/titanic_41/usr/src/cmd/nscd/
H A Dgetexec.c94 EXEC_STR_CMP(ep1->policy, ep2->policy); in execattr_compar()
114 ep->id ? ep->id : "", ep->policy ? ep->policy : "", in execattr_gethash()
127 check_null(ep->id), check_null(ep->policy), in execattr_getlogstr()
/titanic_41/usr/src/uts/common/io/aggr/
H A Daggr_ctl.c42 uint32_t policy; in aggr_ioc_modify() local
53 policy = modify_arg->lu_policy; in aggr_ioc_modify()
72 return (aggr_grp_modify(modify_arg->lu_linkid, modify_mask, policy, in aggr_ioc_modify()
87 uint32_t policy; in aggr_ioc_create() local
99 policy = create_arg->lc_policy; in aggr_ioc_create()
117 ports, policy, mac_fixed, force, mac_addr, lacp_mode, lacp_timer, in aggr_ioc_create()
142 uchar_t *mac, boolean_t mac_fixed, boolean_t force, uint32_t policy, in aggr_ioc_info_new_grp() argument
156 grp.lg_policy = policy; in aggr_ioc_info_new_grp()
/titanic_41/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddrbac.c252 data.policy = ecol[1].ec_value.ec_value_val; in genent_exec_attr()
263 data.name, data.policy, data.type, data.id); in genent_exec_attr()
271 data.name, data.policy, data.type, data.id); in genent_exec_attr()
276 data.name, data.policy, data.type, data.id); in genent_exec_attr()
290 char **policy; in dump_exec_attr() local
296 policy = __ns_ldap_getAttr(res->entry, "SolarisKernelSecurityPolicy"); in dump_exec_attr()
301 policy == NULL || policy[0] == NULL || in dump_exec_attr()
308 (void) fprintf(stdout, "%s", policy[0]); in dump_exec_attr()
/titanic_41/usr/src/cmd/smbsrv/smbd/
H A Dsvc-smbd36 policy=`get_policy ${FMRI}`
48 generate_rules $FMRI $policy "tcp" $ip $port $file
49 generate_rules $FMRI $policy "udp" $ip $port $file
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/
H A Ddb2_exp.c169 osa_policy_ent_t *policy,
171 (kcontext, name, policy, cnt));
173 ( krb5_context kcontext, osa_policy_ent_t policy ),
174 (kcontext, policy));
182 ( krb5_context kcontext, char *policy ),
183 (kcontext, policy));

12345678