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

/security/tomoyo/
H A Dtomoyo.c269 * @old_dentry: Pointer to "struct dentry".
275 static int tomoyo_path_link(struct dentry *old_dentry, struct path *new_dir, argument
278 struct path path1 = { new_dir->mnt, old_dentry };
287 * @old_dentry: Pointer to "struct dentry".
294 struct dentry *old_dentry,
298 struct path path1 = { old_parent->mnt, old_dentry };
293 tomoyo_path_rename(struct path *old_parent, struct dentry *old_dentry, struct path *new_parent, struct dentry *new_dentry) argument
/security/
H A Dsecurity.c447 int security_path_link(struct dentry *old_dentry, struct path *new_dir, argument
450 if (unlikely(IS_PRIVATE(old_dentry->d_inode)))
452 return security_ops->path_link(old_dentry, new_dir, new_dentry);
455 int security_path_rename(struct path *old_dir, struct dentry *old_dentry, argument
459 if (unlikely(IS_PRIVATE(old_dentry->d_inode) ||
465 old_dir, old_dentry);
470 return security_ops->path_rename(old_dir, old_dentry, new_dir,
510 int security_inode_link(struct dentry *old_dentry, struct inode *dir, argument
513 if (unlikely(IS_PRIVATE(old_dentry->d_inode)))
515 return security_ops->inode_link(old_dentry, di
555 security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
H A Dcapability.c164 static int cap_inode_link(struct dentry *old_dentry, struct inode *inode, argument
198 static int cap_inode_rename(struct inode *old_inode, struct dentry *old_dentry, argument
296 static int cap_path_link(struct dentry *old_dentry, struct path *new_dir, argument
302 static int cap_path_rename(struct path *old_path, struct dentry *old_dentry, argument
/security/apparmor/
H A Dfile.c333 * @old_dentry: the target dentry (NOT NULL)
348 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, argument
352 struct path target = { new_dir->mnt, old_dentry };
354 old_dentry->d_inode->i_uid,
355 old_dentry->d_inode->i_mode
H A Dlsm.c302 static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir, argument
308 if (!mediated_filesystem(old_dentry->d_inode))
313 error = aa_path_link(profile, old_dentry, new_dir, new_dentry);
317 static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry, argument
323 if (!mediated_filesystem(old_dentry->d_inode))
328 struct path old_path = { old_dir->mnt, old_dentry };
330 struct path_cond cond = { old_dentry->d_inode->i_uid,
331 old_dentry->d_inode->i_mode
/security/apparmor/include/
H A Dfile.h177 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry,
/security/smack/
H A Dsmack_lsm.c829 * @old_dentry: the existing object
835 static int smack_inode_link(struct dentry *old_dentry, struct inode *dir, argument
843 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry);
845 isp = smk_of_inode(old_dentry->d_inode);
847 rc = smk_bu_inode(old_dentry->d_inode, MAY_WRITE, rc);
930 * @old_dentry: the old object
940 struct dentry *old_dentry,
949 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry);
951 isp = smk_of_inode(old_dentry->d_inode);
953 rc = smk_bu_inode(old_dentry
939 smack_inode_rename(struct inode *old_inode, struct dentry *old_dentry, struct inode *new_inode, struct dentry *new_dentry) argument
[all...]
/security/selinux/
H A Dhooks.c1796 struct dentry *old_dentry,
1808 old_isec = old_dentry->d_inode->i_security;
1809 old_is_dir = S_ISDIR(old_dentry->d_inode->i_mode);
1814 ad.u.dentry = old_dentry;
2820 static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) argument
2822 return may_link(dir, old_dentry, MAY_LINK);
2850 static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry, argument
2853 return may_rename(old_inode, old_dentry, new_inode, new_dentry);
1795 may_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument

Completed in 57 milliseconds