summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Destuynder <kang@gentoo.org>2004-07-16 17:20:25 +0000
committerGuillaume Destuynder <kang@gentoo.org>2004-07-16 17:20:25 +0000
commit9a3a6da003e0ead9c0055cf12712cfecceed793c (patch)
tree779145ded7fe8939947c8737369ec725aff86a8e /sys-kernel/rsbac-dev-sources
parentStable on alpha. (Manifest recommit) (diff)
downloadgentoo-2-9a3a6da003e0ead9c0055cf12712cfecceed793c.tar.gz
gentoo-2-9a3a6da003e0ead9c0055cf12712cfecceed793c.tar.bz2
gentoo-2-9a3a6da003e0ead9c0055cf12712cfecceed793c.zip
Fixes CAN 0497, #56479
Diffstat (limited to 'sys-kernel/rsbac-dev-sources')
-rw-r--r--sys-kernel/rsbac-dev-sources/ChangeLog10
-rw-r--r--sys-kernel/rsbac-dev-sources/Manifest6
-rw-r--r--sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r2 (renamed from sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r1)0
-rw-r--r--sys-kernel/rsbac-dev-sources/files/rsbac-dev-sources-CAN-2004-0497.patch75
-rw-r--r--sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r2.ebuild (renamed from sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r1.ebuild)3
5 files changed, 90 insertions, 4 deletions
diff --git a/sys-kernel/rsbac-dev-sources/ChangeLog b/sys-kernel/rsbac-dev-sources/ChangeLog
index 9f1e5b8d209d..dcf0b513e54a 100644
--- a/sys-kernel/rsbac-dev-sources/ChangeLog
+++ b/sys-kernel/rsbac-dev-sources/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-kernel/rsbac-dev-sources
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/rsbac-dev-sources/ChangeLog,v 1.5 2004/06/30 20:48:19 kang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/rsbac-dev-sources/ChangeLog,v 1.6 2004/07/16 17:20:25 kang Exp $
+
+*rsbac-dev-sources-2.6.7-r2 (16 Jul 2004)
+
+ 16 Jul 2004; Guillaume Destuynder <kang@gentoo.org>
+ +files/rsbac-dev-sources-CAN-2004-0497.patch,
+ +rsbac-dev-sources-2.6.7-r2.ebuild,
+ -rsbac-dev-sources-2.6.7-r1.ebuild:
+ Fixes CAN 0497 and #56479.
*rsbac-dev-sources-2.6.7-r1 (30 Jun 2004)
diff --git a/sys-kernel/rsbac-dev-sources/Manifest b/sys-kernel/rsbac-dev-sources/Manifest
index 990bc585130a..542133183daa 100644
--- a/sys-kernel/rsbac-dev-sources/Manifest
+++ b/sys-kernel/rsbac-dev-sources/Manifest
@@ -1,6 +1,8 @@
MD5 fee9abc7797fef753c42454679bae9a7 metadata.xml 456
-MD5 c882d47724b9754b4340bb2fed7cee70 ChangeLog 1807
-MD5 99d09db511f0c31b77c0e063043f6aad rsbac-dev-sources-2.6.7-r1.ebuild 1318
+MD5 73df187330df3a18491275c67aec5d6a rsbac-dev-sources-2.6.7-r2.ebuild 1357
+MD5 31c40782834c33e60a52b3bc9b0ef75b ChangeLog 2058
MD5 a869ab037c7e264df5f8e899864f08e9 files/rsbac-dev-sources-v1.2.3-3.patch 557
MD5 6451bd210935a3978fd3a3edac673591 files/rsbac-dev-sources-iptables-dos.patch 389
MD5 ff6ffe7543ce01c98eb4ca1c8d9ca1c3 files/digest-rsbac-dev-sources-2.6.7-r1 205
+MD5 b6e38b41c8a79943df2ab2642149d06f files/rsbac-dev-sources-CAN-2004-0497.patch 2214
+MD5 ff6ffe7543ce01c98eb4ca1c8d9ca1c3 files/digest-rsbac-dev-sources-2.6.7-r2 205
diff --git a/sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r1 b/sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r2
index 89b064e672f0..89b064e672f0 100644
--- a/sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r1
+++ b/sys-kernel/rsbac-dev-sources/files/digest-rsbac-dev-sources-2.6.7-r2
diff --git a/sys-kernel/rsbac-dev-sources/files/rsbac-dev-sources-CAN-2004-0497.patch b/sys-kernel/rsbac-dev-sources/files/rsbac-dev-sources-CAN-2004-0497.patch
new file mode 100644
index 000000000000..1e4ba6f7601a
--- /dev/null
+++ b/sys-kernel/rsbac-dev-sources/files/rsbac-dev-sources-CAN-2004-0497.patch
@@ -0,0 +1,75 @@
+# This is a BitKeeper generated diff -Nru style patch.
+#
+# ChangeSet
+# 2004/07/02 20:55:04-07:00 chrisw@osdl.org
+# [PATCH] chown permission check fix for ATTR_GID
+#
+# SuSE discovered this problem with chown and ATTR_GID. Make sure user
+# is authorized to change the group, CAN-2004-0497.
+#
+# fs/attr.c
+# 2004/07/02 09:07:32-07:00 chrisw@osdl.org +2 -1
+# chown permission check fix for ATTR_GID
+#
+diff -Nru a/fs/attr.c b/fs/attr.c
+--- a/fs/attr.c 2004-07-08 16:35:57 -07:00
++++ b/fs/attr.c 2004-07-08 16:35:57 -07:00
+@@ -35,7 +35,8 @@
+
+ /* Make sure caller can chgrp. */
+ if ((ia_valid & ATTR_GID) &&
+- (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid) &&
++ (current->fsuid != inode->i_uid ||
++ (!in_group_p(attr->ia_gid) && attr->ia_gid != inode->i_gid)) &&
+ !capable(CAP_CHOWN))
+ goto error;
+
+# This is a BitKeeper generated diff -Nru style patch.
+#
+# ChangeSet
+# 2004/07/02 18:48:26-07:00 chrisw@osdl.org
+# [PATCH] check attr updates in /proc
+#
+# Any proc entry with default proc_file_inode_operations allow unauthorized
+# attribute updates. This is very dangerous for proc entries that rely
+# solely on file permissions for open/read/write.
+#
+# Signed-off-by: Chris Wright <chrisw@osdl.org>
+# Signed-off-by: Linus Torvalds <torvalds@osdl.org>
+#
+# fs/proc/generic.c
+# 2004/07/02 15:47:55-07:00 chrisw@osdl.org +14 -7
+# check attr updates in /proc
+#
+diff -Nru a/fs/proc/generic.c b/fs/proc/generic.c
+--- a/fs/proc/generic.c 2004-07-08 17:03:20 -07:00
++++ b/fs/proc/generic.c 2004-07-08 17:03:20 -07:00
+@@ -231,14 +231,21 @@
+ static int proc_notify_change(struct dentry *dentry, struct iattr *iattr)
+ {
+ struct inode *inode = dentry->d_inode;
+- int error = inode_setattr(inode, iattr);
+- if (!error) {
+- struct proc_dir_entry *de = PDE(inode);
+- de->uid = inode->i_uid;
+- de->gid = inode->i_gid;
+- de->mode = inode->i_mode;
+- }
++ struct proc_dir_entry *de = PDE(inode);
++ int error;
+
++ error = inode_change_ok(inode, iattr);
++ if (error)
++ goto out;
++
++ error = inode_setattr(inode, iattr);
++ if (error)
++ goto out;
++
++ de->uid = inode->i_uid;
++ de->gid = inode->i_gid;
++ de->mode = inode->i_mode;
++out:
+ return error;
+ }
+
diff --git a/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r1.ebuild b/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r2.ebuild
index f9d3a8ba3071..511fa74f6665 100644
--- a/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r1.ebuild
+++ b/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r1.ebuild,v 1.1 2004/06/30 20:48:19 kang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/rsbac-dev-sources/rsbac-dev-sources-2.6.7-r2.ebuild,v 1.1 2004/07/16 17:20:25 kang Exp $
IUSE=""
ETYPE="sources"
@@ -17,6 +17,7 @@ RGPV_SRC="mirror://rsbac-patches-${KV_MAJOR}.${KV_MINOR}-${RGPV}.tar.bz2"
UNIPATCH_STRICTORDER="yes"
UNIPATCH_LIST="${FILESDIR}/${PN}-iptables-dos.patch
+ ${FILESDIR}/${PN}-CAN-2004-0497.patch
${DISTDIR}/rsbac-patches-${KV_MAJOR}.${KV_MINOR}-${RGPV}.tar.bz2
${FILESDIR}/${PN}-v1.2.3-3.patch"
UNIPATCH_DOCS="${WORKDIR}/patches/rsbac-patches-${KV_MAJOR}.${KV_MINOR}-${RGPV}/0000_README"