mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
constify security_path_{link,rename}
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
8db0185659
commit
3ccee46ab4
5 changed files with 18 additions and 18 deletions
|
@ -280,7 +280,7 @@ static int apparmor_path_symlink(const struct path *dir, struct dentry *dentry,
|
|||
S_IFLNK);
|
||||
}
|
||||
|
||||
static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir,
|
||||
static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir,
|
||||
struct dentry *new_dentry)
|
||||
{
|
||||
struct aa_profile *profile;
|
||||
|
@ -295,8 +295,8 @@ static int apparmor_path_link(struct dentry *old_dentry, struct path *new_dir,
|
|||
return error;
|
||||
}
|
||||
|
||||
static int apparmor_path_rename(struct path *old_dir, struct dentry *old_dentry,
|
||||
struct path *new_dir, struct dentry *new_dentry)
|
||||
static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry,
|
||||
const struct path *new_dir, struct dentry *new_dentry)
|
||||
{
|
||||
struct aa_profile *profile;
|
||||
int error = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue