• Home
  • Raw
  • Download

Lines Matching refs: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,
1073 return call_int_hook(dentry_init_security, -EOPNOTSUPP, dentry, mode,
1078 int security_dentry_create_files_as(struct dentry *dentry, int mode,
1082 return call_int_hook(dentry_create_files_as, 0, dentry, mode,
1142 int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode,
1145 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1147 return call_int_hook(path_mknod, 0, dir, dentry, mode, dev);
1151 int security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode)
1153 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1155 return call_int_hook(path_mkdir, 0, dir, dentry, mode);
1159 int security_path_rmdir(const struct path *dir, struct dentry *dentry)
1161 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1163 return call_int_hook(path_rmdir, 0, dir, dentry);
1166 int security_path_unlink(const struct path *dir, struct dentry *dentry)
1168 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1170 return call_int_hook(path_unlink, 0, dir, dentry);
1174 int security_path_symlink(const struct path *dir, struct dentry *dentry,
1177 if (unlikely(IS_PRIVATE(d_backing_inode(dir->dentry))))
1179 return call_int_hook(path_symlink, 0, dir, dentry, old_name);
1182 int security_path_link(struct dentry *old_dentry, const struct path *new_dir,
1183 struct dentry *new_dentry)
1190 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
1191 const struct path *new_dir, struct dentry *new_dentry,
1212 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1219 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1226 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1237 int security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)
1241 return call_int_hook(inode_create, 0, dir, dentry, mode);
1245 int security_inode_link(struct dentry *old_dentry, struct inode *dir,
1246 struct dentry *new_dentry)
1253 int security_inode_unlink(struct inode *dir, struct dentry *dentry)
1255 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1257 return call_int_hook(inode_unlink, 0, dir, dentry);
1260 int security_inode_symlink(struct inode *dir, struct dentry *dentry,
1265 return call_int_hook(inode_symlink, 0, dir, dentry, old_name);
1268 int security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
1272 return call_int_hook(inode_mkdir, 0, dir, dentry, mode);
1276 int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
1278 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1280 return call_int_hook(inode_rmdir, 0, dir, dentry);
1283 int security_inode_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
1287 return call_int_hook(inode_mknod, 0, dir, dentry, mode, dev);
1290 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry,
1291 struct inode *new_dir, struct dentry *new_dentry,
1309 int security_inode_readlink(struct dentry *dentry)
1311 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1313 return call_int_hook(inode_readlink, 0, dentry);
1316 int security_inode_follow_link(struct dentry *dentry, struct inode *inode,
1321 return call_int_hook(inode_follow_link, 0, dentry, inode, rcu);
1331 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
1335 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1337 ret = call_int_hook(inode_setattr, 0, dentry, attr);
1340 return evm_inode_setattr(dentry, attr);
1346 if (unlikely(IS_PRIVATE(d_backing_inode(path->dentry))))
1352 struct dentry *dentry, const char *name,
1357 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1363 ret = call_int_hook(inode_setxattr, 1, mnt_userns, dentry, name, value,
1367 ret = cap_inode_setxattr(dentry, name, value, size, flags);
1370 ret = ima_inode_setxattr(dentry, name, value, size);
1373 return evm_inode_setxattr(mnt_userns, dentry, name, value, size);
1376 void security_inode_post_setxattr(struct dentry *dentry, const char *name,
1379 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1381 call_void_hook(inode_post_setxattr, dentry, name, value, size, flags);
1382 evm_inode_post_setxattr(dentry, name, value, size);
1385 int security_inode_getxattr(struct dentry *dentry, const char *name)
1387 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1389 return call_int_hook(inode_getxattr, 0, dentry, name);
1392 int security_inode_listxattr(struct dentry *dentry)
1394 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1396 return call_int_hook(inode_listxattr, 0, dentry);
1400 struct dentry *dentry, const char *name)
1404 if (unlikely(IS_PRIVATE(d_backing_inode(dentry))))
1410 ret = call_int_hook(inode_removexattr, 1, mnt_userns, dentry, name);
1412 ret = cap_inode_removexattr(mnt_userns, dentry, name);
1415 ret = ima_inode_removexattr(dentry, name);
1418 return evm_inode_removexattr(mnt_userns, dentry, name);
1421 int security_inode_need_killpriv(struct dentry *dentry)
1423 return call_int_hook(inode_need_killpriv, 0, dentry);
1427 struct dentry *dentry)
1429 return call_int_hook(inode_killpriv, 0, mnt_userns, dentry);
1484 int security_inode_copy_up(struct dentry *src, struct cred **new)
2069 void security_d_instantiate(struct dentry *dentry, struct inode *inode)
2073 call_void_hook(d_instantiate, dentry, inode);
2158 int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
2160 return call_int_hook(inode_setsecctx, 0, dentry, ctx, ctxlen);