• Home
  • Raw
  • Download

Lines Matching refs:name

75 static int mangle_name(const char *name, char *target)  in mangle_name()  argument
79 while (*name == '/' || *name == '.') in mangle_name()
80 name++; in mangle_name()
83 for (; *name; name++) { in mangle_name()
84 if (*name == '/') in mangle_name()
86 else if (isspace(*name)) in mangle_name()
88 else if (isalnum(*name) || strchr("._-", *name)) in mangle_name()
89 *(t)++ = *name; in mangle_name()
95 for (; *name; name++) { in mangle_name()
96 if (isalnum(*name) || isspace(*name) || in mangle_name()
97 strchr("/._-", *name)) in mangle_name()
166 .name = AAFS_NAME,
231 static struct dentry *aafs_create(const char *name, umode_t mode, in aafs_create() argument
240 AA_BUG(!name); in aafs_create()
253 dentry = lookup_one_len(name, parent, strlen(name)); in aafs_create()
292 static struct dentry *aafs_create_file(const char *name, umode_t mode, in aafs_create_file() argument
296 return aafs_create(name, mode, parent, data, NULL, fops, NULL); in aafs_create_file()
307 static struct dentry *aafs_create_dir(const char *name, struct dentry *parent) in aafs_create_dir() argument
309 return aafs_create(name, S_IFDIR | 0755, parent, NULL, NULL, NULL, in aafs_create_dir()
324 static struct dentry *aafs_create_symlink(const char *name, in aafs_create_symlink() argument
337 dent = aafs_create(name, S_IFLNK | 0444, parent, private, link, NULL, in aafs_create_symlink()
1070 seq_printf(seq, "%s\n", profile->base.name); in seq_profile_name_show()
1097 seq_printf(seq, "%s\n", profile->base.name); in seq_profile_attach_show()
1120 SEQ_PROFILE_FOPS(name);
1193 seq_printf(seq, "%s\n", labels_ns(label)->base.name); in seq_ns_name_show()
1202 SEQ_NS_FOPS(name);
1361 rawdata->name = kasprintf(GFP_KERNEL, "%ld", ns->revision); in __aa_fs_create_rawdata()
1362 if (!rawdata->name) in __aa_fs_create_rawdata()
1365 dir = aafs_create_dir(rawdata->name, ns_subdata_dir(ns)); in __aa_fs_create_rawdata()
1460 static struct dentry *create_profile_file(struct dentry *dir, const char *name, in create_profile_file() argument
1467 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops); in create_profile_file()
1519 const char *name) in rawdata_get_link_base() argument
1533 target = gen_symlink_name(depth, profile->rawdata->name, name); in rawdata_get_link_base()
1602 len = mangle_name(profile->base.name, NULL); in __aafs_profile_mkdir()
1611 mangle_name(profile->base.name, profile->dirname); in __aafs_profile_mkdir()
1720 ns = __aa_find_or_create_ns(parent, READ_ONCE(dentry->d_name.name), in ns_mkdir_op()
1760 ns = aa_get_ns(__aa_findn_ns(&parent->sub_ns, dentry->d_name.name, in ns_rmdir_op()
1908 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, in __aafs_ns_mkdir() argument
1920 if (!name) in __aafs_ns_mkdir()
1921 name = ns->base.name; in __aafs_ns_mkdir()
1925 dent = aafs_create_dir(name, parent); in __aafs_ns_mkdir()
2315 fs_file->dentry = securityfs_create_file(fs_file->name, in entry_create_file()
2341 dir = securityfs_create_dir(fs_dir->name, parent); in entry_create_dir()
2346 for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { in entry_create_dir()
2384 for (fs_file = fs_dir->v.files; fs_file && fs_file->name; ++fs_file) { in entry_remove_dir()
2473 char name[32]; in policy_readlink() local
2476 res = snprintf(name, sizeof(name), "%s:[%lu]", AAFS_NAME, in policy_readlink()
2478 if (res > 0 && res < sizeof(name)) in policy_readlink()
2479 res = readlink_copy(buffer, buflen, name); in policy_readlink()