From: Al Viro Date: Fri, 25 Mar 2016 19:10:04 +0000 (-0400) Subject: apparmor: constify common_perm_...() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d6b49f7ad2f38b5c3af27ac1a6f475b1ec13ea6e;p=linux-beck.git apparmor: constify common_perm_...() Signed-off-by: Al Viro --- 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, * * Returns: %0 else error code if error or permission denied */ -static int common_perm_dir_dentry(int op, struct path *dir, +static int common_perm_dir_dentry(int op, const struct path *dir, struct dentry *dentry, u32 mask, struct path_cond *cond) { @@ -209,7 +209,7 @@ static inline int common_perm_path(int op, const struct path *path, u32 mask) * * Returns: %0 else error code if error or permission denied */ -static int common_perm_rm(int op, struct path *dir, +static int common_perm_rm(int op, const struct path *dir, struct dentry *dentry, u32 mask) { struct inode *inode = d_backing_inode(dentry); @@ -234,8 +234,8 @@ static int common_perm_rm(int op, struct path *dir, * * Returns: %0 else error code if error or permission denied */ -static int common_perm_create(int op, struct path *dir, struct dentry *dentry, - u32 mask, umode_t mode) +static int common_perm_create(int op, const struct path *dir, + struct dentry *dentry, u32 mask, umode_t mode) { struct path_cond cond = { current_fsuid(), mode };