summaryrefslogtreecommitdiffstats
path: root/security/tomoyo
diff options
context:
space:
mode:
authorAl Viro2016-03-25 19:44:41 +0100
committerAl Viro2016-03-28 06:47:24 +0200
commit7fd25dac9ad3970bede16f2834daf9f9d779d1b0 (patch)
tree562290ebf7e4d12a1cbadb04deb5118a3e53d773 /security/tomoyo
parenttomoyo: constify assorted struct path * (diff)
downloadkernel-qcow2-linux-7fd25dac9ad3970bede16f2834daf9f9d779d1b0.tar.gz
kernel-qcow2-linux-7fd25dac9ad3970bede16f2834daf9f9d779d1b0.tar.xz
kernel-qcow2-linux-7fd25dac9ad3970bede16f2834daf9f9d779d1b0.zip
constify chown_common/security_path_chown
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/tomoyo')
-rw-r--r--security/tomoyo/tomoyo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c
index 8573eee2b58e..f0989ec978e1 100644
--- a/security/tomoyo/tomoyo.c
+++ b/security/tomoyo/tomoyo.c
@@ -366,7 +366,7 @@ static int tomoyo_path_chmod(struct path *path, umode_t mode)
*
* Returns 0 on success, negative value otherwise.
*/
-static int tomoyo_path_chown(struct path *path, kuid_t uid, kgid_t gid)
+static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
{
int error = 0;
if (uid_valid(uid))