diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:27:45 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:36 -0400 |
commit | 3ccee46ab487d5b87d0621824efe2500b2857c58 (patch) | |
tree | e4d95cd62a9fce7bbef12dfb1b68357bc28a1511 /include/linux/security.h | |
parent | 8db0185659c33143915768bdd33fc2fb1b1cbb58 (diff) |
constify security_path_{link,rename}
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/security.h')
-rw-r--r-- | include/linux/security.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index ccb8c2a170e3..82854115e36b 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1450,10 +1450,10 @@ int security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t m | |||
1450 | int security_path_truncate(const struct path *path); | 1450 | int security_path_truncate(const struct path *path); |
1451 | int security_path_symlink(const struct path *dir, struct dentry *dentry, | 1451 | int security_path_symlink(const struct path *dir, struct dentry *dentry, |
1452 | const char *old_name); | 1452 | const char *old_name); |
1453 | int security_path_link(struct dentry *old_dentry, struct path *new_dir, | 1453 | int security_path_link(struct dentry *old_dentry, const struct path *new_dir, |
1454 | struct dentry *new_dentry); | 1454 | struct dentry *new_dentry); |
1455 | int security_path_rename(struct path *old_dir, struct dentry *old_dentry, | 1455 | int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, |
1456 | struct path *new_dir, struct dentry *new_dentry, | 1456 | const struct path *new_dir, struct dentry *new_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); |
@@ -1493,15 +1493,15 @@ static inline int security_path_symlink(const struct path *dir, struct dentry *d | |||
1493 | } | 1493 | } |
1494 | 1494 | ||
1495 | static inline int security_path_link(struct dentry *old_dentry, | 1495 | static inline int security_path_link(struct dentry *old_dentry, |
1496 | struct path *new_dir, | 1496 | const struct path *new_dir, |
1497 | struct dentry *new_dentry) | 1497 | struct dentry *new_dentry) |
1498 | { | 1498 | { |
1499 | return 0; | 1499 | return 0; |
1500 | } | 1500 | } |
1501 | 1501 | ||
1502 | static inline int security_path_rename(struct path *old_dir, | 1502 | static inline int security_path_rename(const struct path *old_dir, |
1503 | struct dentry *old_dentry, | 1503 | struct dentry *old_dentry, |
1504 | struct path *new_dir, | 1504 | const struct path *new_dir, |
1505 | struct dentry *new_dentry, | 1505 | struct dentry *new_dentry, |
1506 | unsigned int flags) | 1506 | unsigned int flags) |
1507 | { | 1507 | { |