Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67793 - [openssh] drop tmpfiles.d creation of /var/empty

Attached to Project: Arch Linux
Opened by tinywrkb (tinywrkb) - Tuesday, 01 September 2020, 14:22 GMT
Last edited by Eli Schwartz (eschwartz) - Tuesday, 01 September 2020, 14:39 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

/var/empty is not openssh specific dir, this comes from filesystem, so this workaround for stateless system should be added to the filesystem package, if it all.

I'm building a stateless system and the first thing I did is to convert the filesystem packaged /var tree structure creation to tmpfiles.d conf in a custom filesystem package. Having this conflict with openssh own tmpfiles.d conf is unexpected and unwarranted in a vanilla distro.

If it's still a requirement to support users who intentionally breaking archlinux directory tree structure then it should be reported as a filesystem package bug and be added to tmpfiles.d/arch.conf.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Tuesday, 01 September 2020, 14:39 GMT
Reason for closing:  Not a bug
Comment by Eli Schwartz (eschwartz) - Tuesday, 01 September 2020, 14:39 GMT
I see utterly no reason whatsoever to move this from the openssh tmpfiles.d to the filesystem package. There is no conflict here -- tmpfiles.d only creates it if it doesn't exist yet, and if you have the same permissions in both conf files, then there will be no inconsistency.

Yes, sshd does hardcode this via:

./configure
-----------
PRIVSEP_PATH=/var/empty

Makefile.in
-----------
PRIVSEP_PATH=@PRIVSEP_PATH@

gcc -D_PATH_PRIVSEP_CHROOT_DIR=\"$(PRIVSEP_PATH)\"

Loading...