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
77b286c0
Commit
77b286c0
authored
Mar 25, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
constify security_path_chroot()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
3ccee46a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
include/linux/lsm_hooks.h
include/linux/lsm_hooks.h
+1
-1
include/linux/security.h
include/linux/security.h
+2
-2
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 @
77b286c0
...
...
@@ -1376,7 +1376,7 @@ union security_list_options {
struct
dentry
*
new_dentry
);
int
(
*
path_chmod
)(
const
struct
path
*
path
,
umode_t
mode
);
int
(
*
path_chown
)(
const
struct
path
*
path
,
kuid_t
uid
,
kgid_t
gid
);
int
(
*
path_chroot
)(
struct
path
*
path
);
int
(
*
path_chroot
)(
const
struct
path
*
path
);
#endif
int
(
*
inode_alloc_security
)(
struct
inode
*
inode
);
...
...
include/linux/security.h
View file @
77b286c0
...
...
@@ -1457,7 +1457,7 @@ int security_path_rename(const struct path *old_dir, struct dentry *old_dentry,
unsigned
int
flags
);
int
security_path_chmod
(
const
struct
path
*
path
,
umode_t
mode
);
int
security_path_chown
(
const
struct
path
*
path
,
kuid_t
uid
,
kgid_t
gid
);
int
security_path_chroot
(
struct
path
*
path
);
int
security_path_chroot
(
const
struct
path
*
path
);
#else
/* CONFIG_SECURITY_PATH */
static
inline
int
security_path_unlink
(
const
struct
path
*
dir
,
struct
dentry
*
dentry
)
{
...
...
@@ -1518,7 +1518,7 @@ static inline int security_path_chown(const struct path *path, kuid_t uid, kgid_
return
0
;
}
static
inline
int
security_path_chroot
(
struct
path
*
path
)
static
inline
int
security_path_chroot
(
const
struct
path
*
path
)
{
return
0
;
}
...
...
security/security.c
View file @
77b286c0
...
...
@@ -499,7 +499,7 @@ int security_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
return
call_int_hook
(
path_chown
,
0
,
path
,
uid
,
gid
);
}
int
security_path_chroot
(
struct
path
*
path
)
int
security_path_chroot
(
const
struct
path
*
path
)
{
return
call_int_hook
(
path_chroot
,
0
,
path
);
}
...
...
security/tomoyo/tomoyo.c
View file @
77b286c0
...
...
@@ -385,7 +385,7 @@ static int tomoyo_path_chown(const struct path *path, kuid_t uid, kgid_t gid)
*
* Returns 0 on success, negative value otherwise.
*/
static
int
tomoyo_path_chroot
(
struct
path
*
path
)
static
int
tomoyo_path_chroot
(
const
struct
path
*
path
)
{
return
tomoyo_path_perm
(
TOMOYO_TYPE_CHROOT
,
path
,
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