Revision bump for security reasons. Set utempter to sgid utmp instead of suid root...
authorSven Wegener <swegener@gentoo.org>
Fri, 17 Dec 2004 17:50:39 +0000 (17:50 +0000)
committerSven Wegener <swegener@gentoo.org>
Fri, 17 Dec 2004 17:50:39 +0000 (17:50 +0000)
sys-apps/utempter/ChangeLog
sys-apps/utempter/Manifest
sys-apps/utempter/files/digest-utempter-0.5.5.4 [deleted file]
sys-apps/utempter/files/digest-utempter-0.5.5.5-r1 [moved from sys-apps/utempter/files/digest-utempter-0.5.5.5 with 100% similarity]
sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch [deleted file]
sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch [deleted file]
sys-apps/utempter/utempter-0.5.5.4.ebuild [deleted file]
sys-apps/utempter/utempter-0.5.5.5-r1.ebuild [moved from sys-apps/utempter/utempter-0.5.5.5.ebuild with 85% similarity]

index b6ce43bd4a78bbd2ac73e8e2bedc86e348fcb494..a913ec599c22858de6d315bb3cd96ead3f621815 100644 (file)
@@ -1,6 +1,16 @@
 # ChangeLog for sys-apps/utempter
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.24 2004/07/24 17:27:27 geoman Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/ChangeLog,v 1.25 2004/12/17 17:50:39 swegener Exp $
+
+*utempter-0.5.5.5-r1 (17 Dec 2004)
+
+  17 Dec 2004; Sven Wegener <swegener@gentoo.org>
+  -files/utempter-0.5.3.2-soname-makefile-fix.patch,
+  -files/utempter-0.5.5.4-soname-makefile-fix.patch,
+  -utempter-0.5.5.4.ebuild, +utempter-0.5.5.5-r1.ebuild,
+  -utempter-0.5.5.5.ebuild:
+  Revision bump for security reasons. Set utempter to sgid utmp instead of
+  suid root. Use non-lazy bindings. Removed old ebuild.
 
   24 Jul 2004; Stephen P. Becker <geoman@gentoo.org> utempter-0.5.5.5.ebuild:
   Stable on mips.
index b408b0f41a2cf3b07dffe478507163110ea67941..533146e681e05e24d85024af362c8b7a42d27bc6 100644 (file)
@@ -1,9 +1,15 @@
-MD5 0d4bf83c384a6dd38f94a93d4afdd903 ChangeLog 3403
-MD5 d8570e14072e7d364e2ed684c02fb361 utempter-0.5.5.5.ebuild 1197
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 52e985436ed35f1e0f14b1c75f48199e utempter-0.5.5.5-r1.ebuild 1311
+MD5 8877ca2e25c3bb48652f671c4551d9d9 ChangeLog 3814
 MD5 ead67259560e11f3f635a49255114bf6 metadata.xml 181
