Searched refs:pathname (Results 1 – 9 of 9) sorted by relevance
/kernel/ |
D | audit_fsnotify.c | 74 struct audit_fsnotify_mark *audit_alloc_mark(struct audit_krule *krule, char *pathname, int len) in audit_alloc_mark() argument 82 if (pathname[0] != '/' || pathname[len-1] == '/') in audit_alloc_mark() 85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark() 99 audit_mark->path = pathname; in audit_alloc_mark()
|
D | audit_tree.c | 22 char pathname[]; member 97 tree = kmalloc(struct_size(tree, pathname, strlen(s) + 1), GFP_KERNEL); in alloc_tree() 106 strcpy(tree->pathname, s); in alloc_tree() 125 return tree->pathname; in audit_tree_path() 536 audit_log_untrustedstring(ab, rule->tree->pathname); in audit_tree_log_remove_rule() 695 err = kern_path(tree->pathname, 0, &path); in audit_trim_trees() 725 int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op) in audit_make_tree() argument 728 if (pathname[0] != '/' || in audit_make_tree() 734 rule->tree = alloc_tree(pathname); in audit_make_tree() 809 if (!strcmp(seed->pathname, tree->pathname)) { in audit_add_tree_rule() [all …]
|
D | audit_watch.c | 508 char *pathname; in audit_dupe_exe() local 510 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe() 511 if (!pathname) in audit_dupe_exe() 514 audit_mark = audit_alloc_mark(new, pathname, strlen(pathname)); in audit_dupe_exe() 516 kfree(pathname); in audit_dupe_exe()
|
D | audit.h | 278 char *pathname, int len); 292 extern int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op);
|
D | acct.c | 212 static int acct_on(struct filename *pathname) in acct_on() argument 226 file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0); in acct_on()
|
D | audit.c | 2145 char *p, *pathname; in audit_log_d_path() local 2151 pathname = kmalloc(PATH_MAX+11, ab->gfp_mask); in audit_log_d_path() 2152 if (!pathname) { in audit_log_d_path() 2156 p = d_path(path, pathname, PATH_MAX+11); in audit_log_d_path() 2162 kfree(pathname); in audit_log_d_path()
|
/kernel/bpf/ |
D | inode.c | 438 static int bpf_obj_do_pin(const char __user *pathname, void *raw, in bpf_obj_do_pin() argument 447 dentry = user_path_create(AT_FDCWD, pathname, &path, 0); in bpf_obj_do_pin() 481 int bpf_obj_pin_user(u32 ufd, const char __user *pathname) in bpf_obj_pin_user() argument 491 ret = bpf_obj_do_pin(pathname, raw, type); in bpf_obj_pin_user() 498 static void *bpf_obj_do_get(const char __user *pathname, in bpf_obj_do_get() argument 506 ret = user_path_at(AT_FDCWD, pathname, LOOKUP_FOLLOW, &path); in bpf_obj_do_get() 530 int bpf_obj_get_user(const char __user *pathname, int flags) in bpf_obj_get_user() argument 541 raw = bpf_obj_do_get(pathname, &type, f_flags); in bpf_obj_get_user()
|
D | syscall.c | 2670 return bpf_obj_pin_user(attr->bpf_fd, u64_to_user_ptr(attr->pathname)); in bpf_obj_pin() 2679 return bpf_obj_get_user(u64_to_user_ptr(attr->pathname), in bpf_obj_get()
|
/kernel/events/ |
D | core.c | 8327 char *pathname; in perf_event_cgroup() local 8344 pathname = kmalloc(PATH_MAX, GFP_KERNEL); in perf_event_cgroup() 8345 if (pathname == NULL) { in perf_event_cgroup() 8349 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup() 8350 cgroup_event.path = pathname; in perf_event_cgroup() 8369 kfree(pathname); in perf_event_cgroup()
|