• Home
  • Raw
  • Download

Lines Matching refs:args

132 def build_conf(args, output_conf, file_list):  argument
133 m4_args = ["-D", "build_with_debug=" + args.debug_version]
134 m4_args += ["-D", "build_with_updater=" + args.updater_version]
142 def build_cil(args, output_cil, input_conf): argument
143 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
301 def get_policy_dir_list(args): argument
302 sepolicy_path = os.path.join(args.source_root_dir, "base/security/selinux_adapter/sepolicy/")
304 prepare_build_path(args.policy_dir_list, args.source_root_dir, dir_list, sepolicy_path)
328 def get_policy_file_list(args, dir_list_object): argument
329 build_root = os.path.abspath(os.path.join(args.tool_path, "../../.."))
368 def generate_version_file(args, output_file): argument
369 cmd = ["echo", args.vendor_policy_version,
374 def generate_default_policy(args, system_policy_file_list, vendor_policy_file_list, min_policy_file… argument
375 output_path = os.path.abspath(os.path.dirname(args.dst_file))
385 build_conf(args, system_output_conf, system_policy_file_list)
387 build_cil(args, system_cil_path, system_output_conf)
390 build_conf(args, vendor_output_conf, vendor_policy_file_list)
392 build_cil(args, vendor_cil_path, vendor_output_conf)
395 build_conf(args, min_output_conf, min_policy_file_list)
397 build_cil(args, min_cil_path, min_output_conf)
404 def generate_special_policy(args, system_policy_file_list, vendor_policy_file_list, public_policy_f… argument
406 output_path = os.path.abspath(os.path.dirname(args.dst_file))
420 type_version_cil_path = os.path.join(output_path, "".join([args.vendor_policy_version, ".cil"]))
423 build_conf(args, system_output_conf, system_policy_file_list)
425 build_cil(args, system_cil_path, system_output_conf)
428 build_conf(args, min_output_conf, min_policy_file_list)
429 build_cil(args, min_cil_path, min_output_conf)
432 build_conf(args, public_output_conf, public_policy_file_list)
433 build_cil(args, public_origin_cil_path, public_output_conf)
436 …build_version_cil(args.vendor_policy_version, public_origin_cil_path, public_version_cil_path, typ…
439 build_conf(args, vendor_output_conf, vendor_policy_file_list)
440 build_cil(args, vendor_origin_cil_path, vendor_output_conf)
442 build_version_cil(args.vendor_policy_version, vendor_origin_cil_path, vendor_cil_path, type_set)
445 … build_type_version_cil(args.vendor_policy_version, public_origin_cil_path, type_version_cil_path)
447 if args.components == "system":
451 elif args.components == "vendor":
456 generate_version_file(args, version_file)
461 def compile_sepolicy(args): argument
462 dir_list_object = get_policy_dir_list(args)
463 file_list_object = get_policy_file_list(args, dir_list_object)
466 if args.components == "default" or args.updater_version == "enable":
467 cil_list += generate_default_policy(args, file_list_object.system_policy_file_list,
471 cil_list += generate_special_policy(args, file_list_object.system_policy_file_list,
476 build_binary_policy(args.tool_path, args.dst_file, True, cil_list)
479 def main(args): argument
481 origin_debug_version = args.debug_version
482 if args.debug_version == "true":
483 args.debug_version = "false"
484 compile_sepolicy(args)
486 args.debug_version = "true"
487 compile_sepolicy(args)
490 args.debug_version = origin_debug_version
491 compile_sepolicy(args)