]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2015 09:38:52 +0000 (11:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2015 09:38:52 +0000 (11:38 +0200)
added patches:
selinux-fix-sel_write_enforce-broken-return-value.patch

queue-3.10/selinux-fix-sel_write_enforce-broken-return-value.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/selinux-fix-sel_write_enforce-broken-return-value.patch b/queue-3.10/selinux-fix-sel_write_enforce-broken-return-value.patch
new file mode 100644 (file)
index 0000000..43efe8d
--- /dev/null
@@ -0,0 +1,32 @@
+From 6436a123a147db51a0b06024a8350f4c230e73ff Mon Sep 17 00:00:00 2001
+From: Joe Perches <joe@perches.com>
+Date: Mon, 23 Mar 2015 18:01:35 -0700
+Subject: selinux: fix sel_write_enforce broken return value
+
+From: Joe Perches <joe@perches.com>
+
+commit 6436a123a147db51a0b06024a8350f4c230e73ff upstream.
+
+Return a negative error value like the rest of the entries in this function.
+
+Signed-off-by: Joe Perches <joe@perches.com>
+Acked-by:  Stephen Smalley <sds@tycho.nsa.gov>
+[PM: tweaked subject line]
+Signed-off-by: Paul Moore <pmoore@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ security/selinux/selinuxfs.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/security/selinux/selinuxfs.c
++++ b/security/selinux/selinuxfs.c
+@@ -150,7 +150,7 @@ static ssize_t sel_write_enforce(struct
+               goto out;
+       /* No partial writes. */
+-      length = EINVAL;
++      length = -EINVAL;
+       if (*ppos != 0)
+               goto out;
index 6ecdf06f7504bd305852219c056b19933c03d251..cfa43d0037b2ab289223008e0012d6228d0cc5d8 100644 (file)
@@ -1,3 +1,4 @@
 alsa-hda-add-one-more-node-in-the-eapd-supporting-candidate-list.patch
 alsa-usb-creative-usb-x-fi-pro-sb1095-volume-knob-support.patch
 alsa-hda-fix-headphone-pin-config-for-lifebook-t731.patch
+selinux-fix-sel_write_enforce-broken-return-value.patch