/kernel/ |
D | audit_watch.c | 39 char *path; /* insertion path */ member 110 kfree(watch->path); in audit_put_watch() 125 return watch->path; in audit_watch_path() 136 static struct audit_parent *audit_init_parent(struct path *path) in audit_init_parent() argument 138 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent() 160 static struct audit_watch *audit_init_watch(char *path) in audit_init_watch() argument 170 watch->path = path; in audit_init_watch() 178 int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op) in audit_to_watch() argument 185 if (path[0] != '/' || path[len-1] == '/' || in audit_to_watch() 191 watch = audit_init_watch(path); in audit_to_watch() [all …]
|
D | audit_fsnotify.c | 29 char *path; /* insertion path */ member 43 kfree(audit_mark->path); in audit_fsnotify_mark_free() 57 return mark->path; in audit_mark_path() 77 struct path path; in audit_alloc_mark() local 85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark() 88 inode = path.dentry->d_inode; in audit_alloc_mark() 99 audit_mark->path = pathname; in audit_alloc_mark() 105 audit_mark->path = NULL; in audit_alloc_mark() 111 path_put(&path); in audit_alloc_mark() 127 audit_log_untrustedstring(ab, audit_mark->path); in audit_mark_log_rule_change() [all …]
|
D | umh.c | 121 retval = do_execve(getname_kernel(sub_info->path), in call_usermodehelper_exec_async() 388 struct subprocess_info *call_usermodehelper_setup(const char *path, char **argv, in call_usermodehelper_setup() argument 402 sub_info->path = CONFIG_STATIC_USERMODEHELPER_PATH; in call_usermodehelper_setup() 404 sub_info->path = path; in call_usermodehelper_setup() 436 sub_info->path = "none"; in call_usermodehelper_setup_file() 573 if (!sub_info->path) { in call_usermodehelper_exec() 588 if (strlen(sub_info->path) == 0) in call_usermodehelper_exec() 638 int call_usermodehelper(const char *path, char **argv, char **envp, int wait) in call_usermodehelper() argument 643 info = call_usermodehelper_setup(path, argv, envp, gfp_mask, in call_usermodehelper()
|
D | audit_tree.c | 687 struct path path; in audit_trim_trees() local 698 err = kern_path(tree->pathname, 0, &path); in audit_trim_trees() 702 root_mnt = collect_mounts(&path); in audit_trim_trees() 703 path_put(&path); in audit_trim_trees() 805 struct path path; in audit_add_tree_rule() local 830 err = kern_path(tree->pathname, 0, &path); in audit_add_tree_rule() 833 mnt = collect_mounts(&path); in audit_add_tree_rule() 834 path_put(&path); in audit_add_tree_rule() 876 struct path path1, path2; in audit_tag_tree()
|
D | audit.h | 121 struct path pwd; 224 extern int parent_len(const char *path); 225 extern int audit_compare_dname_path(const struct qstr *dname, const char *path, int plen); 261 extern int audit_to_watch(struct audit_krule *krule, char *path, int len,
|
D | auditfilter.c | 1267 int parent_len(const char *path) in parent_len() argument 1272 plen = strlen(path); in parent_len() 1278 p = path + plen - 1; in parent_len() 1279 while ((*p == '/') && (p > path)) in parent_len() 1283 while ((*p != '/') && (p > path)) in parent_len() 1290 return p - path; in parent_len() 1301 int audit_compare_dname_path(const struct qstr *dname, const char *path, int parentlen) in audit_compare_dname_path() argument 1307 pathlen = strlen(path); in audit_compare_dname_path() 1311 parentlen = parentlen == AUDIT_NAME_FULL ? parent_len(path) : parentlen; in audit_compare_dname_path() 1315 p = path + parentlen; in audit_compare_dname_path()
|
D | sysctl_binary.c | 1205 static const struct bin_table *get_sysctl(const int *name, int nlen, char *path) in get_sysctl() argument 1214 memcpy(path, "sys/", 4); in get_sysctl() 1215 path += 4; in get_sysctl() 1237 memcpy(path, dev->name, len); in get_sysctl() 1244 memcpy(path, table->procname, len); in get_sysctl() 1247 path += len; in get_sysctl() 1249 *path++ = '/'; in get_sysctl() 1253 *path = '\0'; in get_sysctl()
|
D | audit.c | 2087 const struct path *path) in audit_log_d_path() argument 2100 p = d_path(path, pathname, PATH_MAX+11); in audit_log_d_path()
|
D | auditsc.c | 1370 const struct path *path, int record_num, int *call_panic) in audit_log_name() argument 1380 if (path) in audit_log_name() 1381 audit_log_d_path(ab, " name=", path); in audit_log_name()
|
/kernel/bpf/ |
D | inode.c | 389 struct path path; in bpf_obj_do_pin() local 393 dentry = kern_path_create(AT_FDCWD, pathname->name, &path, 0); in bpf_obj_do_pin() 399 ret = security_path_mknod(&path, dentry, mode, 0); in bpf_obj_do_pin() 403 dir = d_inode(path.dentry); in bpf_obj_do_pin() 420 done_path_create(&path, dentry); in bpf_obj_do_pin() 453 struct path path; in bpf_obj_do_get() local 457 ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); in bpf_obj_do_get() 461 inode = d_backing_inode(path.dentry); in bpf_obj_do_get() 472 touch_atime(&path); in bpf_obj_do_get() 474 path_put(&path); in bpf_obj_do_get() [all …]
|
D | offload.c | 303 struct path ns_path; in bpf_prog_offload_info_fill() 528 struct path ns_path; in bpf_map_offload_info_fill()
|
/kernel/trace/ |
D | trace_uprobe.c | 58 struct path path; member 370 path_put(&tu->path); in free_trace_uprobe() 413 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe() 418 if (comp_inode != d_real_inode(orig->path.dentry) || in trace_uprobe_has_same_uprobe() 477 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset() 480 if (new_inode == d_real_inode(tmp->path.dentry) && in validate_ref_ctr_offset() 544 struct path path; in trace_uprobe_create() local 586 ret = kern_path(filename, LOOKUP_FOLLOW, &path); in trace_uprobe_create() 593 if (!d_is_reg(path.dentry)) { in trace_uprobe_create() 670 tu->path = path; in trace_uprobe_create() [all …]
|
D | trace_event_perf.c | 306 char *path = NULL; in perf_uprobe_init() local 312 path = strndup_user(u64_to_user_ptr(p_event->attr.uprobe_path), in perf_uprobe_init() 314 if (IS_ERR(path)) { in perf_uprobe_init() 315 ret = PTR_ERR(path); in perf_uprobe_init() 318 if (path[0] == '\0') { in perf_uprobe_init() 323 tp_event = create_local_trace_uprobe(path, p_event->attr.probe_offset, in perf_uprobe_init() 341 kfree(path); in perf_uprobe_init()
|
D | trace_seq.c | 327 int trace_seq_path(struct trace_seq *s, const struct path *path) in trace_seq_path() argument 341 seq_buf_path(&s->seq, path, "\n"); in trace_seq_path()
|
D | Kconfig | 339 into the C conditionals to test which path a branch takes. 488 recursion or any unexpected execution path which leads to a kernel
|
/kernel/gcov/ |
D | fs.c | 303 static char *link_target(const char *dir, const char *path, const char *ext) in link_target() argument 309 copy = kstrdup(path, GFP_KERNEL); in link_target()
|
/kernel/sched/ |
D | debug.c | 421 static void task_group_path(struct task_group *tg, char *path, int plen) in task_group_path() argument 423 if (autogroup_path(tg, path, plen)) in task_group_path() 426 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
D | fair.c | 279 static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) in cfs_rq_tg_path() argument 281 if (!path) in cfs_rq_tg_path() 285 autogroup_path(cfs_rq->tg, path, len); in cfs_rq_tg_path() 287 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path() 289 strlcpy(path, "(null)", len); in cfs_rq_tg_path() 466 static inline void cfs_rq_tg_path(struct cfs_rq *cfs_rq, char *path, int len) in cfs_rq_tg_path() argument 468 if (path) in cfs_rq_tg_path() 469 strlcpy(path, "(null)", len); in cfs_rq_tg_path()
|
/kernel/events/ |
D | core.c | 6983 if (filter->path.dentry) { in perf_event_addr_filters_exec() 7370 struct path ns_path; in perf_fill_ns_link_info() 7659 if (!filter->path.dentry) in perf_addr_filter_match() 7662 if (d_inode(filter->path.dentry) != file_inode(file)) in perf_addr_filter_match() 9266 path_put(&filter->path); in free_filters_list() 9349 if (filter->path.dentry) { in perf_event_addr_filters_apply() 9550 &filter->path); in perf_event_parse_addr_filter() 9555 if (!filter->path.dentry || in perf_event_parse_addr_filter() 9556 !S_ISREG(d_inode(filter->path.dentry) in perf_event_parse_addr_filter()
|
/kernel/cgroup/ |
D | cgroup.c | 6416 struct cgroup *cgroup_get_from_path(const char *path) in cgroup_get_from_path() argument 6423 kn = kernfs_walk_and_get(cgrp_dfl_root.cgrp.kn, path); in cgroup_get_from_path()
|