projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0034102
)
SELinux: allow seek operations on the file exposing policy
author
Eric Paris
<eparis@redhat.com>
Thu, 16 Feb 2012 20:08:39 +0000
(15:08 -0500)
committer
Eric Paris
<eparis@redhat.com>
Mon, 9 Apr 2012 16:22:30 +0000
(12:22 -0400)
sesearch uses:
lseek(3, 0, SEEK_SET) = -1 ESPIPE (Illegal seek)
Make that work.
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/selinuxfs.c
patch
|
blob
|
history
diff --git
a/security/selinux/selinuxfs.c
b/security/selinux/selinuxfs.c
index d7018bfa1f00a607aeade4d0047a11ccf8cf7a7e..d6ae2d407307e4747891b809061ff1ceeb4ffe68 100644
(file)
--- a/
security/selinux/selinuxfs.c
+++ b/
security/selinux/selinuxfs.c
@@
-496,6
+496,7
@@
static const struct file_operations sel_policy_ops = {
.read = sel_read_policy,
.mmap = sel_mmap_policy,
.release = sel_release_policy,
+ .llseek = generic_file_llseek,
};
static ssize_t sel_write_load(struct file *file, const char __user *buf,