Home
last modified time | relevance | path

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

123

/tools/perf/Documentation/
A Dsecurity.txt15 1. Download selinux-policy SRPM package (e.g. selinux-policy-3.14.4-48.fc31.src.rpm on FC31)
18 # rpm -Uhv selinux-policy-3.14.4-48.fc31.src.rpm
22 # rpmbuild -bp selinux-policy.spec
28 patching file policy/flask/access_vectors
29 patching file policy/flask/security_classes
30 # cat selinux-policy-perf-events-perfmon.patch
31 diff -Nura a/policy/flask/access_vectors b/policy/flask/access_vectors
58 diff -Nura a/policy/flask/security_classes b/policy/flask/security_classes
90 # rpm -Uhv rpmbuild/RPMS/noarch/selinux-policy-*
100 # disabled - No SELinux policy is loaded.
[all …]
/tools/perf/trace/beauty/
A Dsched_policy.c26 int policy = arg->val, in syscall_arg__scnprintf_sched_policy() local
27 flags = policy & ~SCHED_POLICY_MASK; in syscall_arg__scnprintf_sched_policy()
29 policy &= SCHED_POLICY_MASK; in syscall_arg__scnprintf_sched_policy()
30 if (policy <= SCHED_DEADLINE) in syscall_arg__scnprintf_sched_policy()
31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", policies[policy]); in syscall_arg__scnprintf_sched_policy()
33 printed = scnprintf(bf, size, "%#x", policy); in syscall_arg__scnprintf_sched_policy()
/tools/testing/selftests/kvm/x86/
A Dsev_smoke_test.c77 static void test_sync_vmsa(uint32_t type, uint64_t policy) in test_sync_vmsa() argument
104 vm_sev_launch(vm, policy, NULL); in test_sync_vmsa()
132 vm_sev_launch(vm, policy, NULL); in test_sev()
181 vm_sev_launch(vm, policy, NULL); in test_sev_shutdown()
196 test_sev(guest, type, policy | SNP_POLICY_DBG); in test_sev_smoke()
198 test_sev(guest, type, policy | SEV_POLICY_NO_DBG); in test_sev_smoke()
199 test_sev(guest, type, policy); in test_sev_smoke()
204 test_sev_shutdown(type, policy); in test_sev_smoke()
208 test_sync_vmsa(type, policy); in test_sev_smoke()
210 test_sync_vmsa(type, policy | SNP_POLICY_DBG); in test_sev_smoke()
[all …]
/tools/testing/selftests/net/
A Dxfrm_policy.sh122 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
185 ip netns exec $ns iptables-save -c |grep policy | ( read c rest
273 ip -net ${ns[1]} xfrm policy set hthresh6 0 28 || break
276 ip -net ${ns[1]} xfrm policy set hthresh6 0 28 || break
297 ip -net $ns xfrm policy flush
310 ip -net $ns xfrm policy flush
324 ip -net $ns xfrm policy flush
455 ip -net $n xfrm policy set hthresh4 28 24 hthresh6 126 125
462 ip -net ${ns[3]} xfrm policy flush
468 ip -net ${ns[3]} xfrm policy set hthresh4 16 16
[all …]
A Dxfrm_policy_add_speed.sh28 ip netns exec "$ns" ip xfrm policy flush
40 echo xfrm policy add src 10.$s.$j.0/30 dst 10.$d.$j.$a/$pfx dir $dir action block
45 echo xfrm policy add src 10.$s.$j.$a/30 dst 10.$d.$j.0/$pfx dir $dir action block
70 have=$(ip netns exec "$ns" ip xfrm policy show | grep "action block" | wc -l)
A Dl2tp.sh228 run_cmd $host_1 ip xfrm policy add \
232 run_cmd $host_1 ip xfrm policy add \
236 run_cmd $host_2 ip xfrm policy add \
240 run_cmd $host_2 ip xfrm policy add \
267 run_cmd $host_1 ip -6 xfrm policy add \
271 run_cmd $host_1 ip -6 xfrm policy add \
275 run_cmd $host_2 ip -6 xfrm policy add \
279 run_cmd $host_2 ip -6 xfrm policy add \
307 run_cmd $host_1 ip xfrm policy flush
309 run_cmd $host_2 ip xfrm policy flush
A Dsrv6_end_flavors_test.sh513 local policy=''
529 policy="${policy}${LOCATOR_SERVICE}:${node}::${END_FUNC},"
535 policy="${policy}${LOCATOR_SERVICE}:${node}::${END_PSP_FUNC},"
560 policy="${policy%,}"
565 encap seg6 mode inline segs "${policy}" \
A Dsrv6_hencap_red_l3vpn_test.sh432 local policy=''
438 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC},"
441 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DT46_FUNC}"
447 encap seg6 mode "${mode}" segs "${policy}" \
458 encap seg6 mode "${mode}" segs "${policy}" \
A Dsrv6_hl2encap_red_l2vpn_test.sh371 local policy=''
377 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC},"
380 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DX2_FUNC}"
386 encap seg6 mode "${mode}" segs "${policy}" \
391 encap seg6 mode "${mode}" segs "${policy}" \
A Dvrf-xfrm-tests.sh195 for x in state policy
216 ip -netns $host1 xfrm policy add \
221 ip -netns $host2 xfrm policy add \
226 ip -netns $host1 xfrm policy add \
231 ip -netns $host2 xfrm policy add \
237 ip -6 -netns $host1 xfrm policy add \
242 ip -6 -netns $host2 xfrm policy add \
247 ip -6 -netns $host1 xfrm policy add \
252 ip -6 -netns $host2 xfrm policy add \
/tools/testing/selftests/kvm/lib/x86/
A Dsev.c82 void sev_vm_launch(struct kvm_vm *vm, uint32_t policy) in sev_vm_launch() argument
85 .policy = policy, in sev_vm_launch()
94 TEST_ASSERT_EQ(status.policy, policy); in sev_vm_launch()
100 if (policy & SEV_POLICY_ES) in sev_vm_launch()
134 void snp_vm_launch_start(struct kvm_vm *vm, uint64_t policy) in snp_vm_launch_start() argument
137 .policy = policy, in snp_vm_launch_start()
177 void vm_sev_launch(struct kvm_vm *vm, uint64_t policy, uint8_t *measurement) in vm_sev_launch() argument
182 snp_vm_launch_start(vm, policy); in vm_sev_launch()
191 sev_vm_launch(vm, policy); in vm_sev_launch()
/tools/power/cpupower/lib/
A Dcpufreq.c259 if (!policy) in cpufreq_get_policy()
263 if (!policy->governor) { in cpufreq_get_policy()
264 free(policy); in cpufreq_get_policy()
269 if ((!policy->min) || (!policy->max)) { in cpufreq_get_policy()
271 free(policy); in cpufreq_get_policy()
275 return policy; in cpufreq_get_policy()
280 if ((!policy) || (!policy->governor)) in cpufreq_put_policy()
283 free(policy->governor); in cpufreq_put_policy()
285 free(policy); in cpufreq_put_policy()
625 if (!policy || !(policy->governor)) in cpufreq_set_policy()
[all …]
A Dcpufreq.h110 void cpufreq_put_policy(struct cpufreq_policy *policy);
191 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
/tools/net/ynl/lib/
A Dynl.c54 return policy && type <= policy->max_attr && in ynl_err_walk_is_sel()
55 policy->table[type].is_selector; in ynl_err_walk_is_sel()
67 return policy; in ynl_err_walk_sel_policy()
72 return policy->table[i].nest; in ynl_err_walk_sel_policy()
83 if (!policy) { in ynl_err_walk_report_one()
89 if (type > policy->max_attr) { in ynl_err_walk_report_one()
95 if (!policy->table[type].name) { in ynl_err_walk_report_one()
146 if (!policy) { in ynl_err_walk()
380 switch (policy->type) { in ynl_attr_validate()
427 if (!policy->len || len == policy->len) in ynl_attr_validate()
[all …]
/tools/lib/bpf/
A Dnlattr.c46 struct libbpf_nla_policy *policy) in validate_nla() argument
55 pt = &policy[type]; in validate_nla()
105 int len, struct libbpf_nla_policy *policy) in libbpf_nla_parse() argument
118 if (policy) { in libbpf_nla_parse()
119 err = validate_nla(nla, maxtype, policy); in libbpf_nla_parse()
150 struct libbpf_nla_policy *policy) in libbpf_nla_parse_nested() argument
153 libbpf_nla_len(nla), policy); in libbpf_nla_parse_nested()
/tools/testing/selftests/amd-pstate/
A Drun.sh78 for policy in $policies; do
79 cur_gov=$(find_current_governor $policy)
80 echo "$policy $cur_gov" >> $OUTFILE.backup_governor.log
91 for policy in $policies; do
96 echo $governor > $CPUFREQROOT/$policy/scaling_governor
106 for policy in $policies; do
107 filepath=$CPUFREQROOT/$policy/scaling_available_governors
114 echo $1 > $CPUFREQROOT/$policy/scaling_governor
223 if apt policy dbench > /dev/null 2>&1; then
/tools/power/cpupower/utils/
A Dcpufreq-info.c59 struct cpufreq_policy *policy; in proc_cpufreq_output() local
68 policy = cpufreq_get_policy(cpu); in proc_cpufreq_output()
69 if (!policy) in proc_cpufreq_output()
75 min_pctg = (policy->min * 100) / max; in proc_cpufreq_output()
76 max_pctg = (policy->max * 100) / max; in proc_cpufreq_output()
79 cpu , policy->min, max ? min_pctg : 0, policy->max, in proc_cpufreq_output()
80 max ? max_pctg : 0, policy->governor); in proc_cpufreq_output()
82 cpufreq_put_policy(policy); in proc_cpufreq_output()
318 if (!policy) { in get_policy()
330 policy->governor); in get_policy()
[all …]
/tools/testing/selftests/cpufreq/
A Dcpufreq.sh32 for policy in $policies; do
33 $@ $policy
40 for policy in $policies; do
41 $@ $policy &
A Dspecial-tests.sh68 echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor &
69 echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor &
/tools/testing/selftests/net/netfilter/
A Dnft_queue.sh101 type filter hook input priority $prio; policy accept;
105 type filter hook forward priority $prio; policy accept;
110 type filter hook output priority $prio; policy accept;
133 type filter hook input priority $prio; policy accept;
137 type filter hook forward priority $prio; policy accept;
141 type filter hook output priority $prio; policy accept;
182 type filter hook forward priority 0; policy accept;
325 type filter hook output priority 0; policy accept;
329 type filter hook postrouting priority 0; policy accept;
370 type filter hook output priority 0; policy accept;
[all …]
A Dconntrack_icmp_related.sh119 type filter hook forward priority 0; policy accept;
136 type filter hook input priority 0; policy accept;
156 type filter hook input priority 0; policy accept;
164 type filter hook output priority 0; policy accept;
180 type nat hook postrouting priority 0; policy accept;
186 type nat hook postrouting priority 0; policy accept;
A Dconntrack_tcp_unreplied.sh71 type filter hook input priority 0; policy accept;
90 type filter hook input priority 0; policy accept;
129 type nat hook prerouting priority 0; policy accept;
A Dnft_nat.sh161 type nat hook output priority 0; policy accept;
231 type nat hook output priority 0; policy accept;
353 type nat hook output priority 0; policy accept;
415 type nat hook postrouting priority 0; policy accept;
506 type nat hook postrouting priority 0; policy accept;
595 type nat hook prerouting priority 0; policy accept;
670 type nat hook prerouting priority 0; policy accept;
771 type filter hook forward priority 0; policy accept;
841 type nat hook postrouting priority 0; policy accept;
1117 type filter hook input priority 0; policy accept;
[all …]
/tools/testing/selftests/kvm/include/
A Dnumaif.h20 long get_mempolicy(int *policy, const unsigned long *nmask, in get_mempolicy() argument
23 return syscall(__NR_get_mempolicy, policy, nmask, in get_mempolicy()
/tools/testing/selftests/kvm/include/x86/
A Dsev.h49 void sev_vm_launch(struct kvm_vm *vm, uint32_t policy);
52 void snp_vm_launch_start(struct kvm_vm *vm, uint64_t policy);
58 void vm_sev_launch(struct kvm_vm *vm, uint64_t policy, uint8_t *measurement);

Completed in 43 milliseconds

123