Home
last modified time | relevance | path

Searched refs:gen_policy (Results 1 – 5 of 5) sorted by relevance

/base/startup/init/services/modules/seccomp/scripts/tools/
Dmerge_policy.py22 import generate_code_from_policy as gen_policy namespace
33 if item in gen_policy.supported_parse_item:
48 arches = gen_policy.supported_architecture
56 for arch in gen_policy.supported_architecture:
67 for arch in gen_policy.supported_architecture:
114 gen_policy.gen_syscall_nr_table(file_name, function_name_nr_table_dict)
116 for arch in gen_policy.supported_architecture:
118 {arch: gen_policy.SeccompPolicyParam(arch, function_name_nr_table_dict.get(arch))})
130 for arch in gen_policy.supported_architecture:
Dstrace_log_analysis.py23 import generate_code_from_policy as gen_policy namespace
68 gen_policy.gen_syscall_nr_table(file_name, function_name_nr_table_dict)
105 if args.target_cpu not in gen_policy.supported_architecture:
106 raise ValueError("target_cpu must int {}".format(gen_policy.supported_architecture))
Dlibc_static_analysis.py22 import generate_code_from_policy as gen_policy namespace
67 nr_tmp, is_digit = gen_policy.str_convert_to_int(line[line.find('0x'):])
69 nr_tmp, is_digit = gen_policy.str_convert_to_int(line[line.rfind('#') + 1:])
154 nr, is_digit = gen_policy.str_convert_to_int(line[line.find('0x'):])
156 nr, is_digit = gen_policy.str_convert_to_int(line[line.rfind('#') + 1:])
248 gen_policy.gen_syscall_nr_table(file_name, function_name_nr_table_dict)
Daudit_log_analysis.py23 import generate_code_from_policy as gen_policy namespace
38 syscall, _ = gen_policy.str_convert_to_int(line[pos + 9: line.find(' compat')])
103 …function_name_nr_table_dict_tmp = gen_policy.gen_syscall_nr_table(file_name, function_name_nr_tabl…
Dcollect_elf_syscall.py27 import generate_code_from_policy as gen_policy namespace
277 gen_policy.gen_syscall_nr_table(file_name, function_name_nr_table_dict)
340 if args.target_cpu not in gen_policy.supported_architecture:
341 raise ValueError("target_cpu must int {}".format(gen_policy.supported_architecture))