Home
last modified time | relevance | path

Searched refs:pathbuf (Results 1 - 17 of 17) sorted by relevance

/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_confstr_001.cpp35 char *pathbuf = nullptr; in testcase() local
42 pathbuf = (char *)malloc(n); in testcase()
43 if (pathbuf == NULL) { in testcase()
46 confstr(_CS_PATH, pathbuf, n); in testcase()
47 ICUNIT_ASSERT_NOT_EQUAL(pathbuf, NULL, -1); in testcase()
48 free(pathbuf); in testcase()
49 pathbuf = NULL; in testcase()
/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_main.c82 char **pathbuf, const char **pathname, in mmap_violation_check()
92 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check()
93 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
114 char **pathbuf, in ima_rdwr_violation_check()
141 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
204 char *pathbuf = NULL; in process_measurement() local
245 &pathbuf, &pathname, filename); in process_measurement()
315 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement()
348 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement()
349 pathname = ima_d_path(&file->f_path, &pathbuf, filenam in process_measurement()
81 mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename) mmap_violation_check() argument
111 ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) ima_rdwr_violation_check() argument
436 char *pathbuf = NULL; ima_file_mprotect() local
[all...]
H A Dima_api.c392 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
396 *pathbuf = __getname(); in ima_d_path()
397 if (*pathbuf) { in ima_d_path()
398 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
400 __putname(*pathbuf); in ima_d_path()
401 *pathbuf = NULL; in ima_d_path()
H A Dima.h280 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
/kernel/linux/linux-6.6/security/integrity/ima/
H A Dima_main.c86 char **pathbuf, const char **pathname, in mmap_violation_check()
97 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check()
98 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
119 char **pathbuf, in ima_rdwr_violation_check()
146 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
214 char *pathbuf = NULL; in process_measurement() local
258 &pathbuf, &pathname, filename); in process_measurement()
329 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement()
363 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement()
364 pathname = ima_d_path(&file->f_path, &pathbuf, filenam in process_measurement()
85 mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename) mmap_violation_check() argument
116 ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) ima_rdwr_violation_check() argument
473 char *pathbuf = NULL; ima_file_mprotect() local
[all...]
H A Dima_api.c432 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
436 *pathbuf = __getname(); in ima_d_path()
437 if (*pathbuf) { in ima_d_path()
438 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
440 __putname(*pathbuf); in ima_d_path()
441 *pathbuf = NULL; in ima_d_path()
H A Dima_appraise.c709 char *path = NULL, *pathbuf = NULL; in validate_hash_algo() local
738 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in validate_hash_algo()
739 if (!pathbuf) in validate_hash_algo()
742 path = dentry_path(dentry, pathbuf, PATH_MAX); in validate_hash_algo()
747 kfree(pathbuf); in validate_hash_algo()
H A Dima.h286 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
/kernel/linux/linux-5.10/drivers/firmware/tegra/
H A Dbpmp-debugfs.c374 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()
415 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband()
422 pathbuf); in bpmp_populate_debugfs_inband()
440 kfree(pathbuf); in bpmp_populate_debugfs_inband()
/kernel/linux/linux-5.10/kernel/cgroup/
H A Dcgroup-v1.c798 char *pathbuf, *agentbuf;
807 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
809 if (!pathbuf || !agentbuf)
818 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns);
823 argv[1] = pathbuf;
834 kfree(pathbuf);
/kernel/linux/linux-6.6/drivers/firmware/tegra/
H A 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()
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dcgroup-v1.c789 char *pathbuf, *agentbuf;
798 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
800 if (!pathbuf || !agentbuf)
809 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns);
814 argv[1] = pathbuf;
825 kfree(pathbuf);
/kernel/linux/linux-5.10/fs/
H A Dcoredump.c163 char *pathbuf, *path, *ptr; in cn_print_exe_file() local
170 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file()
171 if (!pathbuf) { in cn_print_exe_file()
176 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
190 kfree(pathbuf); in cn_print_exe_file()
/kernel/linux/linux-6.6/fs/
H A Dcoredump.c164 char *pathbuf, *path, *ptr; in cn_print_exe_file() local
171 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file()
172 if (!pathbuf) { in cn_print_exe_file()
177 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
191 kfree(pathbuf); in cn_print_exe_file()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Df_mass_storage.c2759 char *pathbuf, *p; in fsg_common_create_lun() local
2811 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun()
2815 if (pathbuf) { in fsg_common_create_lun()
2816 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun()
2826 kfree(pathbuf); in fsg_common_create_lun()
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_mass_storage.c2876 char *pathbuf = NULL, *p = "(no medium)"; in fsg_common_create_lun() local
2928 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun()
2929 if (pathbuf) { in fsg_common_create_lun()
2930 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun()
2940 kfree(pathbuf); in fsg_common_create_lun()
/kernel/linux/linux-6.6/include/trace/events/
H A Df2fs.h2222 __string(pathbuf, pathname)
2237 __assign_str(pathbuf, pathname);
2238 (void)strreplace(__get_str(pathbuf), ' ', '_');
2250 __get_str(pathbuf), __entry->offset, __entry->bytes,

Completed in 32 milliseconds