All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/openssh: Set /var/empty permissions
@ 2018-12-17 22:25 Chris Lesiak
  2018-12-17 23:07 ` Arnout Vandecappelle
  2019-02-03 20:53 ` Arnout Vandecappelle
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Lesiak @ 2018-12-17 22:25 UTC (permalink / raw)
  To: buildroot

The openssh privilege separation feature, enabled by default,
requires that the path /var/empty exist and have certain permission.
See README.privsep included as part of the openssh distribution.

Use OPENSSH_PERMISSIONS to ensure this is done correctly.

Signed-off-by: Chris Lesiak <chris.lesiak@licor.com>
---
 package/openssh/openssh.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/openssh/openssh.mk b/package/openssh/openssh.mk
index 07f3e0d663..9175f9589d 100644
--- a/package/openssh/openssh.mk
+++ b/package/openssh/openssh.mk
@@ -22,6 +22,10 @@ define OPENSSH_USERS
 	sshd -1 sshd -1 * - - - SSH drop priv user
 endef
 
+define OPENSSH_PERMISSIONS
+	/var/empty d 755 root root - - - - -
+endef
+
 ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
 OPENSSH_CONF_OPTS += --without-pie
 endif
-- 
2.17.2

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

end of thread, other threads:[~2019-02-18 15:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17 22:25 [Buildroot] [PATCH] package/openssh: Set /var/empty permissions Chris Lesiak
2018-12-17 23:07 ` Arnout Vandecappelle
2018-12-17 23:37   ` Chris Lesiak
2019-02-03 21:01     ` Arnout Vandecappelle
2019-02-03 20:53 ` Arnout Vandecappelle
2019-02-18 15:52   ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.