Home
last modified time | relevance | path

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

/security/tomoyo/
Dtomoyo.c252 struct dentry *new_dentry) in tomoyo_path_link() argument
255 struct path path2 = { .mnt = new_dir->mnt, .dentry = new_dentry }; in tomoyo_path_link()
273 struct dentry *new_dentry) in tomoyo_path_rename() argument
276 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
/security/
Dsecurity.c1184 struct dentry *new_dentry) in security_path_link() argument
1188 return call_int_hook(path_link, 0, old_dentry, new_dir, new_dentry); in security_path_link()
1192 const struct path *new_dir, struct dentry *new_dentry, in security_path_rename() argument
1196 (d_is_positive(new_dentry) && IS_PRIVATE(d_backing_inode(new_dentry))))) in security_path_rename()
1200 int err = call_int_hook(path_rename, 0, new_dir, new_dentry, in security_path_rename()
1207 new_dentry); in security_path_rename()
1247 struct dentry *new_dentry) in security_inode_link() argument
1251 return call_int_hook(inode_link, 0, old_dentry, dir, new_dentry); in security_inode_link()
1292 struct inode *new_dir, struct dentry *new_dentry, in security_inode_rename() argument
1296 (d_is_positive(new_dentry) && IS_PRIVATE(d_backing_inode(new_dentry))))) in security_inode_rename()
[all …]
/security/landlock/
Dfs.c591 struct dentry *const new_dentry) in hook_path_link() argument
620 struct dentry *const new_dentry) in hook_path_rename() argument
636 maybe_remove(old_dentry) | maybe_remove(new_dentry) | in hook_path_rename()
/security/apparmor/include/
Dfile.h197 const struct path *new_dir, struct dentry *new_dentry);
/security/apparmor/
Dfile.c458 const struct path *new_dir, struct dentry *new_dentry) in aa_path_link() argument
460 struct path link = { .mnt = new_dir->mnt, .dentry = new_dentry }; in aa_path_link()
Dlsm.c340 struct dentry *new_dentry) in apparmor_path_link() argument
350 error = aa_path_link(label, old_dentry, new_dir, new_dentry); in apparmor_path_link()
357 const struct path *new_dir, struct dentry *new_dentry) in apparmor_path_rename() argument
371 .dentry = new_dentry }; in apparmor_path_rename()
/security/smack/
Dsmack_lsm.c1019 struct dentry *new_dentry) in smack_inode_link() argument
1032 if (rc == 0 && d_is_positive(new_dentry)) { in smack_inode_link()
1033 isp = smk_of_inode(d_backing_inode(new_dentry)); in smack_inode_link()
1034 smk_ad_setfield_u_fs_path_dentry(&ad, new_dentry); in smack_inode_link()
1036 rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_WRITE, rc); in smack_inode_link()
1125 struct dentry *new_dentry) in smack_inode_rename() argument
1138 if (rc == 0 && d_is_positive(new_dentry)) { in smack_inode_rename()
1139 isp = smk_of_inode(d_backing_inode(new_dentry)); in smack_inode_rename()
1140 smk_ad_setfield_u_fs_path_dentry(&ad, new_dentry); in smack_inode_rename()
1142 rc = smk_bu_inode(d_backing_inode(new_dentry), MAY_READWRITE, rc); in smack_inode_rename()
/security/selinux/
Dhooks.c1926 struct dentry *new_dentry) in may_rename() argument
1961 ad.u.dentry = new_dentry; in may_rename()
1963 if (d_is_positive(new_dentry)) in may_rename()
1969 if (d_is_positive(new_dentry)) { in may_rename()
1970 new_isec = backing_inode_security(new_dentry); in may_rename()
1971 new_is_dir = d_is_dir(new_dentry); in may_rename()
3099 …tic int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) in selinux_inode_link() argument
3130 struct inode *new_inode, struct dentry *new_dentry) in selinux_inode_rename() argument
3132 return may_rename(old_inode, old_dentry, new_inode, new_dentry); in selinux_inode_rename()