Lines Matching defs:dent
1450 struct dentry *dent, *dir;
1472 dent = aafs_create_file("abi", S_IFREG | 0444, dir, rawdata,
1474 if (IS_ERR(dent))
1476 rawdata->dents[AAFS_LOADDATA_ABI] = dent;
1478 dent = aafs_create_file("revision", S_IFREG | 0444, dir, rawdata,
1480 if (IS_ERR(dent))
1482 rawdata->dents[AAFS_LOADDATA_REVISION] = dent;
1485 dent = aafs_create_file("sha256", S_IFREG | 0444, dir,
1487 if (IS_ERR(dent))
1489 rawdata->dents[AAFS_LOADDATA_HASH] = dent;
1492 dent = aafs_create_file("compressed_size", S_IFREG | 0444, dir,
1495 if (IS_ERR(dent))
1497 rawdata->dents[AAFS_LOADDATA_COMPRESSED_SIZE] = dent;
1499 dent = aafs_create_file("raw_data", S_IFREG | 0444,
1501 if (IS_ERR(dent))
1503 rawdata->dents[AAFS_LOADDATA_DATA] = dent;
1504 d_inode(dent)->i_size = rawdata->size;
1515 return PTR_ERR(dent);
1579 struct dentry *dent;
1581 dent = aafs_create_file(name, S_IFREG | 0444, dir, proxy, fops);
1582 if (IS_ERR(dent))
1585 return dent;
1693 struct dentry *dent = NULL, *dir;
1702 dent = prof_dir(p);
1703 if (!dent) {
1708 dent = aafs_create_dir("profiles", dent);
1709 if (IS_ERR(dent))
1711 prof_child_dir(p) = parent = dent;
1729 dent = aafs_create_dir(profile->dirname, parent);
1730 if (IS_ERR(dent))
1732 prof_dir(profile) = dir = dent;
1734 dent = create_profile_file(dir, "name", profile,
1736 if (IS_ERR(dent))
1738 profile->dents[AAFS_PROF_NAME] = dent;
1740 dent = create_profile_file(dir, "mode", profile,
1742 if (IS_ERR(dent))
1744 profile->dents[AAFS_PROF_MODE] = dent;
1746 dent = create_profile_file(dir, "attach", profile,
1748 if (IS_ERR(dent))
1750 profile->dents[AAFS_PROF_ATTACH] = dent;
1753 dent = create_profile_file(dir, "sha256", profile,
1755 if (IS_ERR(dent))
1757 profile->dents[AAFS_PROF_HASH] = dent;
1763 dent = aafs_create("raw_sha256", S_IFLNK | 0444, dir,
1766 if (IS_ERR(dent))
1769 profile->dents[AAFS_PROF_RAW_HASH] = dent;
1771 dent = aafs_create("raw_abi", S_IFLNK | 0444, dir,
1774 if (IS_ERR(dent))
1777 profile->dents[AAFS_PROF_RAW_ABI] = dent;
1779 dent = aafs_create("raw_data", S_IFLNK | 0444, dir,
1782 if (IS_ERR(dent))
1785 profile->dents[AAFS_PROF_RAW_DATA] = dent;
1798 error = PTR_ERR(dent);
1971 struct dentry *dent;
1976 dent = aafs_create_dir("profiles", dir);
1977 if (IS_ERR(dent))
1978 return PTR_ERR(dent);
1979 ns_subprofs_dir(ns) = dent;
1981 dent = aafs_create_dir("raw_data", dir);
1982 if (IS_ERR(dent))
1983 return PTR_ERR(dent);
1984 ns_subdata_dir(ns) = dent;
1986 dent = aafs_create_file("revision", 0444, dir, ns,
1988 if (IS_ERR(dent))
1989 return PTR_ERR(dent);
1991 ns_subrevision(ns) = dent;
1993 dent = aafs_create_file(".load", 0640, dir, ns,
1995 if (IS_ERR(dent))
1996 return PTR_ERR(dent);
1998 ns_subload(ns) = dent;
2000 dent = aafs_create_file(".replace", 0640, dir, ns,
2002 if (IS_ERR(dent))
2003 return PTR_ERR(dent);
2005 ns_subreplace(ns) = dent;
2007 dent = aafs_create_file(".remove", 0640, dir, ns,
2009 if (IS_ERR(dent))
2010 return PTR_ERR(dent);
2012 ns_subremove(ns) = dent;
2015 dent = aafs_create("namespaces", S_IFDIR | 0755, dir, ns, NULL, NULL,
2017 if (IS_ERR(dent))
2018 return PTR_ERR(dent);
2020 ns_subns_dir(ns) = dent;
2029 struct dentry *dent)
2043 if (!dent) {
2045 dent = aafs_create_dir(name, parent);
2046 if (IS_ERR(dent))
2049 dget(dent);
2050 ns_dir(ns) = dir = dent;
2074 error = PTR_ERR(dent);
2654 struct dentry *dent;
2676 dent = securityfs_create_file(".load", 0666, aa_sfs_entry.dentry,
2678 if (IS_ERR(dent))
2680 ns_subload(root_ns) = dent;
2682 dent = securityfs_create_file(".replace", 0666, aa_sfs_entry.dentry,
2684 if (IS_ERR(dent))
2686 ns_subreplace(root_ns) = dent;
2688 dent = securityfs_create_file(".remove", 0666, aa_sfs_entry.dentry,
2690 if (IS_ERR(dent))
2692 ns_subremove(root_ns) = dent;
2694 dent = securityfs_create_file("revision", 0444, aa_sfs_entry.dentry,
2696 if (IS_ERR(dent))
2698 ns_subrevision(root_ns) = dent;
2709 dent = securityfs_create_symlink("policy", aa_sfs_entry.dentry,
2711 if (IS_ERR(dent))
2725 error = PTR_ERR(dent);