| /security/integrity/evm/ |
| A D | evm_main.c | 131 static int evm_find_protected_xattrs(struct dentry *dentry) in evm_find_protected_xattrs() argument 154 static int is_unsupported_hmac_fs(struct dentry *dentry) in is_unsupported_hmac_fs() argument 358 rc = __vfs_getxattr(dentry, d_backing_inode(dentry), in evm_read_protected_xattrs() 462 struct dentry *dentry, const char *xattr_name, in evm_xattr_change() argument 498 struct dentry *dentry, const char *xattr_name, in evm_protect_xattr() argument 540 dentry->d_inode, dentry->d_name.name, in evm_protect_xattr() 633 struct dentry *dentry, const char *name, in evm_inode_set_acl_change() argument 652 struct dentry *dentry, in evm_inode_set_acl_change() argument 879 struct dentry *dentry, in evm_inode_post_remove_acl() argument 886 struct dentry *dentry, struct iattr *attr) in evm_attr_change() argument [all …]
|
| A D | evm_crypto.c | 220 static int evm_calc_hmac_or_hash(struct dentry *dentry, in evm_calc_hmac_or_hash() argument 287 dentry->d_name.name, xattr->name, size, in evm_calc_hmac_or_hash() 299 if (inode != d_backing_inode(dentry) && iint) { in evm_calc_hmac_or_hash() 315 int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name, in evm_calc_hmac() argument 324 int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name, in evm_calc_hash() argument 332 static int evm_is_immutable(struct dentry *dentry, struct inode *inode) in evm_is_immutable() argument 366 int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, in evm_update_evmxattr() argument 369 struct inode *inode = d_backing_inode(dentry); in evm_update_evmxattr() 378 rc = evm_is_immutable(dentry, inode); in evm_update_evmxattr() 385 rc = evm_calc_hmac(dentry, xattr_name, xattr_value, in evm_update_evmxattr() [all …]
|
| A D | evm.h | 72 int evm_update_evmxattr(struct dentry *dentry, 76 int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name, 80 int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name,
|
| A D | evm_secfs.c | 19 static struct dentry *evm_dir; 20 static struct dentry *evm_symlink; 23 static struct dentry *evm_xattrs; 303 struct dentry *dentry; in evm_init_secfs() local 309 dentry = securityfs_create_file("evm", 0660, in evm_init_secfs() 311 if (IS_ERR(dentry)) { in evm_init_secfs()
|
| /security/ |
| A D | inode.c | 112 struct dentry *dentry; in securityfs_create_dentry() local 134 if (IS_ERR(dentry)) in securityfs_create_dentry() 165 return dentry; in securityfs_create_dentry() 168 dput(dentry); in securityfs_create_dentry() 169 dentry = ERR_PTR(error); in securityfs_create_dentry() 174 return dentry; in securityfs_create_dentry() 230 struct dentry *securityfs_create_dir(const char *name, struct dentry *parent) in securityfs_create_dir() 263 struct dentry *parent, in securityfs_create_symlink() 267 struct dentry *dent; in securityfs_create_symlink() 306 void securityfs_remove(struct dentry *dentry) in securityfs_remove() argument [all …]
|
| A D | security.c | 1169 int security_quota_on(struct dentry *dentry) in security_quota_on() argument 1545 int security_sb_statfs(struct dentry *dentry) in security_sb_statfs() argument 2280 int security_inode_readlink(struct dentry *dentry) in security_inode_readlink() argument 2341 struct dentry *dentry, struct iattr *attr) in security_inode_setattr() argument 2407 struct dentry *dentry, const char *name, in security_inode_setxattr() argument 2439 struct dentry *dentry, const char *acl_name, in security_inode_set_acl() argument 2476 struct dentry *dentry, const char *acl_name) in security_inode_get_acl() argument 2512 struct dentry *dentry, const char *acl_name) in security_inode_post_remove_acl() argument 2563 int security_inode_listxattr(struct dentry *dentry) in security_inode_listxattr() argument 2594 struct dentry *dentry, const char *name) in security_inode_removexattr() argument [all …]
|
| A D | commoncap.c | 326 int cap_inode_need_killpriv(struct dentry *dentry) in cap_inode_need_killpriv() argument 351 int cap_inode_killpriv(struct mnt_idmap *idmap, struct dentry *dentry) in cap_inode_killpriv() argument 422 struct dentry *dentry; in cap_inode_getsecurity() local 428 dentry = d_find_any_alias(inode); in cap_inode_getsecurity() 429 if (!dentry) in cap_inode_getsecurity() 433 dput(dentry); in cap_inode_getsecurity() 559 int cap_convert_nscap(struct mnt_idmap *idmap, struct dentry *dentry, in cap_convert_nscap() argument 666 const struct dentry *dentry, in get_vfs_caps_from_disk() argument 684 size = __vfs_getxattr((struct dentry *)dentry, inode, in get_vfs_caps_from_disk() 1015 int cap_inode_setxattr(struct dentry *dentry, const char *name, in cap_inode_setxattr() argument [all …]
|
| A D | lsm_audit.c | 201 inode = d_backing_inode(a->u.path.dentry); in audit_log_lsm_data() 227 inode = a->u.op->path.dentry->d_inode; in audit_log_lsm_data() 241 spin_lock(&a->u.dentry->d_lock); in audit_log_lsm_data() 243 spin_unlock(&a->u.dentry->d_lock); in audit_log_lsm_data() 245 inode = d_backing_inode(a->u.dentry); in audit_log_lsm_data() 254 struct dentry *dentry; in audit_log_lsm_data() local 259 dentry = d_find_alias_rcu(inode); in audit_log_lsm_data() 260 if (dentry) { in audit_log_lsm_data() 262 spin_lock(&dentry->d_lock); in audit_log_lsm_data() 264 spin_unlock(&dentry->d_lock); in audit_log_lsm_data() [all …]
|
| /security/tomoyo/ |
| A D | realpath.c | 125 static char *tomoyo_get_dentry_path(struct dentry *dentry, char * const buffer, in tomoyo_get_dentry_path() argument 131 pos = dentry_path_raw(dentry, buffer, buflen - 1); in tomoyo_get_dentry_path() 133 struct inode *inode = d_backing_inode(dentry); in tomoyo_get_dentry_path() 153 static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer, in tomoyo_get_local_path() argument 156 struct super_block *sb = dentry->d_sb; in tomoyo_get_local_path() 242 struct dentry *dentry = path->dentry; in tomoyo_realpath_from_path() local 243 struct super_block *sb = dentry->d_sb; in tomoyo_realpath_from_path() 257 if (dentry->d_op && dentry->d_op->d_dname) { in tomoyo_realpath_from_path() 258 pos = dentry->d_op->d_dname(dentry, buf, buf_len - 1); in tomoyo_realpath_from_path() 267 pos = tomoyo_get_local_path(path->dentry, buf, in tomoyo_realpath_from_path() [all …]
|
| A D | tomoyo.c | 158 static int tomoyo_path_unlink(const struct path *parent, struct dentry *dentry) in tomoyo_path_unlink() argument 160 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_unlink() 174 static int tomoyo_path_mkdir(const struct path *parent, struct dentry *dentry, in tomoyo_path_mkdir() argument 177 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mkdir() 191 static int tomoyo_path_rmdir(const struct path *parent, struct dentry *dentry) in tomoyo_path_rmdir() argument 193 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_rmdir() 207 static int tomoyo_path_symlink(const struct path *parent, struct dentry *dentry, in tomoyo_path_symlink() argument 210 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_symlink() 225 static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry, in tomoyo_path_mknod() argument 228 struct path path = { .mnt = parent->mnt, .dentry = dentry }; in tomoyo_path_mknod() [all …]
|
| A D | file.c | 713 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_number_perm() 761 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_check_open_permission() 807 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_path_perm() 864 .path1 = { .mnt = path->mnt, .dentry = path->dentry }, in tomoyo_mkdev_perm() 911 .path1 = { .mnt = path1->mnt, .dentry = path1->dentry }, in tomoyo_path2_perm() 912 .path2 = { .mnt = path2->mnt, .dentry = path2->dentry } in tomoyo_path2_perm() 928 if (!d_is_dir(path1->dentry)) in tomoyo_path2_perm()
|
| /security/integrity/ima/ |
| A D | ima_appraise.c | 88 static int ima_fix_xattr(struct dentry *dentry, struct ima_iint_cache *iint) in ima_fix_xattr() argument 225 int ima_read_xattr(struct dentry *dentry, in ima_read_xattr() argument 500 struct dentry *dentry = file_dentry(file); in ima_appraise_measurement() local 630 struct dentry *dentry = file_dentry(file); in ima_update_xattr() local 662 struct dentry *dentry, int ia_valid) in ima_inode_post_setattr() argument 686 static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name, in ima_protect_xattr() argument 728 static int validate_hash_algo(struct dentry *dentry, in validate_hash_algo() argument 775 static int ima_inode_setxattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_setxattr() argument 806 static int ima_inode_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_set_acl() argument 815 static int ima_inode_removexattr(struct mnt_idmap *idmap, struct dentry *dentry, in ima_inode_removexattr() argument [all …]
|
| A D | ima_fs.c | 405 struct dentry *dentry; in create_securityfs_measurement_lists() local 412 if (IS_ERR(dentry)) in create_securityfs_measurement_lists() 420 if (IS_ERR(dentry)) in create_securityfs_measurement_lists() 499 struct dentry *dentry; in ima_fs_init() local 519 if (IS_ERR(dentry)) { in ima_fs_init() 520 ret = PTR_ERR(dentry); in ima_fs_init() 526 if (IS_ERR(dentry)) { in ima_fs_init() 527 ret = PTR_ERR(dentry); in ima_fs_init() 534 if (IS_ERR(dentry)) { in ima_fs_init() 541 if (IS_ERR(dentry)) { in ima_fs_init() [all …]
|
| /security/ipe/ |
| A D | fs.c | 15 static struct dentry *root __ro_after_init; 16 struct dentry *policy_root __ro_after_init; 200 struct dentry *dentry; in ipe_init_securityfs() local 209 dentry = securityfs_create_file("success_audit", 0600, root, in ipe_init_securityfs() 211 if (IS_ERR(dentry)) { in ipe_init_securityfs() 212 rc = PTR_ERR(dentry); in ipe_init_securityfs() 216 dentry = securityfs_create_file("enforce", 0600, root, NULL, in ipe_init_securityfs() 218 if (IS_ERR(dentry)) { in ipe_init_securityfs() 219 rc = PTR_ERR(dentry); in ipe_init_securityfs() 237 if (IS_ERR(dentry)) { in ipe_init_securityfs() [all …]
|
| A D | policy_fs.c | 54 root = d_inode(f->f_path.dentry->d_parent); in read_pkcs7() 97 root = d_inode(f->f_path.dentry->d_parent); in read_policy() 134 root = d_inode(f->f_path.dentry->d_parent); in read_name() 174 root = d_inode(f->f_path.dentry->d_parent); in read_version() 226 root = d_inode(f->f_path.dentry->d_parent); in setactive() 264 root = d_inode(f->f_path.dentry->d_parent); in getactive() 317 root = d_inode(f->f_path.dentry->d_parent); in update_policy() 366 root = d_inode(f->f_path.dentry->d_parent); in delete_policy() 455 struct dentry *policyfs = NULL; in ipe_new_policyfs_node() 457 struct dentry *d = NULL; in ipe_new_policyfs_node()
|
| /security/selinux/ |
| A D | selinuxfs.c | 1370 struct dentry *dentry; in sel_make_bools() local 1603 struct dentry *dentry; in sel_make_avc_files() local 1634 struct dentry *dentry; in sel_make_ss_files() local 1682 struct dentry *dentry; in sel_make_initcon_files() local 1786 struct dentry *dentry; in sel_make_perm_files() local 1819 struct dentry *dentry = NULL; in sel_make_class_dir_entries() local 1823 if (!dentry) in sel_make_class_dir_entries() 1885 struct dentry *dentry = NULL; in sel_make_policycap() local 1915 struct dentry *dentry = d_alloc_name(dir, name); in sel_make_dir() local 1918 if (!dentry) in sel_make_dir() [all …]
|
| A D | hooks.c | 279 struct dentry *dentry, in __inode_security_revalidate() argument 1425 struct dentry *dentry; in inode_doinit_with_dentry() local 1688 struct dentry *dentry, in dentry_has_perm() argument 1696 ad.u.dentry = dentry; in dentry_has_perm() 1813 struct dentry *dentry, in may_create() argument 1829 ad.u.dentry = dentry; in may_create() 1857 struct dentry *dentry, in may_link() argument 1871 ad.u.dentry = dentry; in may_link() 2075 struct dentry *dentry = file->f_path.dentry; in selinux_binder_transfer_file() local 3080 ad.u.dentry = dentry; in selinux_inode_follow_link() [all …]
|
| /security/landlock/ |
| A D | fs.c | 365 const struct dentry *const dentry) in find_rule() argument 390 static bool is_nouser_or_private(const struct dentry *dentry) in is_nouser_or_private() argument 1034 const struct dentry *const mnt_root, struct dentry *dir, in collect_domain_accesses() 1230 request2.audit.u.path.dentry = new_dir->dentry; in current_check_refer_path() 1392 struct dentry *const dentry) in log_fs_change_topology_dentry() argument 1398 .u.dentry = dentry, in log_fs_change_topology_dentry() 1530 struct dentry *const dentry, const umode_t mode) in hook_path_mkdir() argument 1536 struct dentry *const dentry, const umode_t mode, in hook_path_mknod() argument 1543 struct dentry *const dentry, in hook_path_symlink() argument 1550 struct dentry *const dentry) in hook_path_unlink() argument [all …]
|
| /security/apparmor/ |
| A D | apparmorfs.c | 243 dget(dentry); in __aafs_setup_d_inode() 269 struct dentry *dentry; in aafs_create() local 302 return dentry; in aafs_create() 305 dput(dentry); in aafs_create() 351 static void aafs_remove(struct dentry *dentry) in aafs_remove() argument 355 if (!dentry || IS_ERR(dentry)) in aafs_remove() 366 dput(dentry); in aafs_remove() 1637 if (!dentry) in rawdata_get_link_base() 1807 struct dentry *dentry, umode_t mode) in ns_mkdir_op() argument 2562 struct dentry *dentry; in aa_mk_null_file() local [all …]
|
| A D | path.c | 99 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path() 105 if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && in d_namespace_path() 140 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path() 160 if (d_unlinked(path->dentry) && d_is_positive(path->dentry) && in d_namespace_path()
|
| A D | lsm.c | 268 struct dentry *dentry, u32 mask, in common_perm_dir_dentry() argument 271 struct path path = { .mnt = dir->mnt, .dentry = dentry }; in common_perm_dir_dentry() 286 struct dentry *dentry, u32 mask) in common_perm_rm() argument 313 struct dentry *dentry, u32 mask, umode_t mode) in common_perm_create() argument 323 static int apparmor_path_unlink(const struct path *dir, struct dentry *dentry) in apparmor_path_unlink() argument 328 static int apparmor_path_mkdir(const struct path *dir, struct dentry *dentry, in apparmor_path_mkdir() argument 335 static int apparmor_path_rmdir(const struct path *dir, struct dentry *dentry) in apparmor_path_rmdir() argument 340 static int apparmor_path_mknod(const struct path *dir, struct dentry *dentry, in apparmor_path_mknod() argument 356 static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry, in apparmor_path_symlink() argument 398 .dentry = old_dentry }; in apparmor_path_rename() [all …]
|
| /security/apparmor/include/ |
| A D | apparmorfs.h | 28 struct dentry *dentry; member 111 int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent); 113 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, 114 struct dentry *dent);
|
| /security/smack/ |
| A D | smack_lsm.c | 276 struct dentry *dp) in smk_fetch() 877 static int smack_sb_statfs(struct dentry *dentry) in smack_sb_statfs() argument 1087 static int smack_inode_unlink(struct inode *dir, struct dentry *dentry) in smack_inode_unlink() argument 1121 static int smack_inode_rmdir(struct inode *dir, struct dentry *dentry) in smack_inode_rmdir() argument 1309 struct dentry *dentry, const char *name, in smack_inode_setxattr() argument 1409 static int smack_inode_getxattr(struct dentry *dentry, const char *name) in smack_inode_getxattr() argument 1433 struct dentry *dentry, const char *name) in smack_inode_removexattr() argument 1491 struct dentry *dentry, const char *acl_name, in smack_inode_set_acl() argument 1514 struct dentry *dentry, const char *acl_name) in smack_inode_get_acl() argument 1536 struct dentry *dentry, const char *acl_name) in smack_inode_remove_acl() argument [all …]
|
| /security/lockdown/ |
| A D | lockdown.c | 157 struct dentry *dentry; in lockdown_secfs_init() local 159 dentry = securityfs_create_file("lockdown", 0644, NULL, NULL, in lockdown_secfs_init() 161 return PTR_ERR_OR_ZERO(dentry); in lockdown_secfs_init()
|
| /security/loadpin/ |
| A D | loadpin.c | 417 struct dentry *loadpin_dir, *dentry; in init_loadpin_securityfs() local 426 dentry = securityfs_create_file("dm-verity", 0600, loadpin_dir, in init_loadpin_securityfs() 428 if (IS_ERR(dentry)) { in init_loadpin_securityfs() 430 PTR_ERR(dentry)); in init_loadpin_securityfs() 431 return PTR_ERR(dentry); in init_loadpin_securityfs()
|