Loading security/tomoyo/common.h +1 −1 Original line number Diff line number Diff line Loading @@ -945,7 +945,7 @@ char *tomoyo_encode2(const char *str, int str_len); char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt, va_list args); char *tomoyo_read_token(struct tomoyo_acl_param *param); char *tomoyo_realpath_from_path(struct path *path); char *tomoyo_realpath_from_path(const struct path *path); char *tomoyo_realpath_nofollow(const char *pathname); const char *tomoyo_get_exe(void); const char *tomoyo_yesno(const unsigned int value); Loading security/tomoyo/realpath.c +3 −3 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ char *tomoyo_encode(const char *str) * * If dentry is a directory, trailing '/' is appended. */ static char *tomoyo_get_absolute_path(struct path *path, char * const buffer, static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, const int buflen) { char *pos = ERR_PTR(-ENOMEM); Loading Loading @@ -216,7 +216,7 @@ static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer, * * Returns the buffer. */ static char *tomoyo_get_socket_name(struct path *path, char * const buffer, static char *tomoyo_get_socket_name(const struct path *path, char * const buffer, const int buflen) { struct inode *inode = path->dentry->d_inode; Loading Loading @@ -247,7 +247,7 @@ static char *tomoyo_get_socket_name(struct path *path, char * const buffer, * These functions use kzalloc(), so the caller must call kfree() * if these functions didn't return NULL. */ char *tomoyo_realpath_from_path(struct path *path) char *tomoyo_realpath_from_path(const struct path *path) { char *buf = NULL; char *name = NULL; Loading Loading
security/tomoyo/common.h +1 −1 Original line number Diff line number Diff line Loading @@ -945,7 +945,7 @@ char *tomoyo_encode2(const char *str, int str_len); char *tomoyo_init_log(struct tomoyo_request_info *r, int len, const char *fmt, va_list args); char *tomoyo_read_token(struct tomoyo_acl_param *param); char *tomoyo_realpath_from_path(struct path *path); char *tomoyo_realpath_from_path(const struct path *path); char *tomoyo_realpath_nofollow(const char *pathname); const char *tomoyo_get_exe(void); const char *tomoyo_yesno(const unsigned int value); Loading
security/tomoyo/realpath.c +3 −3 Original line number Diff line number Diff line Loading @@ -89,7 +89,7 @@ char *tomoyo_encode(const char *str) * * If dentry is a directory, trailing '/' is appended. */ static char *tomoyo_get_absolute_path(struct path *path, char * const buffer, static char *tomoyo_get_absolute_path(const struct path *path, char * const buffer, const int buflen) { char *pos = ERR_PTR(-ENOMEM); Loading Loading @@ -216,7 +216,7 @@ static char *tomoyo_get_local_path(struct dentry *dentry, char * const buffer, * * Returns the buffer. */ static char *tomoyo_get_socket_name(struct path *path, char * const buffer, static char *tomoyo_get_socket_name(const struct path *path, char * const buffer, const int buflen) { struct inode *inode = path->dentry->d_inode; Loading Loading @@ -247,7 +247,7 @@ static char *tomoyo_get_socket_name(struct path *path, char * const buffer, * These functions use kzalloc(), so the caller must call kfree() * if these functions didn't return NULL. */ char *tomoyo_realpath_from_path(struct path *path) char *tomoyo_realpath_from_path(const struct path *path) { char *buf = NULL; char *name = NULL; Loading