Home
last modified time | relevance | path

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

123

/tools/perf/Documentation/
Dsecurity.txt13 Targeted policy with perf_event_open() access control capabilities:
15 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
24 3. Place patch below at rpmbuild/BUILD/selinux-policy-b86eaaf4dbcf2d51dd4432df7185c0eaf3cbcc02
27 # patch -p1 < selinux-policy-perf-events-perfmon.patch
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
[all …]
/tools/perf/trace/beauty/
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/net/
Dxfrm_policy.sh39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
76 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
79 ip -net $ns xfrm policy add src 10.2.0.0/24 dst 10.0.0.0/24 dir fwd priority 200 action block
82 ip -net $ns xfrm policy add src 10.2.0.0/23 dst 10.0.1.0/24 dir fwd priority 200 action block
108 ip -net $ns xfrm policy add src 10.1.0.0/24 dst 10.0.0.0/23 dir fwd priority 200 action block
113 …ip -net $ns xfrm policy add src 10.253.1.$((RANDOM%255))/$p dst 10.254.1.$((RANDOM%255))/$p dir fw…
123 ip -net $ns xfrm policy get src $lnet dst $rnet dir out > /dev/null
130 ip -net $ns xfrm policy get src $rnet dst $lnet dir fwd > /dev/null
146 ip -net $ns xfrm policy add dst $plain dir out priority 10 action allow
[all …]
Dl2tp.sh234 run_cmd host-1 ip xfrm policy add \
238 run_cmd host-1 ip xfrm policy add \
242 run_cmd host-2 ip xfrm policy add \
246 run_cmd host-2 ip xfrm policy add \
273 run_cmd host-1 ip -6 xfrm policy add \
277 run_cmd host-1 ip -6 xfrm policy add \
281 run_cmd host-2 ip -6 xfrm policy add \
285 run_cmd host-2 ip -6 xfrm policy add \
313 run_cmd host-1 ip xfrm policy flush
315 run_cmd host-2 ip xfrm policy flush
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}" \
Dvrf-xfrm-tests.sh200 for x in state policy
221 ip -netns host1 xfrm policy add \
226 ip -netns host2 xfrm policy add \
231 ip -netns host1 xfrm policy add \
236 ip -netns host2 xfrm policy add \
242 ip -6 -netns host1 xfrm policy add \
247 ip -6 -netns host2 xfrm policy add \
252 ip -6 -netns host1 xfrm policy add \
257 ip -6 -netns host2 xfrm policy add \
Dsrv6_hl2encap_red_l2vpn_test.sh407 local policy=''
413 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC},"
416 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DX2_FUNC}"
422 encap seg6 mode "${mode}" segs "${policy}" \
427 encap seg6 mode "${mode}" segs "${policy}" \
Dsrv6_hencap_red_l3vpn_test.sh469 local policy=''
475 policy="${policy}${VPN_LOCATOR_SERVICE}:${n}::${END_FUNC},"
478 policy="${policy}${VPN_LOCATOR_SERVICE}:${dec_rt}::${DT46_FUNC}"
484 encap seg6 mode "${mode}" segs "${policy}" \
495 encap seg6 mode "${mode}" segs "${policy}" \
/tools/power/cpupower/lib/
Dcpufreq.c238 struct cpufreq_policy *policy; in cpufreq_get_policy() local
240 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
241 if (!policy) in cpufreq_get_policy()
244 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
245 if (!policy->governor) { in cpufreq_get_policy()
246 free(policy); in cpufreq_get_policy()
249 policy->min = sysfs_cpufreq_get_one_value(cpu, SCALING_MIN_FREQ); in cpufreq_get_policy()
250 policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ); in cpufreq_get_policy()
251 if ((!policy->min) || (!policy->max)) { in cpufreq_get_policy()
252 free(policy->governor); in cpufreq_get_policy()
[all …]
Dcpufreq.h102 void cpufreq_put_policy(struct cpufreq_policy *policy);
183 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
/tools/lib/bpf/
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()
151 struct libbpf_nla_policy *policy) in libbpf_nla_parse_nested() argument
154 libbpf_nla_len(nla), policy); in libbpf_nla_parse_nested()
Dnlattr.h124 int len, struct libbpf_nla_policy *policy);
127 struct libbpf_nla_policy *policy);
/tools/testing/selftests/amd-pstate/
Drun.sh74 for policy in $policies; do
75 cur_gov=$(find_current_governor $policy)
76 echo "$policy $cur_gov" >> $OUTFILE.backup_governor.log
87 for policy in $policies; do
92 echo $governor > $CPUFREQROOT/$policy/scaling_governor
102 for policy in $policies; do
103 filepath=$CPUFREQROOT/$policy/scaling_available_governors
110 echo $1 > $CPUFREQROOT/$policy/scaling_governor
214 if apt policy dbench > /dev/null 2>&1; then
/tools/net/ynl/lib/
Dynl.c48 ynl_err_walk_report_one(struct ynl_policy_nest *policy, unsigned int type, in ynl_err_walk_report_one() argument
51 if (!policy) { in ynl_err_walk_report_one()
57 if (type > policy->max_attr) { in ynl_err_walk_report_one()
63 if (!policy->table[type].name) { in ynl_err_walk_report_one()
71 ".%s", policy->table[type].name); in ynl_err_walk_report_one()
77 struct ynl_policy_nest *policy, char *str, int str_sz, in ynl_err_walk() argument
87 if (!policy) { in ynl_err_walk()
111 if (ynl_err_walk_report_one(policy, type, str, str_sz, &n)) in ynl_err_walk()
116 *nest_pol = policy->table[type].nest; in ynl_err_walk()
120 if (!policy->table[type].nest) { in ynl_err_walk()
[all …]
/tools/power/cpupower/utils/
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()
313 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); in get_policy() local
314 if (!policy) { in get_policy()
[all …]
/tools/testing/selftests/cpufreq/
Dcpufreq.sh32 for policy in $policies; do
33 $@ $policy
40 for policy in $policies; do
41 $@ $policy &
Dspecial-tests.sh68 echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor &
69 echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor &
/tools/testing/selftests/netfilter/
Dnft_queue.sh101 type filter hook prerouting priority $prio; policy accept;
105 type filter hook input priority $prio; policy accept;
109 type filter hook forward priority $prio; policy accept;
114 type filter hook output priority $prio; policy accept;
120 type filter hook postrouting priority $prio; policy accept;
133 type filter hook prerouting priority $prio; policy accept;
137 type filter hook input priority $prio; policy accept;
141 type filter hook forward priority $prio; policy accept;
145 type filter hook output priority $prio; policy accept;
149 type filter hook postrouting priority $prio; policy accept;
[all …]
Dconntrack_icmp_related.sh137 type filter hook forward priority 0; policy accept;
154 type filter hook input priority 0; policy accept;
174 type filter hook input priority 0; policy accept;
182 type filter hook output priority 0; policy accept;
199 type nat hook postrouting priority 0; policy accept;
205 type nat hook postrouting priority 0; policy accept;
Dnft_nat.sh187 type nat hook output priority 0; policy accept;
262 type nat hook output priority 0; policy accept;
388 type nat hook output priority 0; policy accept;
455 type nat hook postrouting priority 0; policy accept;
556 type nat hook postrouting priority 0; policy accept;
655 type nat hook prerouting priority 0; policy accept;
737 type nat hook prerouting priority 0; policy accept;
842 type filter hook forward priority 0; policy accept;
860 type filter hook prerouting priority -300; policy accept;
864 type filter hook output priority -300; policy accept;
[all …]
Dnft_flowtable.sh170 type filter hook forward priority 0; policy drop;
197 type filter hook input priority 0; policy accept;
409 type filter hook ingress device "veth0" priority 0; policy accept
426 type filter hook egress device "veth1" priority 0; policy accept
505 type nat hook prerouting priority 0; policy accept;
510 type nat hook postrouting priority 0; policy accept;
563 type nat hook prerouting priority 0; policy accept;
568 type nat hook postrouting priority 0; policy accept;
647 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
649 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
/tools/testing/selftests/kvm/include/
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/net/ynl/generated/
Dnetdev-user.c185 .policy = &netdev_dev_nest,
191 .policy = &netdev_dev_nest,
197 .policy = &netdev_dev_nest,
/tools/testing/selftests/net/forwarding/
Dip6_forward_instats_vrf.sh151 ip xfrm policy add dst 2001:1:2::2/128 dir fwd action block
154 ip xfrm policy del dst 2001:1:2::2/128 dir fwd
/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi_signal_restart.c50 int policy, int prio) in create_rt_thread() argument
65 ret = pthread_attr_setschedpolicy(&attr, policy); in create_rt_thread()

123