Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
89068c57
Commit
89068c57
authored
Feb 07, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take ima_file_free() to proper place.
Hooks: Just Say No. Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1e93d005
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
fs/file_table.c
fs/file_table.c
+1
-0
security/security.c
security/security.c
+0
-2
No files found.
fs/file_table.c
View file @
89068c57
...
...
@@ -253,6 +253,7 @@ void __fput(struct file *file)
if
(
file
->
f_op
&&
file
->
f_op
->
release
)
file
->
f_op
->
release
(
inode
,
file
);
security_file_free
(
file
);
ima_file_free
(
file
);
if
(
unlikely
(
S_ISCHR
(
inode
->
i_mode
)
&&
inode
->
i_cdev
!=
NULL
))
cdev_put
(
inode
->
i_cdev
);
fops_put
(
file
->
f_op
);
...
...
security/security.c
View file @
89068c57
...
...
@@ -666,8 +666,6 @@ int security_file_alloc(struct file *file)
void
security_file_free
(
struct
file
*
file
)
{
security_ops
->
file_free_security
(
file
);
if
(
file
->
f_dentry
)
ima_file_free
(
file
);
}
int
security_file_ioctl
(
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
...
...
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