Gentoo Archives: gentoo-dev

From: Tomas Mozes <hydrapolic@×××××.com>
To: gentoo development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] 2021-07-07-systemd-tmpfiles: add news item
Date: Fri, 09 Jul 2021 06:50:22
Message-Id: CAG6MAzR5T0O5oOz4bjJn_upGLWHu_o0VDzSJha6e7nX=MJmf8w@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH] 2021-07-07-systemd-tmpfiles: add news item by Georgy Yakovlev
1 On Fri, Jul 9, 2021 at 4:38 AM Georgy Yakovlev <gyakovlev@g.o> wrote:
2
3 > Signed-off-by: Sam James <sam@g.o>
4 > Signed-off-by: Georgy Yakovlev <gyakovlev@g.o>
5 > ---
6 > .../2021-07-07-systemd-tmpfiles.en.txt | 48 +++++++++++++++++++
7 > 1 file changed, 48 insertions(+)
8 > create mode 100644
9 > 2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
10 >
11 > diff --git
12 > a/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
13 > b/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
14 > new file mode 100644
15 > index 0000000..0960663
16 > --- /dev/null
17 > +++ b/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
18 > @@ -0,0 +1,48 @@
19 > +Title: systemd-tmpfiles replaces opentmpfiles due to security issues
20 > +Author: Georgy Yakovlev <gyakovlev@g.o>
21 > +Author: Sam James <sam@g.o>
22 > +Posted: 2021-07-07
23 > +Revision: 1
24 > +News-Item-Format: 2.0
25 > +Display-If-Installed: virtual/tmpfiles
26 > +
27 > +On 2021-07-06, the sys-apps/opentmpfiles package was masked due to a
28 > +root privilege escalation vulnerability (CVE-2017-18925 [0],
29 > +bug #751415 [1], issue 4 [2] upstream).
30 > +
31 > +The use of opentmpfiles is discouraged by its maintainer due to the
32 > +unpatched vulnerability and other long-standing bugs [3].
33 > +
34 > +Users will start seeing their package manager trying to replace
35 > +sys-apps/opentmpfiles with sys-apps/systemd-tmpfiles because it is
36 > +another provider of virtual/tmpfiles.
37 > +
38 > +Despite the name, 'systemd-tmpfiles' does not depend on systemd, does
39 > +not use dbus, and is just a drop-in replacement for opentmpfiles. It is
40 > +a small binary built from systemd source code, but works separately,
41 > +similarly to eudev or elogind. It is known to work on both glibc and
42 > +musl systems.
43 > +
44 > +Note that systemd-tmpfiles is specifically for non-systemd systems. It
45 > +is intended to be used on an OpenRC system.
46 > +
47 > +If you wish to selectively test systemd-tmpfiles, follow those steps:
48 > +
49 > + 1. # emerge --oneshot sys-apps/systemd-tmpfiles
50 > + 2. # reboot
51 > +
52 > +No other steps required.
53 > +
54 > +If, after reviewing the linked bug reference for opentmpfiles, you feel
55 > +your system is not vulnerable/applicable to the attack described, you
56 > +can unmask[4] opentmpfiles at your own risk:
57 > +
58 > +1. In /etc/portage/package.unmask, add:
59 > +-sys-apps/opentmpfiles
60 > +2. # emerge --oneshot sys-apps/opentmpfiles
61 > +
62 > +[0] https://nvd.nist.gov/vuln/detail/CVE-2017-18925
63 > +[1] https://bugs.gentoo.org/751415
64 > +[2] https://github.com/OpenRC/opentmpfiles/issues/4
65 > +[3] https://bugs.gentoo.org/741216
66 > +[4] https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package
67 > --
68 > 2.32.0
69 >
70 >
71 >
72 Plus maybe removing these dead symlinks:
73 /etc/runlevels/boot/opentmpfiles-setup
74 /etc/runlevels/sysinit/opentmpfiles-dev

Replies

Subject Author
Re: [gentoo-dev] [PATCH] 2021-07-07-systemd-tmpfiles: add news item Georgy Yakovlev <gyakovlev@g.o>