projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
anonfd: Allow making anon files read-only
[firefly-linux-kernel-4.4.55.git]
/
fs
/
signalfd.c
diff --git
a/fs/signalfd.c
b/fs/signalfd.c
index b07565c9438672015aa041e3fb57e4b01ca6e27c..1dabe4ee02fe93931ae741344405bee1daca3cd0 100644
(file)
--- a/
fs/signalfd.c
+++ b/
fs/signalfd.c
@@
-236,7
+236,7
@@
SYSCALL_DEFINE4(signalfd4, int, ufd, sigset_t __user *, user_mask,
* anon_inode_getfd() will install the fd.
*/
ufd = anon_inode_getfd("[signalfd]", &signalfd_fops, ctx,
-
flags & (O_CLOEXEC | O_NONBLOCK
));
+
O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK)
));
if (ufd < 0)
kfree(ctx);
} else {