| /linux/security/integrity/ima/ |
| H A D | ima_main.c | 107 char **pathbuf, const char **pathname, in mmap_violation_check() argument 118 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check() 119 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check() 140 char **pathbuf, in ima_rdwr_violation_check() argument 173 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check() 246 char *pathbuf = NULL; in process_measurement() local 292 &pathbuf, &pathname, filename); in process_measurement() 377 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement() 417 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement() 418 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement() [all …]
|
| H A D | ima_api.c | 441 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument 446 *pathbuf = __getname(); in ima_d_path() 447 if (*pathbuf) { in ima_d_path() 448 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path() 450 __putname(*pathbuf); in ima_d_path() 451 *pathbuf = NULL; in ima_d_path()
|
| H A D | ima_appraise.c | 731 char *path = NULL, *pathbuf = NULL; in validate_hash_algo() local 760 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in validate_hash_algo() 761 if (!pathbuf) in validate_hash_algo() 764 path = dentry_path(dentry, pathbuf, PATH_MAX); in validate_hash_algo() 769 kfree(pathbuf); in validate_hash_algo()
|
| H A D | ima.h | 410 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
|
| /linux/drivers/firmware/tegra/ |
| H A D | bpmp-debugfs.c | 412 char *buf, *pathbuf; in bpmp_populate_debugfs_inband() local 423 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband() 424 if (!pathbuf) { in bpmp_populate_debugfs_inband() 453 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband() 460 pathbuf); in bpmp_populate_debugfs_inband() 478 kfree(pathbuf); in bpmp_populate_debugfs_inband()
|
| /linux/kernel/cgroup/ |
| H A D | cgroup-v1.c | 805 char *pathbuf, *agentbuf; in cgroup1_release_agent() local 814 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cgroup1_release_agent() 816 if (!pathbuf || !agentbuf) in cgroup1_release_agent() 825 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns); in cgroup1_release_agent() 830 argv[1] = pathbuf; in cgroup1_release_agent() 841 kfree(pathbuf); in cgroup1_release_agent()
|
| /linux/fs/ |
| H A D | coredump.c | 198 char *pathbuf, *path, *ptr; in cn_print_exe_file() local 205 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file() 206 if (!pathbuf) { in cn_print_exe_file() 211 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file() 225 kfree(pathbuf); in cn_print_exe_file()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_mass_storage.c | 2884 char *pathbuf = NULL, *p = "(no medium)"; in fsg_common_create_lun() local 2936 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun() 2937 if (pathbuf) { in fsg_common_create_lun() 2938 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun() 2948 kfree(pathbuf); in fsg_common_create_lun()
|
| /linux/include/trace/events/ |
| H A D | f2fs.h | 2378 __string(pathbuf, pathname) 2393 __assign_str(pathbuf); 2394 (void)strreplace(__get_str(pathbuf), ' ', '_'); 2406 __get_str(pathbuf), __entry->offset, __entry->bytes,
|