/external/minijail/ |
syscall_filter_unittest.cc | 913 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 914 ASSERT_NE(policy_file, nullptr); 915 int res = compile_file("policy", policy_file, head_, &arg_blocks_, &labels_, 917 fclose(policy_file); 930 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 931 ASSERT_NE(policy_file, nullptr); 932 int res = compile_file("policy", policy_file, head_, &arg_blocks_, &labels_, 934 fclose(policy_file); 946 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 947 ASSERT_NE(policy_file, nullptr) 965 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1000 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1068 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1106 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1145 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1187 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1206 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1219 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1232 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1245 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1258 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1281 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1328 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local 1371 FILE *policy_file = local 1384 FILE *policy_file = write_policy_to_pipe(no_space, strlen(no_space)); local 1396 FILE *policy_file = write_policy_to_pipe(double_token, strlen(double_token)); local 1408 FILE *policy_file = write_policy_to_pipe(no_file, strlen(no_file)); local 1420 FILE *policy_file = local 1433 FILE *policy_file = write_policy_to_pipe(implicit_relative_path, local 1446 FILE *policy_file = local 1459 FILE *policy_file = local 1472 FILE *policy_file = local 1554 FILE *policy_file = local 1578 FILE *policy_file = local 1598 FILE *policy_file = local 1620 FILE *policy_file = write_policy_to_pipe(policy, strlen(policy)); local [all...] |
syscall_filter.h | 39 int compile_file(const char *filename, FILE *policy_file, 43 int compile_filter(const char *filename, FILE *policy_file,
|
/system/sepolicy/tools/sepolicy-analyze/ |
utils.h | 14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
|
sepolicy-analyze.c | 45 struct policy_file pf;
|
utils.c | 25 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf)
|
/external/ltp/testcases/kernel/security/tomoyo/ |
tomoyo_policy_memory_test.c | 41 static const char *policy_file = NULL; variable 53 FILE *fp = fopen(policy_file, "r"); 184 policy_file = "/sys/kernel/security/tomoyo/domain_policy"; 187 FILE *fp = fopen(policy_file, "w"); 219 FILE *fp = fopen(policy_file, "w"); 294 policy_file = "/sys/kernel/security/tomoyo/exception_policy"; 297 FILE *fp = fopen(policy_file, "w"); 328 FILE *fp = fopen(policy_file, "w");
|
tomoyo_policy_io_test.c | 27 static const char *policy_file = ""; variable 31 FILE *fp = fopen(policy_file, "r"); 68 policy_file = proc_policy_domain_policy; 114 policy_file = proc_policy_exception_policy;
|
/external/selinux/libsepol/src/ |
private.h | 65 extern int next_entry(void *buf, struct policy_file *fp, size_t bytes) hidden; 67 struct policy_file *fp) hidden; 68 extern int str_read(char **strp, struct policy_file *fp, size_t len) hidden;
|
policydb_public.c | 20 struct policy_file *pf = &spf->pf; 34 struct policy_file *pf = &spf->pf; 42 struct policy_file *pf = &spf->pf;
|
write.c | 50 struct policy_file *fp; 55 avrule_t * avrules, struct policy_file *fp); 57 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) 102 avtab_ptr_t cur, struct policy_file *fp, 275 static int avtab_write(struct policydb *p, avtab_t * a, struct policy_file *fp) 351 struct policy_file *fp) 382 struct policy_file *fp) 399 static int mls_write_level(mls_level_t * l, struct policy_file *fp) 419 static int mls_write_range_helper(mls_range_t * r, struct policy_file *fp) 452 struct policy_file *fp = pd->fp [all...] |
policydb.c | [all...] |
genbools.c | 163 struct policy_file pf; 224 struct policy_file pf;
|
module.c | 40 static int policy_file_seek(struct policy_file *fp, size_t offset) 63 static int policy_file_length(struct policy_file *fp, size_t *out) 347 static int read_helper(char *buf, struct policy_file *file, uint32_t bytes) 374 struct policy_file *file, 467 struct policy_file *file = &spf->pf; 652 struct policy_file *file = &spf->pf; 838 static int write_helper(char *data, size_t len, struct policy_file *file) 861 struct policy_file *file = &spf->pf;
|
/external/selinux/libsepol/tests/ |
test-downgrade.c | 206 struct policy_file f; 218 memset(&f, 0, sizeof(struct policy_file)); 243 struct policy_file f; 264 memset(&f, 0, sizeof(struct policy_file));
|
/external/selinux/libsepol/include/sepol/policydb/ |
avtab.h | 121 struct policy_file; 122 extern int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, 126 extern int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers);
|
conditional.h | 133 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
|
policydb.h | 695 typedef struct policy_file { struct 708 struct policy_file pf; 713 extern int policydb_read(policydb_t * p, struct policy_file *fp, 716 struct policy_file *fp); 718 extern int policydb_write(struct policydb *p, struct policy_file *pf);
|
/external/selinux/libselinux/utils/ |
sefcontext_compile.c | 17 const char *policy_file; variable 24 if (policy_file && sepol_check_context(ctx) < 0) { 272 "usage: %s [-o out_file] [-p policy_file] fc_file\n" 317 policy_file = optarg; 341 if (policy_file) { 342 policy_fp = fopen(policy_file, "r"); 346 argv[0], policy_file, strerror(errno)); 352 argv[0], policy_file);
|
/system/core/property_service/property_info_checker/ |
property_info_checker.cpp | 47 bool Initialize(const char* policy_file) { 48 policy_file_ = fopen(policy_file, "re"); 50 std::cerr << "Could not open policy file, " << policy_file << std::endl;
|
/cts/tools/selinux/ |
SELinuxNeverallowTestGen.py | 25 def extract_neverallow_rules(policy_file): 26 with open(policy_file, 'r') as in_file:
|
/external/libbrillo/policy/tests/ |
libpolicy_unittest.cc | 41 base::FilePath policy_file(kPolicyFileAllSet); 46 policy_file, key_file, false)); 167 base::FilePath policy_file(kPolicyFileNoneSet); 173 policy_file, key_file, false));
|
/system/sepolicy/tools/ |
check_seapp.c | 145 FILE *policy_file; /** file handle to the policy file */ member in struct:policy_info 172 .policy_file = NULL, 392 if (!pol.policy_file) { 410 if (!pol.policy_file) { 886 pol.policy_file = fopen(pol.policy_file_name, "rb"); 887 if (!pol.policy_file) { 906 sepol_policy_file_set_fp(pol.pf, pol.policy_file); 1232 if (pol.policy_file) { 1235 fclose(pol.policy_file);
|
sepolicy-check.c | 188 int load_policy(char *filename, policydb_t *policydb, struct policy_file *pf) { 237 struct policy_file pf;
|
/external/selinux/checkpolicy/ |
checkmodule.c | 57 struct policy_file f, *fp; 115 struct policy_file pf;
|
/external/selinux/python/audit2allow/ |
sepolgen-ifgen-attr-helper.c | 148 struct policy_file pf; 191 printf("usage: %s policy_file out_file\n", progname);
|