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
selinux: Only audit permissions specified in policy
[firefly-linux-kernel-4.4.55.git]
/
fs
/
eventfd.c
diff --git
a/fs/eventfd.c
b/fs/eventfd.c
index 8b47e4200e65e00a64be1bb60a80091b6940ddb2..d26402ff06eaa1fbef5e347e627b029cc8239e8c 100644
(file)
--- a/
fs/eventfd.c
+++ b/
fs/eventfd.c
@@
-339,7
+339,7
@@
struct file *eventfd_file_create(unsigned int count, int flags)
ctx->flags = flags;
file = anon_inode_getfile("[eventfd]", &eventfd_fops, ctx,
ctx->flags = flags;
file = anon_inode_getfile("[eventfd]", &eventfd_fops, ctx,
-
flags & EFD_SHARED_FCNTL_FLAGS
);
+
O_RDWR | (flags & EFD_SHARED_FCNTL_FLAGS)
);
if (IS_ERR(file))
eventfd_free_ctx(ctx);
if (IS_ERR(file))
eventfd_free_ctx(ctx);