From fd1824e9b1fd180f410170bf2d02e1f098f53db9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Mar 2024 11:41:16 +0000 Subject: gentoo auto-resync : 01:03:2024 - 11:41:16 --- sys-process/Manifest.gz | Bin 10161 -> 10163 bytes sys-process/acct/Manifest | 3 ++ sys-process/acct/acct-6.6.4-r4.ebuild | 55 +++++++++++++++++++++ ...-fortify-source-3-sprintf-buffer-overflow.patch | 15 ++++++ sys-process/acct/files/acct.tmpfiles | 1 + 5 files changed, 74 insertions(+) create mode 100644 sys-process/acct/acct-6.6.4-r4.ebuild create mode 100644 sys-process/acct/files/acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch create mode 100644 sys-process/acct/files/acct.tmpfiles (limited to 'sys-process') diff --git a/sys-process/Manifest.gz b/sys-process/Manifest.gz index 6dcf387c6ff3..0e92330ee384 100644 Binary files a/sys-process/Manifest.gz and b/sys-process/Manifest.gz differ diff --git a/sys-process/acct/Manifest b/sys-process/acct/Manifest index 32a656e7722e..3d19204f36e2 100644 --- a/sys-process/acct/Manifest +++ b/sys-process/acct/Manifest @@ -1,8 +1,11 @@ AUX acct-6.6.4-cross-compile-fixed.patch 6906 BLAKE2B 8e8bab16813b499c316f2d47a53aab9d74261be3dd5c19078ca57d3f5de1879d38a88303f487d7d5b4daec3b95a8f797ca5a5b6358f960240607d9b239a5b95d SHA512 58dcd5a8aa14092bb1432616535e00e8078ad610fd2488f8b0af293859d8aeda5190b20c28b55cd1b4b1865942073febdc23bc8d3923c7feffae703dfaeb7d7f +AUX acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch 652 BLAKE2B ee7799f662e9af9ed76b6b8e3739a68cbe78894435137b36382da4d81f5ca7e4db0e0dfbcc690b5a37cb52ddadb412d370ae3c2a622ed3d6d4ae216492099b44 SHA512 127d13663e51bb2ae566391f21d5503ecb89920a5edf06d285baeb1fd495ddf4f497fe23e08e2c68039a0d9340b6a8a3ba46cc25c4b1a542477506eb1a71e5ea AUX acct.confd-r1 389 BLAKE2B a3c142c9b66260a6d855502098988be0c18b3fc49f95b1c4dd17b25e14ffaae9809172d02bed0614540991a1e449c1e3d61bdcdd2ebc0613d75b09ffc85b2eb6 SHA512 7d4bfd60f4ef05a55f3e93535c49ad56784f24912fa84991935d3b109e46fb543afaf682fcd085c9183c6747724c9537d25af07799221153eb4659bf5b821992 AUX acct.initd-r2 1080 BLAKE2B c1d2a49530df32adf143b4b3b50059602494df57efe0ef414c089589178f57646c1b42831d712486e6237bcc5035c3168653d55521cca9a31751d199adfc0d52 SHA512 1cf6143f65ce2a00646213b40d83d7aa29a206c740f2f6b81dc6674de3fa8a96ed86bcc32fefd58e2934ded17d49a95e40dfe1b805a6e92c35fa75b420a0b2a1 AUX acct.logrotate-r1 304 BLAKE2B 60ddfe6b5a8fdf75c82bdf43308ad6f2e1da0c533e532277eabff670c46bb874b5dee90f1bd0d98cba9218cc47e82fd4a91e66170ffd1d367d2d8a01c1e3e00d SHA512 54fcb419f433df2a64eb51ecfc8122c4945960ca7d745d7a8816fec441586e15321cdfacb2db1feeec23c66b1b02b4191d3fc53355379a75c2956a00bc743332 AUX acct.service 382 BLAKE2B 7a777c0d9195676d897bf95087a3af2175587e365969956de0d458e842144b6fa97c3e7e1bac402467c8611ef19915c55b562466104b6cbc75279225870c25dc SHA512 8c2523526eb3185765eac62676761af6758d0090d68ba48aeacc59c7a45f0722c867fb97d02ff3ceaa8d77637d2b915938d545f7d782e4f7aa46861f25364bd3 +AUX acct.tmpfiles 43 BLAKE2B 8b301d2fba8a9afdfcaf21f1c200b53448850891c0ec5dac21477591b1dbf98e86bfab5d172563f9c9c86139725bfabef8bc772f9bf869d40f5bd7b770cda12d SHA512 d76ca705e92794dad4c23086ccd2c82fb75576cc10a28db64d252bd8a77723e8e742fa86ad071f2929e3917d43e0d02c44fb5c97fd58b88484af9339055f3d81 DIST acct-6.6.4.tar.bz2 671480 BLAKE2B a5745d89dc4972756cb136572e90eee853e09c0d888d929993f724459616b5cc36005b6529eba3f503e1d3401bb852321e9274591e02ce30d60e3da16d10fba2 SHA512 aa1e47186564771763a794cfa06e53cd73f2f3961bf31270f3a9e2cc93d6e20af55938ab5573d37908b05572cc7dc752c300b703c2080293e07153fed278fc55 EBUILD acct-6.6.4-r3.ebuild 1145 BLAKE2B 42e033009e1f010fd1b0124d749faaba44d0197cfb95f0ffa2073ef4f5c17daa8d2bdc74976825fa2c756801ef65abed95dfa1c0bb37a449126b3177e915e3f8 SHA512 a1d77fa3b8dd555f3c28068d91930112b68af28ae8538ab345925ccad30c306601f8d9593853e794ec2fb195b713e804bb7d774e19462597a3debf838b799e89 +EBUILD acct-6.6.4-r4.ebuild 1216 BLAKE2B 3c77156b3df6dd0e17a6b706a0659ebd3c60e33fbf750d0b123de63ad096f2d77c5a56de7b72d5ce93d610f2ab11759ab89616d0bbc16fdd22f619e830364cfd SHA512 49c2485f8f74829d89ffe3649cd052897a7d1a315a181f4766ca7aa3757ce702ed3847a885ec202e8c015789607fbdfb6a57048234932a1f768b199dc50d5727 MISC metadata.xml 339 BLAKE2B 71c383849cd1dfbeb9f0330d4f5b2aade51931fc989f310962734fa2ae32566db5e7d702b3ac80dd3552ed04b0d6917eaed31b2a9733a6973469d5ac5f4c0900 SHA512 2de031ec151c48c284aeee18c1084b92f1d8939dd70315b67eef1dde7cf31e48cf32679ec857096f151efc3b8bd2155c64dd2b6d37c3a41471967fbd7f2038a3 diff --git a/sys-process/acct/acct-6.6.4-r4.ebuild b/sys-process/acct/acct-6.6.4-r4.ebuild new file mode 100644 index 000000000000..980c95891435 --- /dev/null +++ b/sys-process/acct/acct-6.6.4-r4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd tmpfiles + +DESCRIPTION="GNU system accounting utilities" +HOMEPAGE="https://savannah.gnu.org/projects/acct/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="selinux" + +RDEPEND="selinux? ( sec-policy/selinux-acct )" +BDEPEND="sys-apps/texinfo" + +PATCHES=( + "${FILESDIR}"/${PN}-6.6.4-cross-compile-fixed.patch + "${FILESDIR}"/${PN}-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --enable-linux-multiformat +} + +src_install() { + default + + keepdir /var/account + + newinitd "${FILESDIR}"/acct.initd-r2 acct + newconfd "${FILESDIR}"/acct.confd-r1 acct + + systemd_dounit "${FILESDIR}"/acct.service + + insinto /etc/logrotate.d + newins "${FILESDIR}"/acct.logrotate-r1 psacct + + # sys-apps/sysvinit already provides this + rm "${ED}"/usr/bin/last "${ED}"/usr/share/man/man1/last.1 || die + + newtmpfiles "${FILESDIR}"/acct.tmpfiles acct.conf +} + +pkg_postinst() { + tmpfiles_process acct.conf +} diff --git a/sys-process/acct/files/acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch b/sys-process/acct/files/acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch new file mode 100644 index 000000000000..83f6e33415e7 --- /dev/null +++ b/sys-process/acct/files/acct-6.6.4-fortify-source-3-sprintf-buffer-overflow.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/925419 +https://bugzilla.redhat.com/2190057 +https://src.fedoraproject.org/rpms/psacct/blob/rawhide/f/psacct-6.6.4-sprintf-buffer-overflow.patch + +--- a/dev_hash.c ++++ b/dev_hash.c +@@ -147,7 +147,7 @@ static void setup_devices(char *dirname) + { + char *fullname = (char *) alloca ((strlen (dirname) + + NAMLEN (dp) +- + 1) * sizeof (char)); ++ + 2) * sizeof (char)); /* slash + null; Fedora BZ#2190057 */ + + (void)sprintf (fullname, "%s/%s", dirname, dp->d_name); + if (stat (fullname, &sp)) diff --git a/sys-process/acct/files/acct.tmpfiles b/sys-process/acct/files/acct.tmpfiles new file mode 100644 index 000000000000..8f2b1e6f303c --- /dev/null +++ b/sys-process/acct/files/acct.tmpfiles @@ -0,0 +1 @@ +f /var/account/pacct 0600 - - - - -- cgit v1.2.3