Home
last modified time | relevance | path

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

/linux-2.6.39/Documentation/ia64/
Daliasing-test.c68 char *name, *path2; in scan_tree() local
86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
87 strcpy(path2, path); in scan_tree()
88 strcat(path2, "/"); in scan_tree()
89 strcat(path2, name); in scan_tree()
92 rc = map_mem(path2, offset, length, touch); in scan_tree()
94 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
96 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
98 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
102 r = lstat(path2, &buf); in scan_tree()
[all …]
/linux-2.6.39/include/linux/
Dpath.h15 static inline int path_equal(const struct path *path1, const struct path *path2) in path_equal() argument
17 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; in path_equal()
/linux-2.6.39/security/tomoyo/
Dtomoyo.c162 struct path path2 = { new_dir->mnt, new_dentry }; in tomoyo_path_link() local
163 return tomoyo_path2_perm(TOMOYO_TYPE_LINK, &path1, &path2); in tomoyo_path_link()
172 struct path path2 = { new_parent->mnt, new_dentry }; in tomoyo_path_rename() local
173 return tomoyo_path2_perm(TOMOYO_TYPE_RENAME, &path1, &path2); in tomoyo_path_rename()
Dfile.c197 const char *operation = tomoyo_path2_keyword[r->param.path2.operation]; in tomoyo_audit_path2_log()
198 const struct tomoyo_path_info *filename1 = r->param.path2.filename1; in tomoyo_audit_path2_log()
199 const struct tomoyo_path_info *filename2 = r->param.path2.filename2; in tomoyo_audit_path2_log()
541 return (acl->perm & (1 << r->param.path2.operation)) && in tomoyo_check_path2_acl()
542 tomoyo_compare_name_union(r->param.path2.filename1, &acl->name1) in tomoyo_check_path2_acl()
543 && tomoyo_compare_name_union(r->param.path2.filename2, in tomoyo_check_path2_acl()
1079 struct path *path2) in tomoyo_path2_perm() argument
1087 if (!path1->mnt || !path2->mnt || in tomoyo_path2_perm()
1095 !tomoyo_get_realpath(&buf2, path2)) in tomoyo_path2_perm()
1111 r.param.path2.operation = operation; in tomoyo_path2_perm()
[all …]
Dcommon.h257 } path2; member
853 struct path *path2);
/linux-2.6.39/kernel/
Daudit_tree.c719 struct path path1, path2; in audit_tag_tree() local
723 err = kern_path(new, 0, &path2); in audit_tag_tree()
726 tagged = collect_mounts(&path2); in audit_tag_tree()
727 path_put(&path2); in audit_tag_tree()
751 err = kern_path(tree->pathname, 0, &path2); in audit_tag_tree()
753 good_one = path_is_under(&path1, &path2); in audit_tag_tree()
754 path_put(&path2); in audit_tag_tree()
/linux-2.6.39/fs/btrfs/
Drelocation.c654 struct btrfs_path *path2; local
674 path2 = btrfs_alloc_path();
675 if (!path1 || !path2) {
875 path2->search_commit_root = 1;
876 path2->skip_locking = 1;
877 path2->lowest_level = level;
878 ret = btrfs_search_slot(NULL, root, node_key, path2, 0, 0);
879 path2->lowest_level = 0;
884 if (ret > 0 && path2->slots[level] > 0)
885 path2->slots[level]--;
[all …]
/linux-2.6.39/fs/
Ddcache.c2867 int path_is_under(struct path *path1, struct path *path2) in path_is_under() argument
2874 if (mnt != path2->mnt) { in path_is_under()
2880 if (mnt->mnt_parent == path2->mnt) in path_is_under()
2886 res = is_subdir(dentry, path2->dentry); in path_is_under()
/linux-2.6.39/fs/ceph/
Dmds_client.c1590 const char *path2 = NULL; in create_request_message() local
1609 &path2, &pathlen2, &ino2, &freepath2); in create_request_message()
1646 ceph_encode_filepath(&p, end, ino2, path2); in create_request_message()
1680 kfree((char *)path2); in create_request_message()