Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: Georgy Yakovlev <gyakovlev@g.o>, Sam James <sam@g.o>
Subject: Re: [gentoo-dev] [PATCH] 2021-07-07-systemd-tmpfiles: add news item
Date: Fri, 09 Jul 2021 07:11:22
Message-Id: 91c687a4b421cf2e5b931f4c5e88c9360148355d.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] 2021-07-07-systemd-tmpfiles: add news item by Georgy Yakovlev
1 On Thu, 2021-07-08 at 21:43 -0700, Georgy Yakovlev wrote:
2 > Signed-off-by: Sam James <sam@g.o>
3 > Signed-off-by: Georgy Yakovlev <gyakovlev@g.o>
4 > ---
5 > .../2021-07-07-systemd-tmpfiles.en.txt | 64 +++++++++++++++++++
6 > 1 file changed, 64 insertions(+)
7 > create mode 100644 2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
8 >
9 > diff --git a/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt b/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
10 > new file mode 100644
11 > index 0000000..e946c89
12 > --- /dev/null
13 > +++ b/2021-07-07-systemd-tmpfiles/2021-07-07-systemd-tmpfiles.en.txt
14 > @@ -0,0 +1,64 @@
15 > +Title: systemd-tmpfiles replaces opentmpfiles due to security issues
16 > +Author: Georgy Yakovlev <gyakovlev@g.o>
17 > +Author: Sam James <sam@g.o>
18 > +Posted: 2021-07-07
19 > +Revision: 1
20 > +News-Item-Format: 2.0
21 > +Display-If-Installed: sys-apps/opentmpfiles
22 > +Display-If-Installed: sys-apps/systemd-tmpfiles
23 > +
24 > +A tmpfiles [0] implementation provides a generic mechanism to define
25 > +the creation of regular files, directories, pipes, and device nodes,
26 > +adjustments to their access mode, ownership, attributes, quota
27 > +assignments, and contents, and finally their time-based removal.
28 > +It is commonly used for volatile and temporary files and directories
29 > +such as those located under /run/, /tmp/, /var/tmp/, the API file
30 > +systems such as /sys/ or /proc/, as well as some other directories
31 > +below /var/. [1]
32 > +
33 > +On 2021-07-06, the sys-apps/opentmpfiles package was masked due to a
34 > +root privilege escalation vulnerability (CVE-2017-18925 [2],
35 > +bug #751415 [3], issue 4 [4] upstream).
36 > +
37 > +The use of opentmpfiles is discouraged by its maintainer due to the
38 > +unpatched vulnerability and other long-standing bugs [5].
39 > +
40 > +Users will start seeing their package manager trying to replace
41 > +sys-apps/opentmpfiles with sys-apps/systemd-tmpfiles because it is
42 > +another provider of virtual/tmpfiles.
43 > +
44 > +Despite the name, 'systemd-tmpfiles' does not depend on systemd, does
45 > +not use dbus, and is just a drop-in replacement for opentmpfiles. It is
46 > +a small binary built from systemd source code, but works separately,
47 > +similarly to eudev or elogind. It is known to work on both glibc and
48 > +musl systems.
49 > +
50 > +Note that systemd-tmpfiles is specifically for non-systemd systems. It
51 > +is intended to be used on an OpenRC system.
52
53 Maybe it'd be worth adding a sentence that systemd itself provides
54 the utility on systemd systems.
55
56 --
57 Best regards,
58 Michał Górny

Replies

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