Home
last modified time | relevance | path

Searched refs:policy (Results 1 - 25 of 501) sorted by relevance

12345678910>>...21

/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dtomoyo_new_file_test.c26 static const char *policy = ""; variable
31 printf("%s : ", policy); in show_result()
126 policy = "allow_read /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test()
127 write_domain_policy(policy, 0); in stage_file_test()
129 write_domain_policy(policy, 1); in stage_file_test()
132 policy = "allow_write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test()
133 write_domain_policy(policy, 0); in stage_file_test()
135 write_domain_policy(policy, 1); in stage_file_test()
138 policy = "allow_read/write /proc/sys/net/ipv4/ip_local_port_range"; in stage_file_test()
139 write_domain_policy(policy, in stage_file_test()
[all...]
H A Dtomoyo_policy_memory_test.c42 static const char *policy = NULL; variable
63 if (strcmp(buffer, policy)) in check_policy_common()
70 printf("BUG: Policy write error: %s %s at %d\n", policy, in check_policy_common()
191 policy = domain_testcases[j]; in domain_policy_test()
192 printf("Processing: %s\n", policy); in domain_policy_test()
194 fprintf(fp, "%s\n", policy); in domain_policy_test()
197 fprintf(fp, "delete %s\n", policy); in domain_policy_test()
201 fprintf(fp, "%s\n", policy); in domain_policy_test()
203 fprintf(fp, "delete %s\n", policy); in domain_policy_test()
300 policy in exception_policy_test()
[all...]
/third_party/python/Lib/test/test_email/
H A Dtest_policy.py6 import email.policy namespace
30 # These default values are the ones set on email.policy.default.
36 'header_factory': email.policy.EmailPolicy.header_factory,
38 'content_manager': email.policy.EmailPolicy.content_manager,
43 # For each policy under test, we give here what we expect the defaults to
44 # be for that policy. The second argument to make defaults is the
45 # difference between the base defaults and that for the particular policy.
46 new_policy = email.policy.EmailPolicy()
48 email.policy.compat32: make_defaults(compat32_defaults, {}),
49 email.policy
[all...]
H A Dtest_generator.py8 from email import policy namespace
15 policy = policy.default variable in TestGeneratorBase
17 def msgmaker(self, msg, policy=None):
18 policy = self.policy if policy is None else policy
19 return self.msgfunc(msg, policy=policy)
[all...]
H A D__init__.py26 # Currently the default policy is compat32. By setting that as the default
29 policy = compat32 variable in TestEmailBase
42 return email.message_from_file(fp, policy=self.policy)
44 def _str_msg(self, string, message=None, policy=None):
45 if policy is None:
46 policy = self.policy
49 return email.message_from_string(string, message, policy=policy)
[all...]
H A Dtest_headerregistry.py5 from email import policy namespace
142 self.assertEqual(h.fold(policy=policy.default), folded)
229 m = Message(policy=policy.default)
259 self.assertEqual(h.fold(policy=policy.default), folded)
819 self.assertEqual(h.fold(policy=policy.default), folded)
861 self.assertEqual(h.fold(policy
[all...]
H A Dtest_parser.py5 from email.policy import default
12 def __init__(self, policy):
13 self.check_policy = policy
16 MyPolicy = TestEmailBase.policy.clone(linesep='boo')
21 policy=self.MyPolicy)
29 policy=self.MyPolicy)
55 policy=default,
77 msg = parser("To: foo\n\ntest", policy=MyPolicy)
84 msg = parser("To: foo\n\ntest", Message, policy=MyPolicy)
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dv3_pci.c78 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci()
80 pci->proxyPolicy->policy->length, in i2r_pci()
81 pci->proxyPolicy->policy->data); in i2r_pci()
87 ASN1_OCTET_STRING **policy) in process_pci_value()
114 } else if (strcmp(val->name, "policy") == 0) { in process_pci_value()
118 if (*policy == NULL) { in process_pci_value()
119 *policy = ASN1_OCTET_STRING_new(); in process_pci_value()
120 if (*policy == NULL) { in process_pci_value()
136 tmp_data = OPENSSL_realloc((*policy) in process_pci_value()
85 process_pci_value(CONF_VALUE *val, ASN1_OBJECT **language, ASN1_INTEGER **pathlen, ASN1_OCTET_STRING **policy) process_pci_value() argument
246 ASN1_OCTET_STRING *policy = NULL; r2i_pci() local
[all...]
H A Dpcy_data.c31 * Create a data based on an existing policy. If 'id' is NULL use the OID in
32 * the policy, otherwise use 'id'. This behaviour covers the two types of
38 X509_POLICY_DATA *ossl_policy_data_new(POLICYINFO *policy, in ossl_policy_data_new() argument
44 if (policy == NULL && cid == NULL) in ossl_policy_data_new()
72 ret->valid_policy = policy->policyid; in ossl_policy_data_new()
73 policy->policyid = NULL; in ossl_policy_data_new()
76 if (policy) { in ossl_policy_data_new()
77 ret->qualifier_set = policy->qualifiers; in ossl_policy_data_new()
78 policy->qualifiers = NULL; in ossl_policy_data_new()
/third_party/openssl/crypto/x509/
H A Dv3_pci.c78 if (pci->proxyPolicy->policy && pci->proxyPolicy->policy->data) in i2r_pci()
80 pci->proxyPolicy->policy->length, in i2r_pci()
81 pci->proxyPolicy->policy->data); in i2r_pci()
87 ASN1_OCTET_STRING **policy) in process_pci_value()
114 } else if (strcmp(val->name, "policy") == 0) { in process_pci_value()
118 if (*policy == NULL) { in process_pci_value()
119 *policy = ASN1_OCTET_STRING_new(); in process_pci_value()
120 if (*policy == NULL) { in process_pci_value()
136 tmp_data = OPENSSL_realloc((*policy) in process_pci_value()
85 process_pci_value(CONF_VALUE *val, ASN1_OBJECT **language, ASN1_INTEGER **pathlen, ASN1_OCTET_STRING **policy) process_pci_value() argument
246 ASN1_OCTET_STRING *policy = NULL; r2i_pci() local
[all...]
H A Dpcy_data.c31 * Create a data based on an existing policy. If 'id' is NULL use the OID in
32 * the policy, otherwise use 'id'. This behaviour covers the two types of
38 X509_POLICY_DATA *ossl_policy_data_new(POLICYINFO *policy, in ossl_policy_data_new() argument
44 if (policy == NULL && cid == NULL) in ossl_policy_data_new()
72 ret->valid_policy = policy->policyid; in ossl_policy_data_new()
73 policy->policyid = NULL; in ossl_policy_data_new()
76 if (policy) { in ossl_policy_data_new()
77 ret->qualifier_set = policy->qualifiers; in ossl_policy_data_new()
78 policy->qualifiers = NULL; in ossl_policy_data_new()
/third_party/ltp/testcases/kernel/syscalls/mbind/
H A Dmbind01.c29 #define POLICY_DESC(x) .policy = x, .desc = #x
30 #define POLICY_DESC_TEXT(x, y) .policy = x, .desc = #x" ("y")"
40 int policy; member
139 static void check_policy_pref_or_local(int policy) in check_policy_pref_or_local() argument
141 if (policy != MPOL_PREFERRED && policy != MPOL_LOCAL) { in check_policy_pref_or_local()
142 tst_res(TFAIL, "Wrong policy: %s(%d), " in check_policy_pref_or_local()
144 tst_mempolicy_mode_name(policy), policy); in check_policy_pref_or_local()
152 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemas in test_default()
194 int policy, fail = 0; do_test() local
[all...]
/third_party/ltp/testcases/realtime/stress/pi-tests/
H A Dtestpi-3.c80 int policy;
101 int rc, i, j, policy, tid = gettid(); in func_nonrt() local
117 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_nonrt()
124 pthr->priority, policy, schedp.sched_priority); in func_nonrt()
129 policy = sched_getscheduler(tid); in func_nonrt()
132 policy, schedp.sched_priority); in func_nonrt()
150 int rc, i, j, policy, tid = gettid(); in func_rt() local
166 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_rt()
174 pthr->priority, policy, schedp.sched_priority); in func_rt()
184 policy in func_rt()
206 int rc, i, j, policy, tid = gettid(); func_noise() local
253 int retc, policy, inherit; startThread() local
[all...]
/third_party/python/Lib/email/
H A Dgenerator.py38 policy=None):
44 Optional mangle_from_ is a flag that, when True (the default if policy
55 The policy keyword specifies a policy object that controls a number of
56 aspects of the generator's operation. If no policy is specified,
57 the policy associated with the Message object passed to the
63 mangle_from_ = True if policy is None else policy.mangle_from_
67 self.policy = policy
[all...]
H A Dmessage.py150 def __init__(self, policy=compat32):
151 self.policy = policy
167 def as_string(self, unixfrom=False, maxheaderlen=0, policy=None):
173 if you want a different maxheaderlen. 'policy' is passed to the
175 specified the policy associated with the message instance is used.
182 policy = self.policy if policy is None else policy
[all...]
/third_party/libwebsockets/lib/secure-streams/
H A Dsecure-streams.c205 if (!h->policy || !(h->policy->flags & LWSSSPOLF_PERF) || !h->wsi || in lws_conmon_ss_json()
495 lws_ss_metadata_t *md = lws_ss_policy_metadata(h->policy, name), in lws_ss_exp_cb_metadata()
537 !!(h->policy->flags & LWSSSPOLF_WAKE_SUSPEND__VALIDITY)], in lws_ss_set_timeout_us()
557 ms = lws_retry_get_delay_ms(h->context, h->policy->retry_bo, in _lws_ss_backoff()
685 if (!h->policy) { in _lws_ss_client_connect()
686 lwsl_err("%s: ss with no policy\n", __func__); in _lws_ss_client_connect()
702 if (h->policy == &pol_smd) { in _lws_ss_client_connect()
734 if (lws_strexp_expand(&exp, h->policy->endpoint, in _lws_ss_client_connect()
735 strlen(h->policy in _lws_ss_client_connect()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Drobust_av.c862 static int set_frame_classifier_type4_ipv4(struct dscp_policy_data *policy) in set_frame_classifier_type4_ipv4() argument
865 const u8 *frame_classifier = policy->frame_classifier; in set_frame_classifier_type4_ipv4()
866 struct type4_params *type4_param = &policy->type4_param; in set_frame_classifier_type4_ipv4()
868 if (policy->frame_classifier_len < 18) { in set_frame_classifier_type4_ipv4()
871 policy->frame_classifier_len); in set_frame_classifier_type4_ipv4()
886 if (policy->domain_name) { in set_frame_classifier_type4_ipv4()
906 if (policy->port_range_info) { in set_frame_classifier_type4_ipv4()
929 static int set_frame_classifier_type4_ipv6(struct dscp_policy_data *policy) in set_frame_classifier_type4_ipv6() argument
932 const u8 *frame_classifier = policy->frame_classifier; in set_frame_classifier_type4_ipv6()
933 struct type4_params *type4_param = &policy in set_frame_classifier_type4_ipv6()
995 wpas_set_frame_classifier_params(struct dscp_policy_data *policy) wpas_set_frame_classifier_params() argument
1065 wpas_add_dscp_policy(struct wpa_supplicant *wpa_s, struct dscp_policy_data *policy) wpas_add_dscp_policy() argument
1171 wpas_fill_dscp_policy(struct dscp_policy_data *policy, u8 attr_id, u8 attr_len, const u8 *attr_data) wpas_fill_dscp_policy() argument
1285 struct dscp_policy_data policy; wpas_handle_qos_mgmt_recv_action() local
[all...]
/third_party/node/deps/npm/node_modules/make-fetch-happen/lib/cache/
H A Dpolicy.js51 this.policy = new CacheSemantics(this.request, this.response, policyOptions)
56 // the value to Date.now() which means a policy created from a
58 this.policy._responseTime = this.entry.metadata.time
81 const policy = new CacheSemantics(requestObject(request), emptyResponse, policyOptions)
82 return policy.storable()
85 // returns true if the policy satisfies the request
120 return this.policy.storable()
127 return !!this.policy._rescc['must-revalidate']
137 return !this.policy.satisfiesWithoutRevalidation(_req)
141 return this.policy
[all...]
/third_party/libwebsockets/lib/secure-streams/protocols/
H A Dss-mqtt.c58 if (!h || !h->policy) in secstream_mqtt_subscribe()
61 if (h->policy->u.mqtt.aws_iot) in secstream_mqtt_subscribe()
66 if (!h->policy->u.mqtt.subscribe || wsi->mqtt->done_subscribe) in secstream_mqtt_subscribe()
76 if (lws_strexp_expand(&exp, h->policy->u.mqtt.subscribe, in secstream_mqtt_subscribe()
77 strlen(h->policy->u.mqtt.subscribe), &used_in, in secstream_mqtt_subscribe()
98 if (lws_strexp_expand(&exp, h->policy->u.mqtt.subscribe, in secstream_mqtt_subscribe()
99 strlen(h->policy->u.mqtt.subscribe), &used_in, in secstream_mqtt_subscribe()
110 * The policy says to subscribe to something, and we in secstream_mqtt_subscribe()
112 * string-substituted version of the policy string. in secstream_mqtt_subscribe()
118 h->u.mqtt.sub_top.qos = h->policy in secstream_mqtt_subscribe()
[all...]
H A Dss-h1.c197 const lws_ss_http_respmap_t *r = h->policy->u.http.respmap; in lws_ss_http_resp_to_state()
198 int n = h->policy->u.http.count_respmap; in lws_ss_http_resp_to_state()
217 lws_ss_metadata_t *polmd = h->policy->metadata; in lws_apply_metadata()
254 if (h->policy->u.http.method && ( in lws_apply_metadata()
255 (!strcmp(h->policy->u.http.method, "POST") || in lws_apply_metadata()
256 !strcmp(h->policy->u.http.method, "PATCH") || in lws_apply_metadata()
257 !strcmp(h->policy->u.http.method, "PUT"))) && in lws_apply_metadata()
259 if (!(h->policy->flags & in lws_apply_metadata()
316 lws_ss_metadata_t *polmd = h->policy->metadata, *omd; in lws_extract_metadata()
456 assert(h->policy); in secstream_h1()
[all...]
/third_party/python/Lib/email/mime/
H A Dbase.py9 import email.policy namespace
19 def __init__(self, _maintype, _subtype, *, policy=None, **_params):
26 if policy is None:
27 policy = email.policy.compat32
28 message.Message.__init__(self, policy=policy)
/third_party/ltp/testcases/open_posix_testsuite/functional/threads/schedule/
H A D1-2.c54 int policy; in hi_prio_thread() local
59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
60 if (policy != SCHED_RR) { in hi_prio_thread()
61 printf(ERROR_PREFIX "The policy is not correct\n"); in hi_prio_thread()
85 int policy; in low_prio_thread() local
90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in low_prio_thread()
91 if (policy != SCHED_RR) { in low_prio_thread()
115 int policy; in main() local
119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in main()
120 if (policy ! in main()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dthread_test.cpp113 auto policy = in TEST_F() local
115 EXPECT_EQ(policy->get(0, allocator).count(), 1U); in TEST_F()
116 EXPECT_EQ(policy->get(0, allocator)[0].pthread.index, 10); in TEST_F()
117 EXPECT_EQ(policy->get(1, allocator).count(), 1U); in TEST_F()
118 EXPECT_EQ(policy->get(1, allocator)[0].pthread.index, 20); in TEST_F()
119 EXPECT_EQ(policy->get(2, allocator).count(), 1U); in TEST_F()
120 EXPECT_EQ(policy->get(2, allocator)[0].pthread.index, 30); in TEST_F()
121 EXPECT_EQ(policy->get(3, allocator).count(), 1U); in TEST_F()
122 EXPECT_EQ(policy->get(3, allocator)[0].pthread.index, 40); in TEST_F()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_attr_setschedpolicy.c3 int pthread_attr_setschedpolicy(pthread_attr_t *a, int policy) in pthread_attr_setschedpolicy() argument
5 if (policy != SCHED_RR && policy != SCHED_FIFO && policy != SCHED_DEADLINE) { in pthread_attr_setschedpolicy()
8 a->_a_policy = policy; in pthread_attr_setschedpolicy()
/third_party/musl/src/thread/
H A Dpthread_attr_setschedpolicy.c3 int pthread_attr_setschedpolicy(pthread_attr_t *a, int policy) in pthread_attr_setschedpolicy() argument
6 if (policy != SCHED_RR && policy != SCHED_FIFO && policy != SCHED_DEADLINE) { in pthread_attr_setschedpolicy()
10 a->_a_policy = policy; in pthread_attr_setschedpolicy()

Completed in 12 milliseconds

12345678910>>...21