Home
last modified time | relevance | path

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

12

/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
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 \
/tools/power/cpupower/lib/
Dcpufreq.c229 struct cpufreq_policy *policy; in cpufreq_get_policy() local
231 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
232 if (!policy) in cpufreq_get_policy()
235 policy->governor = sysfs_cpufreq_get_one_string(cpu, SCALING_GOVERNOR); in cpufreq_get_policy()
236 if (!policy->governor) { in cpufreq_get_policy()
237 free(policy); in cpufreq_get_policy()
240 policy->min = sysfs_cpufreq_get_one_value(cpu, SCALING_MIN_FREQ); in cpufreq_get_policy()
241 policy->max = sysfs_cpufreq_get_one_value(cpu, SCALING_MAX_FREQ); in cpufreq_get_policy()
242 if ((!policy->min) || (!policy->max)) { in cpufreq_get_policy()
243 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.h112 int len, struct libbpf_nla_policy *policy);
115 struct libbpf_nla_policy *policy);
/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()
347 struct cpufreq_policy *policy = cpufreq_get_policy(cpu); in get_policy() local
348 if (!policy) { in get_policy()
[all …]
/tools/testing/selftests/netfilter/
Dnft_queue.sh97 type filter hook prerouting priority $prio; policy accept;
101 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;
115 type filter hook postrouting priority $prio; policy accept;
128 type filter hook prerouting priority $prio; policy accept;
132 type filter hook input priority $prio; policy accept;
136 type filter hook forward priority $prio; policy accept;
140 type filter hook output priority $prio; policy accept;
144 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;
840 type filter hook forward priority 0; policy accept;
858 type filter hook prerouting priority -300; policy accept;
863 type filter hook output priority -300; policy accept;
[all …]
Dnft_flowtable.sh169 type filter hook forward priority 0; policy drop;
345 type nat hook prerouting priority 0; policy accept;
350 type nat hook postrouting priority 0; policy accept;
400 type nat hook prerouting priority 0; policy accept;
405 type nat hook postrouting priority 0; policy accept;
487 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu…
489 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu…
Dnft_meta.sh52 type filter hook input priority 0; policy accept;
67 type filter hook output priority 0; policy accept;
Dnft_conntrack_helper.sh79 type filter hook prerouting priority 0; policy accept;
83 type filter hook output priority 0; policy accept;
Dconntrack_tcp_unreplied.sh96 type filter hook input priority 0; policy accept;
120 type nat hook prerouting priority 0; policy accept;
Dnft_nat_zones.sh186 type filter hook prerouting priority -64000; policy accept;
196 type nat hook postrouting priority 0; policy accept;
201 type filter hook prerouting priority -100; policy accept;
/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/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/testing/selftests/net/forwarding/
Dip6_forward_instats_vrf.sh149 ip xfrm policy add dst 2001:1:2::2/128 dir fwd action block
152 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()
/tools/tracing/latency/
Dlatency-collector.c136 struct policy { struct
138 int policy; argument
142 static const struct policy policies[] = { argument
880 static const struct policy *policy_from_name(const char *name) in policy_from_name()
882 const struct policy *p = &policies[0]; in policy_from_name()
892 static const char *policy_name(int policy) in policy_name() argument
894 const struct policy *p = &policies[0]; in policy_name()
898 if (p->policy == policy) in policy_name()
1055 int policy; in print_priority() local
1060 r = pthread_getschedparam(pthread_self(), &policy, &param); in print_priority()
[all …]
/tools/testing/selftests/bpf/
Dtest_tunnel.sh599 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir out \
608 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir in \
623 ip xfrm policy add src 10.1.1.100/32 dst 10.1.1.200/32 dir in \
630 ip xfrm policy add src 10.1.1.200/32 dst 10.1.1.100/32 dir out \
689 ip xfrm policy delete dir out src 10.1.1.200/32 dst 10.1.1.100/32 2> /dev/null
690 ip xfrm policy delete dir in src 10.1.1.100/32 dst 10.1.1.200/32 2> /dev/null

12