Home
last modified time | relevance | path

Searched refs:new_dentry (Results 1 – 7 of 7) sorted by relevance

/security/tomoyo/
Dtomoyo.c259 struct dentry *new_dentry) in tomoyo_path_link() argument
262 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
280 struct dentry *new_dentry) in tomoyo_path_rename() argument
283 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
/security/
Dsecurity.c1057 struct dentry *new_dentry) in security_path_link() argument
1061 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); in security_path_link()
1065 const struct path *new_dir, struct dentry *new_dentry, in security_path_rename() argument
1069 (d_is_positive(new_dentry) && IS_PRIVATE(d_backing_inode(new_dentry))))) in security_path_rename()
1073 int err = call_int_hook(path_rename, 0, new_dir, new_dentry, in security_path_rename()
1080 new_dentry); in security_path_rename()
1121 struct dentry *new_dentry) in security_inode_link() argument
1125 return call_int_hook(inode_link, 0, old_dentry, dir, new_dentry); in security_inode_link()
1166 struct inode *new_dir, struct dentry *new_dentry, in security_inode_rename() argument
1170 (d_is_positive(new_dentry) && IS_PRIVATE(d_backing_inode(new_dentry))))) in security_inode_rename()
[all …]
/security/apparmor/include/
Dfile.h197 const struct path *new_dir, struct dentry *new_dentry);
/security/smack/
Dsmack_lsm.c1034 struct dentry *new_dentry) in smack_inode_link() argument
1047 if (rc == 0 && d_is_positive(new_dentry)) { in smack_inode_link()
1048 isp = smk_of_inode(d_backing_inode(new_dentry)); in smack_inode_link()
1049 smk_ad_setfield_u_fs_path_dentry(&ad, new_dentry); in smack_inode_link()
1051 rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_WRITE, rc); in smack_inode_link()
1140 struct dentry *new_dentry) in smack_inode_rename() argument
1153 if (rc == 0 && d_is_positive(new_dentry)) { in smack_inode_rename()
1154 isp = smk_of_inode(d_backing_inode(new_dentry)); in smack_inode_rename()
1155 smk_ad_setfield_u_fs_path_dentry(&ad, new_dentry); in smack_inode_rename()
1157 rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_READWRITE, rc); in smack_inode_rename()
/security/apparmor/
Dfile.c465 const struct path *new_dir, struct dentry *new_dentry) in aa_path_link() argument
467 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; in aa_path_link()
Dlsm.c327 struct dentry *new_dentry) in apparmor_path_link() argument
337 error = aa_path_link(label, old_dentry, new_dir, new_dentry); in apparmor_path_link()
344 const struct path *new_dir, struct dentry *new_dentry) in apparmor_path_rename() argument
357 .dentry = new_dentry }; in apparmor_path_rename()
/security/selinux/
Dhooks.c1909 struct dentry *new_dentry) in may_rename() argument
1944 ad.u.dentry = new_dentry; in may_rename()
1946 if (d_is_positive(new_dentry)) in may_rename()
1952 if (d_is_positive(new_dentry)) { in may_rename()
1953 new_isec = backing_inode_security(new_dentry); in may_rename()
1954 new_is_dir = d_is_dir(new_dentry); in may_rename()
2955 …tic int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in selinux_inode_link() argument
2986 struct inode *new_inode, struct dentry *new_dentry) in selinux_inode_rename() argument
2988 return may_rename(old_inode, old_dentry, new_inode, new_dentry); in selinux_inode_rename()