diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:28:43 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:51 -0400 |
commit | 77b286c0d26a5399912f5affd90ed73e2d8b42a5 (patch) | |
tree | 93b158a02da3f193947eb46567731c6c5ed58635 /include/linux/security.h | |
parent | 3ccee46ab487d5b87d0621824efe2500b2857c58 (diff) |
constify security_path_chroot()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index 82854115e36b..cb53cffbfae4 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1457,7 +1457,7 @@ int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, | |||
1457 | unsigned int flags); | 1457 | unsigned int flags); |
1458 | int security_path_chmod(const struct path *path, umode_t mode); | 1458 | int security_path_chmod(const struct path *path, umode_t mode); |
1459 | int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); | 1459 | int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid); |
1460 | int security_path_chroot(struct path *path); | 1460 | int security_path_chroot(const struct path *path); |
1461 | #else /* CONFIG_SECURITY_PATH */ | 1461 | #else /* CONFIG_SECURITY_PATH */ |
1462 | static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) | 1462 | static inline int security_path_unlink(const struct path *dir, struct dentry *dentry) |
1463 | { | 1463 | { |
@@ -1518,7 +1518,7 @@ static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_ | |||
1518 | return 0; | 1518 | return 0; |
1519 | } | 1519 | } |
1520 | 1520 | ||
1521 | static inline int security_path_chroot(struct path *path) | 1521 | static inline int security_path_chroot(const struct path *path) |
1522 | { | 1522 | { |
1523 | return 0; | 1523 | return 0; |
1524 | } | 1524 | } |