diff options
author | Eric Paris <eparis@redhat.com> | 2012-02-16 15:08:39 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-04-09 12:22:30 -0400 |
commit | 47a93a5bcb131879d4425d4559e90ad82990825d (patch) | |
tree | 93bc837f9ffbd3f2ed6f7e44e2d2773714b9ada0 /security/selinux/selinuxfs.c | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) |
SELinux: allow seek operations on the file exposing policy
sesearch uses:
lseek(3, 0, SEEK_SET) = -1 ESPIPE (Illegal seek)
Make that work.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux/selinuxfs.c')
-rw-r--r-- | security/selinux/selinuxfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index d7018bfa1f00..d6ae2d407307 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c | |||
@@ -496,6 +496,7 @@ static const struct file_operations sel_policy_ops = { | |||
496 | .read = sel_read_policy, | 496 | .read = sel_read_policy, |
497 | .mmap = sel_mmap_policy, | 497 | .mmap = sel_mmap_policy, |
498 | .release = sel_release_policy, | 498 | .release = sel_release_policy, |
499 | .llseek = generic_file_llseek, | ||
499 | }; | 500 | }; |
500 | 501 | ||
501 | static ssize_t sel_write_load(struct file *file, const char __user *buf, | 502 | static ssize_t sel_write_load(struct file *file, const char __user *buf, |