Lines Matching refs:os

20 import os
72 for root, dirs, _ in sorted(os.walk(search_dir)):
75 folder_list.append(os.path.join(root, dir_i))
82 for root, _, files in sorted(os.walk(search_dir)):
85 path = os.path.join(root, each_file)
86 rel_path = os.path.relpath(path, build_root)
149 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
290 build_policy_cmd = [os.path.join(tool_path, "secilc"),
301 build_policy_list = [os.path.join(sepolicy_path, "base"), os.path.join(sepolicy_path, "ohos_policy")]
307 path = os.path.join(root_dir, i)
308 if (os.path.exists(path)):
316 sepolicy_path = os.path.join(args.source_root_dir, "base/security/selinux_adapter/sepolicy/")
319 min_policy_dir_list = [os.path.join(sepolicy_path, "min")]
335 system_policy_dir_list.append(os.path.join(sepolicy_path, "base/te"))
336 vendor_policy_dir_list.append(os.path.join(sepolicy_path, "base/te"))
337 public_policy_dir_list.append(os.path.join(sepolicy_path, "base/te"))
343 build_root = os.path.abspath(os.path.join(args.tool_path, "../../.."))
388 output_path = os.path.join(os.path.abspath(os.path.dirname(args.dst_file)), "developer/")
389 if not os.path.exists(output_path):
390 os.makedirs(output_path)
392 output_path = os.path.abspath(os.path.dirname(args.dst_file))
393 system_output_conf = os.path.join(output_path, "system.conf")
394 vendor_output_conf = os.path.join(output_path, "vendor.conf")
395 min_output_conf = os.path.join(output_path, "min.conf")
397 system_cil_path = os.path.join(output_path, "system.cil")
398 vendor_cil_path = os.path.join(output_path, "vendor.cil")
399 min_cil_path = os.path.join(output_path, "min.cil")
424 output_path = os.path.join(os.path.abspath(os.path.dirname(args.dst_file)), "developer/")
425 if not os.path.exists(output_path):
426 os.makedirs(output_path)
428 output_path = os.path.abspath(os.path.dirname(args.dst_file))
430 compatible_dir = os.path.join(output_path, "compatible/")
431 if not os.path.exists(compatible_dir):
432 os.makedirs(compatible_dir)
434 system_output_conf = os.path.join(output_path, "system.conf")
435 vendor_output_conf = os.path.join(output_path, "vendor.conf")
436 public_output_conf = os.path.join(output_path, "public.conf")
437 min_output_conf = os.path.join(output_path, "min.conf")
439 vendor_origin_cil_path = os.path.join(output_path, "vendor_origin.cil")
440 public_origin_cil_path = os.path.join(output_path, "public_origin.cil")
441 min_cil_path = os.path.join(output_path, "min.cil")
444 system_cil_path = os.path.join(output_path, "system.cil")
445 vendor_cil_path = os.path.join(output_path, "vendor.cil")
446 public_version_cil_path = os.path.join(output_path, "public.cil")
447 type_version_cil_path = os.path.join(output_path, "".join(["compatible/", args.vendor_policy_version, ".cil"]))
476 os.path.join(output_path, SYSTEM_CIL_HASH))
479 generate_hash_file([system_cil_path, type_version_cil_path], os.path.join(
482 version_file = os.path.join(output_path, "version")
517 developer_policy_path = os.path.join(os.path.abspath(os.path.dirname(args.dst_file)), "developer/policy.31")
532 output_path = os.path.abspath(os.path.dirname(args.dst_file))
534 src_dir = os.path.join(output_path, "pre_check/")
538 src_policy_path = os.path.join(src_dir, "developer/policy.31")
539 dest_policy_path = os.path.join(output_path, "developer/developer_policy")
542 src_policy_path = os.path.join(src_dir, "policy.31")
543 dest_policy_path = os.path.join(output_path, "user_policy")
548 output_path = os.path.join(os.path.abspath(os.path.dirname(args.dst_file)), "pre_check/")
549 if not os.path.exists(output_path):
550 os.makedirs(output_path)
551 args.dst_file = os.path.join(output_path, "policy.31")