Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 17 of 17) sorted by relevance

/security/tomoyo/
Dutil.c146 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 …]
Dfile.c70 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 …]
Dload_policy.c85 void tomoyo_load_policy(const char *filename) in tomoyo_load_policy() argument
95 if (strcmp(filename, tomoyo_trigger)) in tomoyo_load_policy()
Dcommon.h435 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()
Dcondition.c282 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()
Dtomoyo.c79 tomoyo_load_policy(bprm->filename); in tomoyo_bprm_creds_for_exec()
Ddomain.c705 const char *original_name = bprm->filename; in tomoyo_find_next_domain()
Dcommon.c394 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/
Dima_api.c104 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 …]
Dima.h65 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
Dima_main.c88 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 …]
Dima_template_lib.c330 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()
Dima_queue.c161 const unsigned char *filename) in ima_add_template_entry() argument
199 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_template_entry()
Dima_init.c49 .filename = boot_aggregate_name }; in ima_add_boot_aggregate()
Dima_appraise.c378 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/
Ddomain.c649 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/
Dcommoncap.c758 bprm->filename); in get_file_caps()
810 warn_setuid_and_fcaps_mixed(bprm->filename); in handle_privileged_root()