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
e53cfda5
Commit
e53cfda5
authored
Apr 14, 2013
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tomoyo_close_control: don't bother with return value
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
fca660be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
security/tomoyo/common.c
security/tomoyo/common.c
+1
-4
security/tomoyo/common.h
security/tomoyo/common.h
+1
-1
security/tomoyo/securityfs_if.c
security/tomoyo/securityfs_if.c
+2
-3
No files found.
security/tomoyo/common.c
View file @
e53cfda5
...
...
@@ -2681,10 +2681,8 @@ ssize_t tomoyo_write_control(struct tomoyo_io_buffer *head,
* tomoyo_close_control - close() for /sys/kernel/security/tomoyo/ interface.
*
* @head: Pointer to "struct tomoyo_io_buffer".
*
* Returns 0.
*/
int
tomoyo_close_control
(
struct
tomoyo_io_buffer
*
head
)
void
tomoyo_close_control
(
struct
tomoyo_io_buffer
*
head
)
{
/*
* If the file is /sys/kernel/security/tomoyo/query , decrement the
...
...
@@ -2694,7 +2692,6 @@ int tomoyo_close_control(struct tomoyo_io_buffer *head)
atomic_dec_and_test
(
&
tomoyo_query_observers
))
wake_up_all
(
&
tomoyo_answer_wait
);
tomoyo_notify_gc
(
head
,
false
);
return
0
;
}
/**
...
...
security/tomoyo/common.h
View file @
e53cfda5
...
...
@@ -958,7 +958,7 @@ 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
);
int
tomoyo_close_control
(
struct
tomoyo_io_buffer
*
head
);
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
,
const
struct
tomoyo_path_info
*
filename
);
...
...
security/tomoyo/securityfs_if.c
View file @
e53cfda5
...
...
@@ -143,14 +143,13 @@ static int tomoyo_open(struct inode *inode, struct file *file)
/**
* tomoyo_release - close() for /sys/kernel/security/tomoyo/ interface.
*
* @inode: Pointer to "struct inode".
* @file: Pointer to "struct file".
*
* Returns 0 on success, negative value otherwise.
*/
static
int
tomoyo_release
(
struct
inode
*
inode
,
struct
file
*
file
)
{
return
tomoyo_close_control
(
file
->
private_data
);
tomoyo_close_control
(
file
->
private_data
);
return
0
;
}
/**
...
...
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