1 |
Signed-off-by: Georgy Yakovlev <gyakovlev@g.o> |
2 |
Signed-off-by: Sam James <sam@g.o> |
3 |
--- |
4 |
...2021-07-15-opentmpfiles-deprecation.en.txt | 69 +++++++++++++++++++ |
5 |
1 file changed, 69 insertions(+) |
6 |
create mode 100644 2021-07-15-opentmpfiles-deprecation/2021-07-15-opentmpfiles-deprecation.en.txt |
7 |
|
8 |
diff --git a/2021-07-15-opentmpfiles-deprecation/2021-07-15-opentmpfiles-deprecation.en.txt b/2021-07-15-opentmpfiles-deprecation/2021-07-15-opentmpfiles-deprecation.en.txt |
9 |
new file mode 100644 |
10 |
index 0000000..9f952d4 |
11 |
--- /dev/null |
12 |
+++ b/2021-07-15-opentmpfiles-deprecation/2021-07-15-opentmpfiles-deprecation.en.txt |
13 |
@@ -0,0 +1,69 @@ |
14 |
+Title: systemd-tmpfiles replaces deprecated opentmpfiles |
15 |
+Author: Georgy Yakovlev <gyakovlev@g.o> |
16 |
+Author: Sam James <sam@g.o> |
17 |
+Posted: 2021-07-15 |
18 |
+Revision: 1 |
19 |
+News-Item-Format: 2.0 |
20 |
+Display-If-Installed: sys-apps/opentmpfiles |
21 |
+Display-If-Installed: sys-apps/systemd-tmpfiles |
22 |
+ |
23 |
+A tmpfiles [0] implementation provides a generic mechanism to define |
24 |
+the creation of regular files, directories, pipes, and device nodes, |
25 |
+adjustments to their access mode, ownership, attributes, quota |
26 |
+assignments, and contents, and finally their time-based removal. |
27 |
+It is commonly used for volatile and temporary files and directories |
28 |
+such as those located under /run/, /tmp/, /var/tmp/, the API file |
29 |
+systems such as /sys/ or /proc/, as well as some other directories |
30 |
+below /var/. [1] |
31 |
+ |
32 |
+On 2021-07-06, the sys-apps/opentmpfiles package was initially masked |
33 |
+due to a root privilege escalation vulnerability (CVE-2017-18925 [2], |
34 |
+bug #751415 [3], issue 4 [4] upstream). |
35 |
+ |
36 |
+The severity of this vulnerability is disputed due to the practical |
37 |
+obstacles to its exploitation in any default or supported configuration. |
38 |
+ |
39 |
+That said, the use of opentmpfiles is discouraged by its maintainer due |
40 |
+to the unpatched vulnerability and other long-standing bugs [5]. It has |
41 |
+now been declared obsolete in favour of systemd-tmpfiles by opentmpfiles |
42 |
+upstream. |
43 |
+ |
44 |
+Users will start seeing their package manager trying to replace |
45 |
+sys-apps/opentmpfiles with sys-apps/systemd-tmpfiles because it is |
46 |
+another provider of virtual/tmpfiles. |
47 |
+ |
48 |
+Despite the name, 'systemd-tmpfiles' does not depend on systemd, does |
49 |
+not use dbus, and is just a drop-in replacement for opentmpfiles. It is |
50 |
+a small binary built from systemd source code, but works separately, |
51 |
+similarly to eudev or elogind. It is known to work on both glibc and |
52 |
+musl systems. |
53 |
+ |
54 |
+Note that systemd-tmpfiles is specifically for non-systemd systems. It |
55 |
+is intended to be used on an OpenRC system. |
56 |
+ |
57 |
+If you wish to selectively test systemd-tmpfiles, follow those steps: |
58 |
+ |
59 |
+ 1. # emerge --oneshot sys-apps/systemd-tmpfiles |
60 |
+ 2. # reboot |
61 |
+ 3. # rm /etc/runlevels/boot/opentmpfiles-setup |
62 |
+ 4. # rm /etc/runlevels/sysinit/opentmpfiles-dev |
63 |
+ |
64 |
+No other steps required. |
65 |
+ |
66 |
+If you still wish to use opentmpfiles for the time being, you can unmask [6] |
67 |
+opentmpfiles: |
68 |
+ 1. In /etc/portage/package.unmask, add a line: |
69 |
+ -sys-apps/opentmpfiles- |
70 |
+ 2. # emerge --oneshot sys-apps/opentmpfiles |
71 |
+ |
72 |
+Note that opentmpfiles is likely to be removed from gentoo repository |
73 |
+in the future. You may wish to put it in a local overlay instead [7]. |
74 |
+ |
75 |
+[0] https://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html |
76 |
+[1] https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html |
77 |
+[2] https://nvd.nist.gov/vuln/detail/CVE-2017-18925 |
78 |
+[3] https://bugs.gentoo.org/751415 |
79 |
+[4] https://github.com/OpenRC/opentmpfiles/issues/4 |
80 |
+[5] https://bugs.gentoo.org/741216 |
81 |
+[6] https://wiki.gentoo.org/wiki/Knowledge_Base:Unmasking_a_package |
82 |
+[7] https://wiki.gentoo.org/wiki/Custom_ebuild_repository#Creating_a_local_repository |
83 |
-- |
84 |
2.32.0 |