• Home
  • Raw
  • Download

Lines Matching defs:dentry

737 int security_quota_on(struct dentry *dentry)
739 return call_int_hook(quota_on, 0, dentry);
852 int security_sb_statfs(struct dentry *dentry)
854 return call_int_hook(sb_statfs, 0, dentry);
951 int security_dentry_init_security(struct dentry *dentry, int mode,
955 return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode,
960 int security_dentry_create_files_as(struct dentry *dentry, int mode,
964 return call_int_hook(dentry_create_files_as, 0, dentry, mode,
1016 int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
1019 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1021 return call_int_hook(path_mknod, 0, dir, dentry, mode, dev);
1025 int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode)
1027 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1029 return call_int_hook(path_mkdir, 0, dir, dentry, mode);
1033 int security_path_rmdir(const struct path *dir, struct dentry *dentry)
1035 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1037 return call_int_hook(path_rmdir, 0, dir, dentry);
1040 int security_path_unlink(const struct path *dir, struct dentry *dentry)
1042 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1044 return call_int_hook(path_unlink, 0, dir, dentry);
1048 int security_path_symlink(const struct path *dir, struct dentry *dentry,
1051 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1053 return call_int_hook(path_symlink, 0, dir, dentry, old_name);
1056 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
1057 struct dentry *new_dentry)
1064 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1065 const struct path *new_dir, struct dentry *new_dentry,
1086 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1093 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1100 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1112 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)
1116 return call_int_hook(inode_create, 0, dir, dentry, mode);
1120 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
1121 struct dentry *new_dentry)
1128 int security_inode_unlink(struct inode *dir, struct dentry *dentry)
1130 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1132 return call_int_hook(inode_unlink, 0, dir, dentry);
1135 int security_inode_symlink(struct inode *dir, struct dentry *dentry,
1140 return call_int_hook(inode_symlink, 0, dir, dentry, old_name);
1143 int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
1147 return call_int_hook(inode_mkdir, 0, dir, dentry, mode);
1151 int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
1153 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1155 return call_int_hook(inode_rmdir, 0, dir, dentry);
1158 int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
1162 return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev);
1165 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
1166 struct inode *new_dir, struct dentry *new_dentry,
1184 int security_inode_readlink(struct dentry *dentry)
1186 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1188 return call_int_hook(inode_readlink, 0, dentry);
1191 int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
1196 return call_int_hook(inode_follow_link, 0, dentry, inode, rcu);
1206 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
1210 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1212 ret = call_int_hook(inode_setattr, 0, dentry, attr);
1215 return evm_inode_setattr(dentry, attr);
1221 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1226 int security_inode_setxattr(struct dentry *dentry, const char *name,
1231 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1237 ret = call_int_hook(inode_setxattr, 1, dentry, name, value, size,
1241 ret = cap_inode_setxattr(dentry, name, value, size, flags);
1244 ret = ima_inode_setxattr(dentry, name, value, size);
1247 return evm_inode_setxattr(dentry, name, value, size);
1250 void security_inode_post_setxattr(struct dentry *dentry, const char *name,
1253 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1255 call_void_hook(inode_post_setxattr, dentry, name, value, size, flags);
1256 evm_inode_post_setxattr(dentry, name, value, size);
1259 int security_inode_getxattr(struct dentry *dentry, const char *name)
1261 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1263 return call_int_hook(inode_getxattr, 0, dentry, name);
1266 int security_inode_listxattr(struct dentry *dentry)
1268 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1270 return call_int_hook(inode_listxattr, 0, dentry);
1273 int security_inode_removexattr(struct dentry *dentry, const char *name)
1277 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1283 ret = call_int_hook(inode_removexattr, 1, dentry, name);
1285 ret = cap_inode_removexattr(dentry, name);
1288 ret = ima_inode_removexattr(dentry, name);
1291 return evm_inode_removexattr(dentry, name);
1294 int security_inode_need_killpriv(struct dentry *dentry)
1296 return call_int_hook(inode_need_killpriv, 0, dentry);
1299 int security_inode_killpriv(struct dentry *dentry)
1301 return call_int_hook(inode_killpriv, 0, dentry);
1354 int security_inode_copy_up(struct dentry *src, struct cred **new)
1871 void security_d_instantiate(struct dentry *dentry, struct inode *inode)
1875 call_void_hook(d_instantiate, dentry, inode);
1948 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
1950 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen);