···149149 *150150 * Returns: %0 else error code if error or permission denied151151 */152152-static int common_perm(int op, struct path *path, u32 mask,152152+static int common_perm(int op, const struct path *path, u32 mask,153153 struct path_cond *cond)154154{155155 struct aa_profile *profile;
+4-4
security/apparmor/path.c
···5353 * When no error the path name is returned in @name which points to5454 * to a position in @buf5555 */5656-static int d_namespace_path(struct path *path, char *buf, int buflen,5656+static int d_namespace_path(const struct path *path, char *buf, int buflen,5757 char **name, int flags)5858{5959 char *res;···158158 *159159 * Returns: %0 else error on failure160160 */161161-static int get_name_to_buffer(struct path *path, int flags, char *buffer,161161+static int get_name_to_buffer(const struct path *path, int flags, char *buffer,162162 int size, char **name, const char **info)163163{164164 int adjust = (flags & PATH_IS_DIR) ? 1 : 0;···204204 *205205 * Returns: %0 else error code if could retrieve name206206 */207207-int aa_path_name(struct path *path, int flags, char **buffer, const char **name,208208- const char **info)207207+int aa_path_name(const struct path *path, int flags, char **buffer,208208+ const char **name, const char **info)209209{210210 char *buf, *str = NULL;211211 int size = 256;