Add warning in pkg_postinst if /etc/pam.d/cron is SUID and give user instructions...
authorAaron Walker <ka0ttic@gentoo.org>
Thu, 18 Nov 2004 17:00:27 +0000 (17:00 +0000)
committerAaron Walker <ka0ttic@gentoo.org>
Thu, 18 Nov 2004 17:00:27 +0000 (17:00 +0000)
sys-apps/vixie-cron/ChangeLog
sys-apps/vixie-cron/Manifest
sys-apps/vixie-cron/vixie-cron-4.1-r4.ebuild

index cb64c6a97883476096715db49b8b3178f488255f..516a8bf49b36d322c507ef1357baf646cfa08616 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for sys-apps/vixie-cron
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.36 2004/11/16 00:34:57 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/ChangeLog,v 1.37 2004/11/18 17:00:27 ka0ttic Exp $
+
+  18 Nov 2004; Aaron Walker <ka0ttic@gentoo.org> vixie-cron-4.1-r4.ebuild:
+  Add warning in pkg_postinst if /etc/pam.d/cron is SUID and give user
+  instructions for fixing permissions.
 
 *vixie-cron-4.1-r4 (15 Nov 2004)
 
index eb7b30e337fc2950d3eaa9e5ef00ac1d5457fb80..3d5bcbd46abb747b5681e6f2d1d9091e37f72d9a 100644 (file)
@@ -6,9 +6,9 @@ MD5 3ff8b5eb733d9a828e916a46eabfa6ca vixie-cron-3.0.1-r4.ebuild 1852
 MD5 141bf296f623dc44f4bfa4d856dc21fa vixie-cron-3.0.1-r1.ebuild 1502
 MD5 36b96df568b03fc07852be8e5afd893f vixie-cron-4.1-r2.ebuild 2605
 MD5 dd33c1120b51b3d049054c798c20d5fa vixie-cron-3.0.1-r3.ebuild 1748
-MD5 244e99c75d80984efafd0e32dc9f4693 vixie-cron-4.1-r4.ebuild 2700
+MD5 160084254a595314c79e01468069ed52 vixie-cron-4.1-r4.ebuild 3082
 MD5 ab3b7df1ed3ce81f23a9050de83ca101 vixie-cron-3.0.1-r5.ebuild 2035
-MD5 296c8a871c48d84d4429742890bf0789 ChangeLog 9357
+MD5 10a4e440db2065a01e99586d198acdd4 ChangeLog 9543
 MD5 0fcc78652b11c683f3fe76d614934379 metadata.xml 288
 MD5 dfd6ea62f7a18c13729d8c240f7692af vixie-cron-4.1-r1.ebuild 2062
 MD5 8692002451e69ee31d667eb2d0dc904d files/vixie-cron-4.1-cron.deny 220
@@ -34,7 +34,7 @@ MD5 1915f29deae7e87c569877f1dbbbec67 files/vixie-cron-3.0.1-selinux.diff.bz2 185
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBmUtFEZCkKN40op4RAn0WAJ9O4oSHLbxLVpXj1ZUYoPf7uKD17QCZAbdn
-JKn90N7WC+X14aVRDLILy+4=
-=Z7QF
+iD8DBQFBnNU1EZCkKN40op4RAk5GAJ9hvPj7i5G22Jrva9IHSNzB4krr9gCgxZEi
+Bqda5KOQIYxr7ekG6J4vSK8=
+=GiCi
 -----END PGP SIGNATURE-----
index 069349580772c99a96e8eb0e7d8ed6ed698c6132..ce4b3538a98e55f36c02d68ed07d3996adb9460c 100644 (file)
@@ -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-apps/vixie-cron/vixie-cron-4.1-r4.ebuild,v 1.1 2004/11/16 00:34:57 ka0ttic Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/vixie-cron/vixie-cron-4.1-r4.ebuild,v 1.2 2004/11/18 17:00:27 ka0ttic Exp $
 
 inherit eutils flag-o-matic toolchain-funcs
 
@@ -102,4 +102,16 @@ pkg_postinst() {
                ewarn "rc-update del vcron"
                ewarn "rc-update add vixie-cron default"
        fi
+
+       # bug 71326
+       if [ -u ${ROOT}/etc/pam.d/cron ] ; then
+               echo
+               ewarn "Warning: previous ebuilds didn't reset permissions prior"
+               ewarn "to installing crontab, resulting in /etc/pam.d/cron being"
+               ewarn "installed with the SUID and executable bits set."
+               ewarn
+               ewarn "Run the following as root to set the proper permissions:"
+               ewarn "   chmod 0644 /etc/pam.d/cron"
+               echo
+       fi
 }