diff options
Diffstat (limited to 'security/apparmor/path.c')
-rw-r--r-- | security/apparmor/path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/security/apparmor/path.c b/security/apparmor/path.c index 71e0e3a15b9d..edddc026406b 100644 --- a/security/apparmor/path.c +++ b/security/apparmor/path.c | |||
@@ -53,7 +53,7 @@ static int prepend(char **buffer, int buflen, const char *str, int namelen) | |||
53 | * When no error the path name is returned in @name which points to | 53 | * When no error the path name is returned in @name which points to |
54 | * to a position in @buf | 54 | * to a position in @buf |
55 | */ | 55 | */ |
56 | static int d_namespace_path(struct path *path, char *buf, int buflen, | 56 | static int d_namespace_path(const struct path *path, char *buf, int buflen, |
57 | char **name, int flags) | 57 | char **name, int flags) |
58 | { | 58 | { |
59 | char *res; | 59 | char *res; |
@@ -158,7 +158,7 @@ out: | |||
158 | * | 158 | * |
159 | * Returns: %0 else error on failure | 159 | * Returns: %0 else error on failure |
160 | */ | 160 | */ |
161 | static int get_name_to_buffer(struct path *path, int flags, char *buffer, | 161 | static int get_name_to_buffer(const struct path *path, int flags, char *buffer, |
162 | int size, char **name, const char **info) | 162 | int size, char **name, const char **info) |
163 | { | 163 | { |
164 | int adjust = (flags & PATH_IS_DIR) ? 1 : 0; | 164 | int adjust = (flags & PATH_IS_DIR) ? 1 : 0; |
@@ -204,8 +204,8 @@ static int get_name_to_buffer(struct path *path, int flags, char *buffer, | |||
204 | * | 204 | * |
205 | * Returns: %0 else error code if could retrieve name | 205 | * Returns: %0 else error code if could retrieve name |
206 | */ | 206 | */ |
207 | int aa_path_name(struct path *path, int flags, char **buffer, const char **name, | 207 | int aa_path_name(const struct path *path, int flags, char **buffer, |
208 | const char **info) | 208 | const char **name, const char **info) |
209 | { | 209 | { |
210 | char *buf, *str = NULL; | 210 | char *buf, *str = NULL; |
211 | int size = 256; | 211 | int size = 256; |