Home
last modified time | relevance | path

Searched refs:pathbuf (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.1/security/integrity/ima/
Dima_main.c86 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 …]
Dima_api.c430 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
434 *pathbuf = __getname(); in ima_d_path()
435 if (*pathbuf) { in ima_d_path()
436 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
438 __putname(*pathbuf); in ima_d_path()
439 *pathbuf = NULL; in ima_d_path()
Dima_appraise.c704 char *path = NULL, *pathbuf = NULL; in validate_hash_algo() local
733 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in validate_hash_algo()
734 if (!pathbuf) in validate_hash_algo()
737 path = dentry_path(dentry, pathbuf, PATH_MAX); in validate_hash_algo()
742 kfree(pathbuf); in validate_hash_algo()
Dima.h285 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
/Linux-v6.1/drivers/firmware/tegra/
Dbpmp-debugfs.c412 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-v6.1/kernel/cgroup/
Dcgroup-v1.c785 char *pathbuf, *agentbuf; in cgroup1_release_agent() local
794 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cgroup1_release_agent()
796 if (!pathbuf || !agentbuf) in cgroup1_release_agent()
805 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns); in cgroup1_release_agent()
810 argv[1] = pathbuf; in cgroup1_release_agent()
821 kfree(pathbuf); in cgroup1_release_agent()
/Linux-v6.1/fs/
Dcoredump.c161 char *pathbuf, *path, *ptr; in cn_print_exe_file() local
168 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file()
169 if (!pathbuf) { in cn_print_exe_file()
174 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
188 kfree(pathbuf); in cn_print_exe_file()
/Linux-v6.1/drivers/usb/gadget/function/
Df_mass_storage.c2859 char *pathbuf, *p; in fsg_common_create_lun() local
2911 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun()
2915 if (pathbuf) { in fsg_common_create_lun()
2916 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun()
2926 kfree(pathbuf); in fsg_common_create_lun()
/Linux-v6.1/include/trace/events/
Df2fs.h2076 __string(pathbuf, pathname)
2091 __assign_str(pathbuf, pathname);
2092 (void)strreplace(__get_str(pathbuf), ' ', '_');
2104 __get_str(pathbuf), __entry->offset, __entry->bytes,