From: Greg Kroah-Hartman Date: Fri, 17 Apr 2015 09:38:52 +0000 (+0200) Subject: 3.10-stable patches X-Git-Tag: v3.10.75~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=704b2434493ad27b4a1a63fe6bee1ebccc62ff07;p=thirdparty%2Fkernel%2Fstable-queue.git 3.10-stable patches added patches: selinux-fix-sel_write_enforce-broken-return-value.patch --- 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 index 00000000000..43efe8daaae --- /dev/null +++ b/queue-3.10/selinux-fix-sel_write_enforce-broken-return-value.patch @@ -0,0 +1,32 @@ +From 6436a123a147db51a0b06024a8350f4c230e73ff Mon Sep 17 00:00:00 2001 +From: Joe Perches +Date: Mon, 23 Mar 2015 18:01:35 -0700 +Subject: selinux: fix sel_write_enforce broken return value + +From: Joe Perches + +commit 6436a123a147db51a0b06024a8350f4c230e73ff upstream. + +Return a negative error value like the rest of the entries in this function. + +Signed-off-by: Joe Perches +Acked-by: Stephen Smalley +[PM: tweaked subject line] +Signed-off-by: Paul Moore +Signed-off-by: Greg Kroah-Hartman + +--- + 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; + diff --git a/queue-3.10/series b/queue-3.10/series index 6ecdf06f750..cfa43d0037b 100644 --- a/queue-3.10/series +++ b/queue-3.10/series @@ -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