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
e6641edd
Commit
e6641edd
authored
Mar 25, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tomoyo: constify assorted struct path *
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
928e1ebf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
security/tomoyo/common.h
security/tomoyo/common.h
+6
-6
security/tomoyo/file.c
security/tomoyo/file.c
+5
-5
security/tomoyo/mount.c
security/tomoyo/mount.c
+2
-2
No files found.
security/tomoyo/common.h
View file @
e6641edd
...
...
@@ -957,7 +957,7 @@ const struct tomoyo_path_info *tomoyo_get_name(const char *name);
const
struct
tomoyo_path_info
*
tomoyo_path_matches_group
(
const
struct
tomoyo_path_info
*
pathname
,
const
struct
tomoyo_group
*
group
);
int
tomoyo_check_open_permission
(
struct
tomoyo_domain_info
*
domain
,
struct
path
*
path
,
const
int
flag
);
const
struct
path
*
path
,
const
int
flag
);
void
tomoyo_close_control
(
struct
tomoyo_io_buffer
*
head
);
int
tomoyo_env_perm
(
struct
tomoyo_request_info
*
r
,
const
char
*
env
);
int
tomoyo_execute_permission
(
struct
tomoyo_request_info
*
r
,
...
...
@@ -968,15 +968,15 @@ int tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile,
int
tomoyo_init_request_info
(
struct
tomoyo_request_info
*
r
,
struct
tomoyo_domain_info
*
domain
,
const
u8
index
);
int
tomoyo_mkdev_perm
(
const
u8
operation
,
struct
path
*
path
,
int
tomoyo_mkdev_perm
(
const
u8
operation
,
const
struct
path
*
path
,
const
unsigned
int
mode
,
unsigned
int
dev
);
int
tomoyo_mount_permission
(
const
char
*
dev_name
,
struct
path
*
path
,
int
tomoyo_mount_permission
(
const
char
*
dev_name
,
const
struct
path
*
path
,
const
char
*
type
,
unsigned
long
flags
,
void
*
data_page
);
int
tomoyo_open_control
(
const
u8
type
,
struct
file
*
file
);
int
tomoyo_path2_perm
(
const
u8
operation
,
struct
path
*
path1
,
struct
path
*
path2
);
int
tomoyo_path_number_perm
(
const
u8
operation
,
struct
path
*
path
,
int
tomoyo_path2_perm
(
const
u8
operation
,
const
struct
path
*
path1
,
const
struct
path
*
path2
);
int
tomoyo_path_number_perm
(
const
u8
operation
,
const
struct
path
*
path
,
unsigned
long
number
);
int
tomoyo_path_perm
(
const
u8
operation
,
const
struct
path
*
path
,
const
char
*
target
);
...
...
security/tomoyo/file.c
View file @
e6641edd
...
...
@@ -687,7 +687,7 @@ static int tomoyo_update_path_number_acl(const u8 perm,
*
* Returns 0 on success, negative value otherwise.
*/
int
tomoyo_path_number_perm
(
const
u8
type
,
struct
path
*
path
,
int
tomoyo_path_number_perm
(
const
u8
type
,
const
struct
path
*
path
,
unsigned
long
number
)
{
struct
tomoyo_request_info
r
;
...
...
@@ -733,7 +733,7 @@ int tomoyo_path_number_perm(const u8 type, struct path *path,
* Returns 0 on success, negative value otherwise.
*/
int
tomoyo_check_open_permission
(
struct
tomoyo_domain_info
*
domain
,
struct
path
*
path
,
const
int
flag
)
const
struct
path
*
path
,
const
int
flag
)
{
const
u8
acc_mode
=
ACC_MODE
(
flag
);
int
error
=
0
;
...
...
@@ -838,7 +838,7 @@ int tomoyo_path_perm(const u8 operation, const struct path *path, const char *ta
*
* Returns 0 on success, negative value otherwise.
*/
int
tomoyo_mkdev_perm
(
const
u8
operation
,
struct
path
*
path
,
int
tomoyo_mkdev_perm
(
const
u8
operation
,
const
struct
path
*
path
,
const
unsigned
int
mode
,
unsigned
int
dev
)
{
struct
tomoyo_request_info
r
;
...
...
@@ -882,8 +882,8 @@ int tomoyo_mkdev_perm(const u8 operation, struct path *path,
*
* Returns 0 on success, negative value otherwise.
*/
int
tomoyo_path2_perm
(
const
u8
operation
,
struct
path
*
path1
,
struct
path
*
path2
)
int
tomoyo_path2_perm
(
const
u8
operation
,
const
struct
path
*
path1
,
const
struct
path
*
path2
)
{
int
error
=
-
ENOMEM
;
struct
tomoyo_path_info
buf1
;
...
...
security/tomoyo/mount.c
View file @
e6641edd
...
...
@@ -73,7 +73,7 @@ static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r,
*/
static
int
tomoyo_mount_acl
(
struct
tomoyo_request_info
*
r
,
const
char
*
dev_name
,
struct
path
*
dir
,
const
char
*
type
,
const
struct
path
*
dir
,
const
char
*
type
,
unsigned
long
flags
)
{
struct
tomoyo_obj_info
obj
=
{
};
...
...
@@ -184,7 +184,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r,
*
* Returns 0 on success, negative value otherwise.
*/
int
tomoyo_mount_permission
(
const
char
*
dev_name
,
struct
path
*
path
,
int
tomoyo_mount_permission
(
const
char
*
dev_name
,
const
struct
path
*
path
,
const
char
*
type
,
unsigned
long
flags
,
void
*
data_page
)
{
...
...
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