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
Kirill Smelkov
linux
Commits
3b73b68c
Commit
3b73b68c
authored
Mar 25, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify security_sb_pivotroot()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
77b286c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
include/linux/lsm_hooks.h
include/linux/lsm_hooks.h
+1
-1
include/linux/security.h
include/linux/security.h
+3
-3
security/security.c
security/security.c
+1
-1
security/tomoyo/tomoyo.c
security/tomoyo/tomoyo.c
+1
-1
No files found.
include/linux/lsm_hooks.h
View file @
3b73b68c
...
...
@@ -1346,7 +1346,7 @@ union security_list_options {
int
(
*
sb_mount
)(
const
char
*
dev_name
,
const
struct
path
*
path
,
const
char
*
type
,
unsigned
long
flags
,
void
*
data
);
int
(
*
sb_umount
)(
struct
vfsmount
*
mnt
,
int
flags
);
int
(
*
sb_pivotroot
)(
struct
path
*
old_path
,
struct
path
*
new_path
);
int
(
*
sb_pivotroot
)(
const
struct
path
*
old_path
,
const
struct
path
*
new_path
);
int
(
*
sb_set_mnt_opts
)(
struct
super_block
*
sb
,
struct
security_mnt_opts
*
opts
,
unsigned
long
kern_flags
,
...
...
include/linux/security.h
View file @
3b73b68c
...
...
@@ -225,7 +225,7 @@ int security_sb_statfs(struct dentry *dentry);
int
security_sb_mount
(
const
char
*
dev_name
,
const
struct
path
*
path
,
const
char
*
type
,
unsigned
long
flags
,
void
*
data
);
int
security_sb_umount
(
struct
vfsmount
*
mnt
,
int
flags
);
int
security_sb_pivotroot
(
struct
path
*
old_path
,
struct
path
*
new_path
);
int
security_sb_pivotroot
(
const
struct
path
*
old_path
,
const
struct
path
*
new_path
);
int
security_sb_set_mnt_opts
(
struct
super_block
*
sb
,
struct
security_mnt_opts
*
opts
,
unsigned
long
kern_flags
,
...
...
@@ -542,8 +542,8 @@ static inline int security_sb_umount(struct vfsmount *mnt, int flags)
return
0
;
}
static
inline
int
security_sb_pivotroot
(
struct
path
*
old_path
,
struct
path
*
new_path
)
static
inline
int
security_sb_pivotroot
(
const
struct
path
*
old_path
,
const
struct
path
*
new_path
)
{
return
0
;
}
...
...
security/security.c
View file @
3b73b68c
...
...
@@ -313,7 +313,7 @@ int security_sb_umount(struct vfsmount *mnt, int flags)
return
call_int_hook
(
sb_umount
,
0
,
mnt
,
flags
);
}
int
security_sb_pivotroot
(
struct
path
*
old_path
,
struct
path
*
new_path
)
int
security_sb_pivotroot
(
const
struct
path
*
old_path
,
const
struct
path
*
new_path
)
{
return
call_int_hook
(
sb_pivotroot
,
0
,
old_path
,
new_path
);
}
...
...
security/tomoyo/tomoyo.c
View file @
3b73b68c
...
...
@@ -429,7 +429,7 @@ static int tomoyo_sb_umount(struct vfsmount *mnt, int flags)
*
* Returns 0 on success, negative value otherwise.
*/
static
int
tomoyo_sb_pivotroot
(
struct
path
*
old_path
,
struct
path
*
new_path
)
static
int
tomoyo_sb_pivotroot
(
const
struct
path
*
old_path
,
const
struct
path
*
new_path
)
{
return
tomoyo_path2_perm
(
TOMOYO_TYPE_PIVOT_ROOT
,
new_path
,
old_path
);
}
...
...
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