• Home
  • Raw
  • Download

Lines Matching defs:dentry

816 int security_quota_on(struct dentry *dentry)
818 return call_int_hook(quota_on, 0, dentry);
970 int security_sb_statfs(struct dentry *dentry)
972 return call_int_hook(sb_statfs, 0, dentry);
1069 int security_dentry_init_security(struct dentry *dentry, int mode,
1074 return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode,
1079 int security_dentry_create_files_as(struct dentry *dentry, int mode,
1083 return call_int_hook(dentry_create_files_as, 0, dentry, mode,
1143 int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
1146 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1148 return call_int_hook(path_mknod, 0, dir, dentry, mode, dev);
1152 int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode)
1154 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1156 return call_int_hook(path_mkdir, 0, dir, dentry, mode);
1160 int security_path_rmdir(const struct path *dir, struct dentry *dentry)
1162 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1164 return call_int_hook(path_rmdir, 0, dir, dentry);
1167 int security_path_unlink(const struct path *dir, struct dentry *dentry)
1169 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1171 return call_int_hook(path_unlink, 0, dir, dentry);
1175 int security_path_symlink(const struct path *dir, struct dentry *dentry,
1178 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1180 return call_int_hook(path_symlink, 0, dir, dentry, old_name);
1183 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
1184 struct dentry *new_dentry)
1191 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1192 const struct path *new_dir, struct dentry *new_dentry,
1213 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1220 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1227 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1238 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)
1242 return call_int_hook(inode_create, 0, dir, dentry, mode);
1246 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
1247 struct dentry *new_dentry)
1254 int security_inode_unlink(struct inode *dir, struct dentry *dentry)
1256 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1258 return call_int_hook(inode_unlink, 0, dir, dentry);
1261 int security_inode_symlink(struct inode *dir, struct dentry *dentry,
1266 return call_int_hook(inode_symlink, 0, dir, dentry, old_name);
1269 int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
1273 return call_int_hook(inode_mkdir, 0, dir, dentry, mode);
1277 int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
1279 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1281 return call_int_hook(inode_rmdir, 0, dir, dentry);
1284 int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
1288 return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev);
1291 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
1292 struct inode *new_dir, struct dentry *new_dentry,
1310 int security_inode_readlink(struct dentry *dentry)
1312 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1314 return call_int_hook(inode_readlink, 0, dentry);
1317 int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
1322 return call_int_hook(inode_follow_link, 0, dentry, inode, rcu);
1332 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
1336 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1338 ret = call_int_hook(inode_setattr, 0, dentry, attr);
1341 return evm_inode_setattr(dentry, attr);
1347 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1353 struct dentry *dentry, const char *name,
1358 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1364 ret = call_int_hook(inode_setxattr, 1, mnt_userns, dentry, name, value,
1368 ret = cap_inode_setxattr(dentry, name, value, size, flags);
1371 ret = ima_inode_setxattr(dentry, name, value, size);
1374 return evm_inode_setxattr(mnt_userns, dentry, name, value, size);
1377 void security_inode_post_setxattr(struct dentry *dentry, const char *name,
1380 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1382 call_void_hook(inode_post_setxattr, dentry, name, value, size, flags);
1383 evm_inode_post_setxattr(dentry, name, value, size);
1386 int security_inode_getxattr(struct dentry *dentry, const char *name)
1388 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1390 return call_int_hook(inode_getxattr, 0, dentry, name);
1393 int security_inode_listxattr(struct dentry *dentry)
1395 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1397 return call_int_hook(inode_listxattr, 0, dentry);
1401 struct dentry *dentry, const char *name)
1405 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1411 ret = call_int_hook(inode_removexattr, 1, mnt_userns, dentry, name);
1413 ret = cap_inode_removexattr(mnt_userns, dentry, name);
1416 ret = ima_inode_removexattr(dentry, name);
1419 return evm_inode_removexattr(mnt_userns, dentry, name);
1422 int security_inode_need_killpriv(struct dentry *dentry)
1424 return call_int_hook(inode_need_killpriv, 0, dentry);
1428 struct dentry *dentry)
1430 return call_int_hook(inode_killpriv, 0, mnt_userns, dentry);
1485 int security_inode_copy_up(struct dentry *src, struct cred **new)
2070 void security_d_instantiate(struct dentry *dentry, struct inode *inode)
2074 call_void_hook(d_instantiate, dentry, inode);
2159 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
2161 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen);