| /kernel/liteos_a/testsuites/unittest/libc/io/full/ |
| D | IO_test_confstr_001.cpp | 35 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/ |
| 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);
|
| /kernel/linux/linux-5.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() 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/ |
| D | cgroup-v1.c | 799 char *pathbuf, *agentbuf; in cgroup1_release_agent() local 808 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cgroup1_release_agent() 810 if (!pathbuf || !agentbuf) in cgroup1_release_agent() 819 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns); in cgroup1_release_agent() 824 argv[1] = pathbuf; in cgroup1_release_agent() 835 kfree(pathbuf); in cgroup1_release_agent()
|
| /kernel/linux/linux-5.10/fs/ |
| D | coredump.c | 163 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-5.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()
|