aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2012-02-16 15:08:39 -0500
committerEric Paris <eparis@redhat.com>2012-04-09 12:22:30 -0400
commit47a93a5bcb131879d4425d4559e90ad82990825d (patch)
tree93bc837f9ffbd3f2ed6f7e44e2d2773714b9ada0 /security
parentLinux 3.4-rc2 (diff)
downloadlinux-dev-47a93a5bcb131879d4425d4559e90ad82990825d.tar.xz
linux-dev-47a93a5bcb131879d4425d4559e90ad82990825d.zip
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')
-rw-r--r--security/selinux/selinuxfs.c1
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 = {
.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,