public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] PSA: switching default tmpfiles virtual provider
@ 2020-11-25 21:57 Georgy Yakovlev
  2020-11-26  6:55 ` Piotr Karbowski
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Georgy Yakovlev @ 2020-11-25 21:57 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]

Hi,

In case you don't know, opentmpfiles has an open CVE
CVE-2017-18925: root privilege escalation by symlink attack
https://github.com/OpenRC/opentmpfiles/issues/4
It has been an issue for quite a while, reported 3 years ago,
and not much changed since.
Also it lacks any sort of testing, and master branch is in a non-working
state at time of writing, latest version is masked.[0]

Due to nature of opentmpfiles (it's a POSIX sh script),
it may be impossible to fix symlink handling and TOCTOU races.
As a consequence I'll be switching default tmpfiles
provider to sys-apps/systemd-tmpfiles by the end of the week by updating
virtual/tmpfiles ebuild.

pros of systemd-tmpfiles:
0) Secure.
1) Reference implementation.
2) Supports all features, because ^.
3) Has working tests.
4) Has millions of users as part of systemd.
5) upstream supports standalone usecase/build our ebuild uses. [1][2]
6) drop-in replacement, just emerge and forget.

systemd-tmpfiles does not depend on any systemd-isms, does not need dbus,
and is just a drop-in replacement, the only step needed is to emerge the
package.
it's a simple single binary + manpage, binary links to libacl and couple other
system libs.

existing installations will not be affected, but openrc users are welcome to
opt-in by running 'emerge --oneshot systemd-tmpfiles'

[0] https://bugs.gentoo.org/751739
[1] https://github.com/systemd/systemd/pull/16061
[2] https://github.com/systemd/systemd/pull/16061/commits/db64ba81c62afa0e0d3e95c4a3e1ec3dd9a471a4

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 902 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-11-30 21:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-25 21:57 [gentoo-dev] PSA: switching default tmpfiles virtual provider Georgy Yakovlev
2020-11-26  6:55 ` Piotr Karbowski
2020-11-29 21:50   ` William Hubbs
2020-11-30 21:56     ` Mike Gilbert
2020-11-26 15:07 ` Thomas Deutschmann
2020-11-26 20:36   ` Michael Orlitzky
2020-11-26 22:57     ` Thomas Deutschmann
2020-11-26 23:25       ` Michael Orlitzky
2020-11-26 22:37 ` Peter Stuge
2020-11-26 22:42   ` Sam James
2020-11-26 22:45   ` Michael Orlitzky
2020-11-26 22:58     ` David Seifert
2020-11-28 19:16 ` Georgy Yakovlev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox