Searched refs:pathbuf (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.10/security/integrity/ima/ |
D | ima_main.c | 81 char **pathbuf, const char **pathname, in mmap_violation_check() argument 91 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check() 92 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check() 113 char **pathbuf, in ima_rdwr_violation_check() argument 140 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check() 203 char *pathbuf = NULL; in process_measurement() local 244 &pathbuf, &pathname, filename); in process_measurement() 301 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement() 334 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement() 335 pathname = ima_d_path(&file->f_path, &pathbuf, filename); in process_measurement() [all …]
|
D | ima_api.c | 387 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument 391 *pathbuf = __getname(); in ima_d_path() 392 if (*pathbuf) { in ima_d_path() 393 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path() 395 __putname(*pathbuf); in ima_d_path() 396 *pathbuf = NULL; in ima_d_path()
|
D | ima.h | 280 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
|
/Linux-v5.10/drivers/firmware/tegra/ |
D | bpmp-debugfs.c | 374 char *buf, *pathbuf; in bpmp_populate_debugfs_inband() local 385 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband() 386 if (!pathbuf) { in bpmp_populate_debugfs_inband() 421 strncpy(pathbuf, ppath, pathlen); in bpmp_populate_debugfs_inband() 422 strncat(pathbuf, name, strlen(name)); in bpmp_populate_debugfs_inband() 423 strcat(pathbuf, "/"); in bpmp_populate_debugfs_inband() 426 pathbuf); in bpmp_populate_debugfs_inband() 444 kfree(pathbuf); in bpmp_populate_debugfs_inband()
|
/Linux-v5.10/kernel/cgroup/ |
D | cgroup-v1.c | 775 char *pathbuf, *agentbuf; in cgroup1_release_agent() local 784 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cgroup1_release_agent() 786 if (!pathbuf || !agentbuf) in cgroup1_release_agent() 795 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns); in cgroup1_release_agent() 800 argv[1] = pathbuf; in cgroup1_release_agent() 811 kfree(pathbuf); in cgroup1_release_agent()
|
/Linux-v5.10/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.10/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 2743 char *pathbuf, *p; in fsg_common_create_lun() local 2795 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun() 2799 if (pathbuf) { in fsg_common_create_lun() 2800 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun() 2810 kfree(pathbuf); in fsg_common_create_lun()
|