-MD5 2e12659dd7ec4d6c1374d06918cd0637 utempter-0.5.5.4.ebuild 1189
-MD5 d3293569252b4437ee84ef41b158aa00 files/digest-utempter-0.5.5.5 68
-MD5 b2dc09a11b51ceac5735f963a718fa32 files/utempter-0.5.3.2-soname-makefile-fix.patch 932
-MD5 d0e4e8890ac8dd494a927260b110b33a files/digest-utempter-0.5.5.4 68
-MD5 b2dc09a11b51ceac5735f963a718fa32 files/utempter-0.5.5.4-soname-makefile-fix.patch 932
+MD5 d3293569252b4437ee84ef41b158aa00 files/digest-utempter-0.5.5.5-r1 68
 MD5 b2dc09a11b51ceac5735f963a718fa32 files/utempter-0.5.5.5-soname-makefile-fix.patch 932
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBwxx6I1lqEGTUzyQRAggSAKC5XDR0gYLeXOWC5Q6b3SYBOo0W5wCfcZ7A
+N2Wb5RX36uxfRdQSyqMxC70=
+=I9sW
+-----END PGP SIGNATURE-----
diff --git a/sys-apps/utempter/files/digest-utempter-0.5.5.4 b/sys-apps/utempter/files/digest-utempter-0.5.5.4
deleted file mode 100644 (file)
index f821f14..0000000
+++ /dev/null
@@ -1 +0,0 @@
-MD5 4fb1fd3dcc99c4309796478b80755084 utempter-0.5.5-4.src.rpm 21067
diff --git a/sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.3.2-soname-makefile-fix.patch
deleted file mode 100644 (file)
index ae50456..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -urN utempter-0.5.3.orig/Makefile utempter-0.5.3/Makefile
---- utempter-0.5.3.orig/Makefile       2004-04-07 23:02:39.000000000 -0400
-+++ utempter-0.5.3/Makefile    2004-04-07 23:04:33.000000000 -0400
-@@ -5,6 +5,10 @@
- CVSROOT=$(shell cat CVS/Root)
- # major number of the .so lib
- SOMAJOR = 0
-+# minor number of the .so lib
-+SOMINOR = 5
-+# major number of the .so lib
-+SOMICRO = 3
- 
- SHAREDLIB = lib$(NAME).so
- SONAME = $(SHAREDLIB).$(SOMAJOR)
-@@ -29,6 +33,8 @@
-       install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include
-       install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION)
-       ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB)
-+      ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR).$(SOMINOR)
-+      ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR)
- 
- $(SHAREDLIB): utmpintf.os
-       $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
diff --git a/sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch b/sys-apps/utempter/files/utempter-0.5.5.4-soname-makefile-fix.patch
deleted file mode 100644 (file)
index ae50456..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -urN utempter-0.5.3.orig/Makefile utempter-0.5.3/Makefile
---- utempter-0.5.3.orig/Makefile       2004-04-07 23:02:39.000000000 -0400
-+++ utempter-0.5.3/Makefile    2004-04-07 23:04:33.000000000 -0400
-@@ -5,6 +5,10 @@
- CVSROOT=$(shell cat CVS/Root)
- # major number of the .so lib
- SOMAJOR = 0
-+# minor number of the .so lib
-+SOMINOR = 5
-+# major number of the .so lib
-+SOMICRO = 3
- 
- SHAREDLIB = lib$(NAME).so
- SONAME = $(SHAREDLIB).$(SOMAJOR)
-@@ -29,6 +33,8 @@
-       install -m 644 utempter.h $(RPM_BUILD_ROOT)/usr/include
-       install -m 644 $(SHAREDLIB) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(VERSION)
-       ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB)
-+      ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR).$(SOMINOR)
-+      ln -sf $(SHAREDLIB).$(VERSION) $(RPM_BUILD_ROOT)/$(LIBDIR)/$(SHAREDLIB).$(SOMAJOR)
- 
- $(SHAREDLIB): utmpintf.os
-       $(CC) -o $@ -shared -Wl,-soname,$(SONAME) $^ -lc
diff --git a/sys-apps/utempter/utempter-0.5.5.4.ebuild b/sys-apps/utempter/utempter-0.5.5.4.ebuild
deleted file mode 100644 (file)
index 11e6e3e..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.5.4.ebuild,v 1.13 2004/11/05 23:22:16 mr_bones_ Exp $
-
-inherit rpm eutils
-
-MY_P=${P%.*}-${PV##*.}
-S=${WORKDIR}/${P%.*}
-DESCRIPTION="App that allows non-privileged apps to write utmp (login) info, which needs root access"
-HOMEPAGE="http://www.redhat.com/"
-SRC_URI="ftp://fr2.rpmfind.net/linux/fedora/core/development/SRPMS/${MY_P}.src.rpm"
-
-LICENSE="|| ( MIT LGPL-2 )"
-SLOT="0"
-KEYWORDS="x86 ppc sparc ~mips alpha arm hppa amd64 ia64 ~ppc64"
-IUSE=""
-
-RDEPEND="virtual/libc"
-
-pkg_setup() {
-       enewgroup utmp 406
-}
-
-src_unpack() {
-       rpm_src_unpack
-       cd ${S}
-       epatch ${FILESDIR}/${P}-soname-makefile-fix.patch
-}
-
-src_compile() {
-       make RPM_OPT_FLAGS="${CFLAGS}" || die
-}
-
-src_install() {
-       make \
-               RPM_BUILD_ROOT="${D}" \
-               LIBDIR=/usr/lib \
-               install || die
-       dobin utmp
-}
-
-
-pkg_postinst() {
-       if [ "${ROOT}" = "/" ]
-       then
-               if [ -f /var/log/wtmp ]
-               then
-                       chown root:utmp /var/log/wtmp
-                       chmod 664 /var/log/wtmp
-               fi
-
-               if [ -f /var/run/utmp ]
-               then
-                       chown root:utmp /var/run/utmp
-                       chmod 664 /var/run/utmp
-               fi
-       fi
-}
similarity index 85%
rename from sys-apps/utempter/utempter-0.5.5.5.ebuild
rename to sys-apps/utempter/utempter-0.5.5.5-r1.ebuild
index b22bb84dd7c6704780195fe9c221e0fe3130533d..cc5b2d4d4f53ae8331986cb95e80ab61a8cf2ff7 100644 (file)
@@ -1,8 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.5.5.ebuild,v 1.6 2004/11/05 23:22:16 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/utempter/utempter-0.5.5.5-r1.ebuild,v 1.1 2004/12/17 17:50:39 swegener Exp $
 
-inherit rpm eutils
+inherit rpm eutils flag-o-matic
 
 MY_P=${P%.*}-${PV##*.}
 S=${WORKDIR}/${P%.*}
@@ -29,6 +29,8 @@ src_unpack() {
 }
 
 src_compile() {
+       append-ldflags -Wl,-z,now
+
        make RPM_OPT_FLAGS="${CFLAGS}" || die
 }
 
@@ -38,6 +40,9 @@ src_install() {
                LIBDIR=/usr/lib \
                install || die
        dobin utmp
+
+       fowners root:utmp /usr/sbin/utempter
+       fperms 2755 /usr/sbin/utempter
 }