Searched refs:policy_file (Results 1 – 8 of 8) sorted by relevance
/system/core/init/ |
D | selinux.cpp | 303 bool OpenSplitPolicy(PolicyFile* policy_file) { in OpenSplitPolicy() argument 330 policy_file->fd = std::move(fd); in OpenSplitPolicy() 331 policy_file->path = std::move(*res); in OpenSplitPolicy() 461 policy_file->fd = std::move(compiled_sepolicy_fd); in OpenSplitPolicy() 462 policy_file->path = compiled_sepolicy; in OpenSplitPolicy() 466 bool OpenMonolithicPolicy(PolicyFile* policy_file) { in OpenMonolithicPolicy() argument 470 policy_file->fd.reset(open(kSepolicyFile, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); in OpenMonolithicPolicy() 471 if (policy_file->fd < 0) { in OpenMonolithicPolicy() 475 policy_file->path = kSepolicyFile; in OpenMonolithicPolicy() 480 PolicyFile policy_file; in ReadPolicy() local [all …]
|
/system/core/property_service/property_info_checker/ |
D | property_info_checker.cpp | 47 bool Initialize(const char* policy_file) { in Initialize() argument 48 policy_file_ = fopen(policy_file, "re"); in Initialize() 50 std::cerr << "Could not open policy file, " << policy_file << std::endl; in Initialize()
|
/system/sepolicy/tools/sepolicy-analyze/ |
D | utils.h | 14 bool load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
|
D | sepolicy-analyze.c | 45 struct policy_file pf; in main()
|
D | utils.c | 25 bool load_policy(char *filename, policydb_t * policydb, struct policy_file *pf) in load_policy()
|
/system/sepolicy/tools/ |
D | check_seapp.c | 147 FILE *policy_file; /** file handle to the policy file */ member 174 .policy_file = NULL, 407 if (!pol.policy_file) { in validate_domain() 427 if (!pol.policy_file) { in validate_type() 460 if (!pol.policy_file) { in validate_selinux_level() 936 pol.policy_file = fopen(pol.policy_file_name, "rb"); in init() 937 if (!pol.policy_file) { in init() 956 sepol_policy_file_set_fp(pol.pf, pol.policy_file); in init() 1289 if (pol.policy_file) { in cleanup() 1292 fclose(pol.policy_file); in cleanup()
|
D | sepolicy-check.c | 188 int load_policy(char *filename, policydb_t *policydb, struct policy_file *pf) { in load_policy() 237 struct policy_file pf; in main()
|
/system/sepolicy/tests/ |
D | sepol_wrap.cpp | 231 struct policy_file pf; in load_policy()
|