Home
last modified time | relevance | path

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

/kernel/
Daudit_fsnotify.c74 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()
Daudit_tree.c22 char pathname[]; member
106 strcpy(tree->pathname, s); in alloc_tree()
125 return tree->pathname; in audit_tree_path()
538 audit_log_untrustedstring(ab, rule->tree->pathname); in audit_tree_log_remove_rule()
698 err = kern_path(tree->pathname, 0, &path); in audit_trim_trees()
728 int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op) in audit_make_tree() argument
731 if (pathname[0] != '/' || in audit_make_tree()
736 rule->tree = alloc_tree(pathname); in audit_make_tree()
811 if (!strcmp(seed->pathname, tree->pathname)) { in audit_add_tree_rule()
830 err = kern_path(tree->pathname, 0, &path); in audit_add_tree_rule()
[all …]
Daudit_watch.c523 char *pathname; in audit_dupe_exe() local
525 pathname = kstrdup(audit_mark_path(old->exe), GFP_KERNEL); in audit_dupe_exe()
526 if (!pathname) in audit_dupe_exe()
529 audit_mark = audit_alloc_mark(new, pathname, strlen(pathname)); in audit_dupe_exe()
531 kfree(pathname); in audit_dupe_exe()
Dsysctl_binary.c1285 char *pathname; in binary_sysctl() local
1288 pathname = sysctl_getname(name, nlen, &table); in binary_sysctl()
1289 result = PTR_ERR(pathname); in binary_sysctl()
1290 if (IS_ERR(pathname)) in binary_sysctl()
1306 file = file_open_root(mnt->mnt_root, mnt, pathname, flags, 0); in binary_sysctl()
1315 __putname(pathname); in binary_sysctl()
Daudit.h270 char *pathname, int len);
284 extern int audit_make_tree(struct audit_krule *rule, char *pathname, u32 op);
Dacct.c193 static int acct_on(struct filename *pathname) in acct_on() argument
207 file = file_open_name(pathname, O_WRONLY|O_APPEND|O_LARGEFILE, 0); in acct_on()
Daudit.c2089 char *p, *pathname; in audit_log_d_path() local
2095 pathname = kmalloc(PATH_MAX+11, ab->gfp_mask); in audit_log_d_path()
2096 if (!pathname) { in audit_log_d_path()
2100 p = d_path(path, pathname, PATH_MAX+11); in audit_log_d_path()
2106 kfree(pathname); in audit_log_d_path()
/kernel/bpf/
Dinode.c384 static int bpf_obj_do_pin(const struct filename *pathname, void *raw, in bpf_obj_do_pin() argument
393 dentry = kern_path_create(AT_FDCWD, pathname->name, &path, 0); in bpf_obj_do_pin()
424 int bpf_obj_pin_user(u32 ufd, const char __user *pathname) in bpf_obj_pin_user() argument
431 pname = getname(pathname); in bpf_obj_pin_user()
449 static void *bpf_obj_do_get(const struct filename *pathname, in bpf_obj_do_get() argument
457 ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); in bpf_obj_do_get()
481 int bpf_obj_get_user(const char __user *pathname, int flags) in bpf_obj_get_user() argument
493 pname = getname(pathname); in bpf_obj_get_user()
Dsyscall.c1781 return bpf_obj_pin_user(attr->bpf_fd, u64_to_user_ptr(attr->pathname)); in bpf_obj_pin()
1790 return bpf_obj_get_user(u64_to_user_ptr(attr->pathname), in bpf_obj_get()