Home
last modified time | relevance | path

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

/security/tomoyo/
Dtomoyo.c275 static int tomoyo_path_link(struct dentry *old_dentry, struct path *new_dir, in tomoyo_path_link() argument
278 struct path path1 = { new_dir->mnt, old_dentry }; in tomoyo_path_link()
294 struct dentry *old_dentry, in tomoyo_path_rename() argument
298 struct path path1 = { old_parent->mnt, old_dentry }; in tomoyo_path_rename()
/security/apparmor/
Dlsm.c302 static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir, in apparmor_path_link() argument
308 if (!mediated_filesystem(old_dentry->d_inode)) in apparmor_path_link()
313 error = aa_path_link(profile, old_dentry, new_dir, new_dentry); in apparmor_path_link()
317 static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry, in apparmor_path_rename() argument
323 if (!mediated_filesystem(old_dentry->d_inode)) in apparmor_path_rename()
328 struct path old_path = { old_dir->mnt, old_dentry }; in apparmor_path_rename()
330 struct path_cond cond = { old_dentry->d_inode->i_uid, in apparmor_path_rename()
331 old_dentry->d_inode->i_mode in apparmor_path_rename()
Dfile.c348 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, in aa_path_link() argument
352 struct path target = { new_dir->mnt, old_dentry }; in aa_path_link()
354 old_dentry->d_inode->i_uid, in aa_path_link()
355 old_dentry->d_inode->i_mode in aa_path_link()
/security/
Dsecurity.c436 int security_path_link(struct dentry *old_dentry, struct path *new_dir, in security_path_link() argument
439 if (unlikely(IS_PRIVATE(old_dentry->d_inode))) in security_path_link()
441 return security_ops->path_link(old_dentry, new_dir, new_dentry); in security_path_link()
444 int security_path_rename(struct path *old_dir, struct dentry *old_dentry, in security_path_rename() argument
447 if (unlikely(IS_PRIVATE(old_dentry->d_inode) || in security_path_rename()
450 return security_ops->path_rename(old_dir, old_dentry, new_dir, in security_path_rename()
490 int security_inode_link(struct dentry *old_dentry, struct inode *dir, in security_inode_link() argument
493 if (unlikely(IS_PRIVATE(old_dentry->d_inode))) in security_inode_link()
495 return security_ops->inode_link(old_dentry, dir, new_dentry); in security_inode_link()
535 int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, in security_inode_rename() argument
[all …]
Dcapability.c154 static int cap_inode_link(struct dentry *old_dentry, struct inode *inode, in cap_inode_link() argument
188 static int cap_inode_rename(struct inode *old_inode, struct dentry *old_dentry, in cap_inode_rename() argument
286 static int cap_path_link(struct dentry *old_dentry, struct path *new_dir, in cap_path_link() argument
292 static int cap_path_rename(struct path *old_path, struct dentry *old_dentry, in cap_path_rename() argument
/security/apparmor/include/
Dfile.h177 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
/security/smack/
Dsmack_lsm.c610 static int smack_inode_link(struct dentry *old_dentry, struct inode *dir, in smack_inode_link() argument
618 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry); in smack_inode_link()
620 isp = smk_of_inode(old_dentry->d_inode); in smack_inode_link()
709 struct dentry *old_dentry, in smack_inode_rename() argument
718 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry); in smack_inode_rename()
720 isp = smk_of_inode(old_dentry->d_inode); in smack_inode_rename()
/security/selinux/
Dhooks.c1739 struct dentry *old_dentry, in may_rename() argument
1751 old_isec = old_dentry->d_inode->i_security; in may_rename()
1752 old_is_dir = S_ISDIR(old_dentry->d_inode->i_mode); in may_rename()
1757 ad.u.dentry = old_dentry; in may_rename()
2696 static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dent… in selinux_inode_link() argument
2698 return may_link(dir, old_dentry, MAY_LINK); in selinux_inode_link()
2726 static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry, in selinux_inode_rename() argument
2729 return may_rename(old_inode, old_dentry, new_inode, new_dentry); in selinux_inode_rename()