diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 14:44:41 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:24 -0400 |
| commit | 7fd25dac9ad3970bede16f2834daf9f9d779d1b0 (patch) | |
| tree | 562290ebf7e4d12a1cbadb04deb5118a3e53d773 /include/linux/security.h | |
| parent | e6641eddf0e7f0227493e91a1d91546f6bd73525 (diff) | |
constify chown_common/security_path_chown
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 be37ccab2286..f83ca920ed46 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
| @@ -1456,7 +1456,7 @@ int security_path_rename(struct path *old_dir, struct dentry *old_dentry, | |||
| 1456 | struct path *new_dir, struct dentry *new_dentry, | 1456 | struct path *new_dir, struct dentry *new_dentry, |
| 1457 | unsigned int flags); | 1457 | unsigned int flags); |
| 1458 | int security_path_chmod(struct path *path, umode_t mode); | 1458 | int security_path_chmod(struct path *path, umode_t mode); |
| 1459 | int security_path_chown(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(struct path *path); |
| 1461 | #else /* CONFIG_SECURITY_PATH */ | 1461 | #else /* CONFIG_SECURITY_PATH */ |
| 1462 | static inline int security_path_unlink(struct path *dir, struct dentry *dentry) | 1462 | static inline int security_path_unlink(struct path *dir, struct dentry *dentry) |
| @@ -1513,7 +1513,7 @@ static inline int security_path_chmod(struct path *path, umode_t mode) | |||
| 1513 | return 0; | 1513 | return 0; |
| 1514 | } | 1514 | } |
| 1515 | 1515 | ||
| 1516 | static inline int security_path_chown(struct path *path, kuid_t uid, kgid_t gid) | 1516 | static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid) |
| 1517 | { | 1517 | { |
| 1518 | return 0; | 1518 | return 0; |
| 1519 | } | 1519 | } |
