diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:31:19 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:52 -0400 |
commit | 3b73b68c05db0b3c9b282c6e8e6eb71acc589a02 (patch) | |
tree | 3476c56eee92926db102949296804aa192a2c249 /security | |
parent | 77b286c0d26a5399912f5affd90ed73e2d8b42a5 (diff) |
constify security_sb_pivotroot()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/security.c | 2 | ||||
-rw-r--r-- | security/tomoyo/tomoyo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c index cf6f31df524a..f7af0aaa173e 100644 --- a/security/security.c +++ b/security/security.c | |||
@@ -313,7 +313,7 @@ int security_sb_umount(struct vfsmount *mnt, int flags) | |||
313 | return call_int_hook(sb_umount, 0, mnt, flags); | 313 | return call_int_hook(sb_umount, 0, mnt, flags); |
314 | } | 314 | } |
315 | 315 | ||
316 | int security_sb_pivotroot(struct path *old_path, struct path *new_path) | 316 | int security_sb_pivotroot(const struct path *old_path, const struct path *new_path) |
317 | { | 317 | { |
318 | return call_int_hook(sb_pivotroot, 0, old_path, new_path); | 318 | return call_int_hook(sb_pivotroot, 0, old_path, new_path); |
319 | } | 319 | } |
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c index c7764bb747aa..75c998700190 100644 --- a/security/tomoyo/tomoyo.c +++ b/security/tomoyo/tomoyo.c | |||
@@ -429,7 +429,7 @@ static int tomoyo_sb_umount(struct vfsmount *mnt, int flags) | |||
429 | * | 429 | * |
430 | * Returns 0 on success, negative value otherwise. | 430 | * Returns 0 on success, negative value otherwise. |
431 | */ | 431 | */ |
432 | static int tomoyo_sb_pivotroot(struct path *old_path, struct path *new_path) | 432 | static int tomoyo_sb_pivotroot(const struct path *old_path, const struct path *new_path) |
433 | { | 433 | { |
434 | return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); | 434 | return tomoyo_path2_perm(TOMOYO_TYPE_PIVOT_ROOT, new_path, old_path); |
435 | } | 435 | } |