Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
odroid-linux-3.10.y-rt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
oai
odroid-linux-3.10.y-rt
Commits
c6f3d811
Commit
c6f3d811
authored
Aug 26, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't leak O_CLOEXEC into ->f_flags
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ddd3e077
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fs/open.c
fs/open.c
+1
-1
fs/proc/fd.c
fs/proc/fd.c
+1
-1
No files found.
fs/open.c
View file @
c6f3d811
...
...
@@ -814,7 +814,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o
op
->
mode
=
0
;
/* Must never be set by userspace */
flags
&=
~
FMODE_NONOTIFY
;
flags
&=
~
FMODE_NONOTIFY
&
~
O_CLOEXEC
;
/*
* O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only
...
...
fs/proc/fd.c
View file @
c6f3d811
...
...
@@ -36,7 +36,7 @@ static int seq_show(struct seq_file *m, void *v)
if
(
file
)
{
struct
fdtable
*
fdt
=
files_fdtable
(
files
);
f_flags
=
file
->
f_flags
&
~
O_CLOEXEC
;
f_flags
=
file
->
f_flags
;
if
(
close_on_exec
(
fd
,
fdt
))
f_flags
|=
O_CLOEXEC
;
...
...
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