Searched refs:pathbuf (Results 1 – 8 of 8) sorted by relevance
| /Linux-v5.15/security/integrity/ima/ |
| D | ima_main.c | 86 char **pathbuf, const char **pathname, in mmap_violation_check() argument 96 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check() 97 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check() 118 char **pathbuf, in ima_rdwr_violation_check() argument 145 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check() 208 char *pathbuf = NULL; in process_measurement() local 251 &pathbuf, &pathname, filename); in process_measurement() 308 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement() 341 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement() 342 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement() [all …]
|
| D | ima_api.c | 391 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument 395 *pathbuf = __getname(); in ima_d_path() 396 if (*pathbuf) { in ima_d_path() 397 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path() 399 __putname(*pathbuf); in ima_d_path() 400 *pathbuf = NULL; in ima_d_path()
|
| D | ima_appraise.c | 597 char *path = NULL, *pathbuf = NULL; in validate_hash_algo() local 626 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in validate_hash_algo() 627 if (!pathbuf) in validate_hash_algo() 630 path = dentry_path(dentry, pathbuf, PATH_MAX); in validate_hash_algo() 635 kfree(pathbuf); in validate_hash_algo()
|
| D | ima.h | 285 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
|
| /Linux-v5.15/drivers/firmware/tegra/ |
| D | bpmp-debugfs.c | 410 char *buf, *pathbuf; in bpmp_populate_debugfs_inband() local 421 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband() 422 if (!pathbuf) { in bpmp_populate_debugfs_inband() 451 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband() 458 pathbuf); in bpmp_populate_debugfs_inband() 476 kfree(pathbuf); in bpmp_populate_debugfs_inband()
|
| /Linux-v5.15/kernel/cgroup/ |
| D | cgroup-v1.c | 781 char *pathbuf, *agentbuf; in cgroup1_release_agent() local 790 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cgroup1_release_agent() 792 if (!pathbuf || !agentbuf) in cgroup1_release_agent() 801 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns); in cgroup1_release_agent() 806 argv[1] = pathbuf; in cgroup1_release_agent() 817 kfree(pathbuf); in cgroup1_release_agent()
|
| /Linux-v5.15/fs/ |
| D | coredump.c | 159 char *pathbuf, *path, *ptr; in cn_print_exe_file() local 166 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file() 167 if (!pathbuf) { in cn_print_exe_file() 172 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file() 186 kfree(pathbuf); in cn_print_exe_file()
|
| /Linux-v5.15/drivers/usb/gadget/function/ |
| D | f_mass_storage.c | 2711 char *pathbuf, *p; in fsg_common_create_lun() local 2763 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun() 2767 if (pathbuf) { in fsg_common_create_lun() 2768 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun() 2778 kfree(pathbuf); in fsg_common_create_lun()
|