diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:10:04 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:26 -0400 |
| commit | d6b49f7ad2f38b5c3af27ac1a6f475b1ec13ea6e (patch) | |
| tree | f279bd4025a995225d26895a6f8c00883d1a1d05 /security/apparmor | |
| parent | 3539aaf670cdd68a37314cd5db400c0c77287c88 (diff) | |
apparmor: constify common_perm_...()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/apparmor')
| -rw-r--r-- | security/apparmor/lsm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index ead56bfaa056..4d2638f4676d 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c | |||
| @@ -172,7 +172,7 @@ static int common_perm(int op, const struct path *path, u32 mask, | |||
| 172 | * | 172 | * |
| 173 | * Returns: %0 else error code if error or permission denied | 173 | * Returns: %0 else error code if error or permission denied |
| 174 | */ | 174 | */ |
| 175 | static int common_perm_dir_dentry(int op, struct path *dir, | 175 | static int common_perm_dir_dentry(int op, const struct path *dir, |
| 176 | struct dentry *dentry, u32 mask, | 176 | struct dentry *dentry, u32 mask, |
| 177 | struct path_cond *cond) | 177 | struct path_cond *cond) |
| 178 | { | 178 | { |
| @@ -209,7 +209,7 @@ static inline int common_perm_path(int op, const struct path *path, u32 mask) | |||
| 209 | * | 209 | * |
| 210 | * Returns: %0 else error code if error or permission denied | 210 | * Returns: %0 else error code if error or permission denied |
| 211 | */ | 211 | */ |
| 212 | static int common_perm_rm(int op, struct path *dir, | 212 | static int common_perm_rm(int op, const struct path *dir, |
| 213 | struct dentry *dentry, u32 mask) | 213 | struct dentry *dentry, u32 mask) |
| 214 | { | 214 | { |
| 215 | struct inode *inode = d_backing_inode(dentry); | 215 | struct inode *inode = d_backing_inode(dentry); |
| @@ -234,8 +234,8 @@ static int common_perm_rm(int op, struct path *dir, | |||
| 234 | * | 234 | * |
| 235 | * Returns: %0 else error code if error or permission denied | 235 | * Returns: %0 else error code if error or permission denied |
| 236 | */ | 236 | */ |
| 237 | static int common_perm_create(int op, struct path *dir, struct dentry *dentry, | 237 | static int common_perm_create(int op, const struct path *dir, |
| 238 | u32 mask, umode_t mode) | 238 | struct dentry *dentry, u32 mask, umode_t mode) |
| 239 | { | 239 | { |
| 240 | struct path_cond cond = { current_fsuid(), mode }; | 240 | struct path_cond cond = { current_fsuid(), mode }; |
| 241 | 241 | ||
