Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
22473862
Commit
22473862
authored
Mar 08, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify tomoyo_realpath_from_path()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
74008b36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
security/tomoyo/common.h
security/tomoyo/common.h
+1
-1
security/tomoyo/realpath.c
security/tomoyo/realpath.c
+3
-3
No files found.
security/tomoyo/common.h
View file @
22473862
...
...
@@ -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
);
...
...
security/tomoyo/realpath.c
View file @
22473862
...
...
@@ -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
);
...
...
@@ -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
;
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment