/security/tomoyo/ |
D | util.c | 146 static bool tomoyo_correct_path2(const char *filename, const size_t len); 250 char *filename; in tomoyo_parse_name_union() local 257 filename = tomoyo_read_token(param); in tomoyo_parse_name_union() 258 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union() 260 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union() 261 return ptr->filename != NULL; in tomoyo_parse_name_union() 531 static bool tomoyo_correct_path2(const char *filename, const size_t len) in tomoyo_correct_path2() argument 533 const char *cp1 = memchr(filename, '/', len); in tomoyo_correct_path2() 534 const char *cp2 = memchr(filename, '.', len); in tomoyo_correct_path2() 536 return cp1 && (!cp2 || (cp1 < cp2)) && tomoyo_correct_word2(filename, len); in tomoyo_correct_path2() [all …]
|
D | file.c | 70 tomoyo_put_name(ptr->filename); in tomoyo_put_name_union() 87 if (tomoyo_path_matches_pattern(name, ptr->filename)) in tomoyo_compare_name_union() 88 return ptr->filename; in tomoyo_compare_name_union() 170 r->param.path.filename->name); in tomoyo_audit_path_log() 200 r->param.mkdev.filename->name, in tomoyo_audit_mkdev_log() 237 r->param.path_number.filename->name, buffer); in tomoyo_audit_path_number_log() 260 tomoyo_compare_name_union(r->param.path.filename, in tomoyo_check_path_acl() 284 tomoyo_compare_name_union(r->param.path_number.filename, in tomoyo_check_path_number_acl() 329 tomoyo_compare_name_union(r->param.mkdev.filename, in tomoyo_check_mkdev_acl() 574 const struct tomoyo_path_info *filename) in tomoyo_path_permission() argument [all …]
|
D | load_policy.c | 85 void tomoyo_load_policy(const char *filename) in tomoyo_load_policy() argument 95 if (strcmp(filename, tomoyo_trigger)) in tomoyo_load_policy()
|
D | common.h | 435 const struct tomoyo_path_info *filename; member 448 const struct tomoyo_path_info *filename; member 456 const struct tomoyo_path_info *filename; member 521 const struct tomoyo_path_info *filename; member 934 bool tomoyo_correct_path(const char *filename); 950 bool tomoyo_path_matches_pattern(const struct tomoyo_path_info *filename, 975 const struct tomoyo_path_info *filename); 1056 void tomoyo_load_policy(const char *filename); 1236 return a->filename == b->filename && a->group == b->group; in tomoyo_same_name_union()
|
D | condition.c | 282 char *filename = param->data; in tomoyo_parse_name_union_quoted() local 284 if (*filename == '@') in tomoyo_parse_name_union_quoted() 286 ptr->filename = tomoyo_get_dqword(filename); in tomoyo_parse_name_union_quoted() 287 return ptr->filename != NULL; in tomoyo_parse_name_union_quoted()
|
D | tomoyo.c | 79 tomoyo_load_policy(bprm->filename); in tomoyo_bprm_creds_for_exec()
|
D | domain.c | 705 const char *original_name = bprm->filename; in tomoyo_find_next_domain()
|
D | common.c | 394 tomoyo_set_string(head, ptr->filename->name); in tomoyo_print_name_union() 414 tomoyo_set_string(head, ptr->filename->name); in tomoyo_print_name_union_quoted()
|
/security/integrity/ima/ |
D | ima_api.c | 104 const unsigned char *filename, int pcr) in ima_store_template() argument 122 result = ima_add_template_entry(entry, violation, op, inode, filename); in ima_store_template() 133 void ima_add_violation(struct file *file, const unsigned char *filename, in ima_add_violation() argument 141 .filename = filename, in ima_add_violation() 155 filename, CONFIG_IMA_MEASURE_PCR_IDX); in ima_add_violation() 159 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_violation() 220 const char *filename = file->f_path.dentry->d_name.name; in ima_collect_measurement() local 284 filename, "collect_data", audit_cause, in ima_collect_measurement() 306 struct file *file, const unsigned char *filename, in ima_store_measurement() argument 318 .filename = filename, in ima_store_measurement() [all …]
|
D | ima.h | 65 const unsigned char *filename; member 141 const unsigned char *filename); 148 void ima_add_violation(struct file *file, const unsigned char *filename, 267 const unsigned char *filename, 277 const unsigned char *filename); 283 const unsigned char *filename, int pcr); 285 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename); 318 struct file *file, const unsigned char *filename, 341 const unsigned char *filename, in ima_appraise_measurement() argument
|
D | ima_main.c | 88 char *filename) in mmap_violation_check() argument 99 filename); in mmap_violation_check() 121 char *filename) in ima_rdwr_violation_check() argument 146 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check() 210 char filename[NAME_MAX]; in process_measurement() local 252 &pathbuf, &pathname, filename); in process_measurement() 323 &pathname, filename); in process_measurement() 356 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement() 373 &pathname, filename); in process_measurement() 452 char filename[NAME_MAX]; in ima_file_mprotect() local [all …]
|
D | ima_template_lib.c | 330 if ((const char *)event_data->filename == boot_aggregate_name) { in ima_eventdigest_init() 357 event_data->filename, "collect_data", in ima_eventdigest_init() 431 BUG_ON(event_data->filename == NULL && event_data->file == NULL); in ima_eventname_init_common() 433 if (event_data->filename) { in ima_eventname_init_common() 434 cur_filename = event_data->filename; in ima_eventname_init_common() 435 cur_filename_len = strlen(event_data->filename); in ima_eventname_init_common()
|
D | ima_queue.c | 161 const unsigned char *filename) in ima_add_template_entry() argument 199 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_template_entry()
|
D | ima_init.c | 49 .filename = boot_aggregate_name }; in ima_add_boot_aggregate()
|
D | ima_appraise.c | 378 struct file *file, const unsigned char *filename, in ima_appraise_measurement() argument 462 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, filename, in ima_appraise_measurement() 482 integrity_audit_msg(AUDIT_INTEGRITY_DATA, inode, filename, in ima_appraise_measurement()
|
/security/apparmor/ |
D | domain.c | 649 name = bprm->filename; in profile_transition() 755 xname = bprm->filename; in profile_onexec() 840 AA_MAY_ONEXEC, bprm->filename, NULL, in handle_onexec() 943 "label=", bprm->filename); in apparmor_bprm_creds_for_exec() 954 "bits. %s label=", bprm->filename); in apparmor_bprm_creds_for_exec() 973 bprm->filename, NULL, new, in apparmor_bprm_creds_for_exec()
|
/security/ |
D | commoncap.c | 758 bprm->filename); in get_file_caps() 810 warn_setuid_and_fcaps_mixed(bprm->filename); in handle_privileged_root()
|