Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] squid: create a user/group
@ 2015-01-14 19:14 Gustavo Zacarias
  2015-01-14 19:14 ` [Buildroot] [PATCH 2/2] squid: add sysv initscript Gustavo Zacarias
  2015-01-14 19:35 ` [Buildroot] [PATCH 1/2] squid: create a user/group Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Gustavo Zacarias @ 2015-01-14 19:14 UTC (permalink / raw)
  To: buildroot

Even though squid uses nobody/nogroup it ain't good for security if
every daemon around uses it, specially since squid is used as a caching
proxy most of the time and that would mean other daemons/scripts run as
nobody would have access to potentially sensitive information.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/squid/squid.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/squid/squid.mk b/package/squid/squid.mk
index c8d7417..5e2e659 100644
--- a/package/squid/squid.mk
+++ b/package/squid/squid.mk
@@ -39,7 +39,8 @@ SQUID_CONF_OPTS = \
 	--with-logdir=/var/log/squid/ \
 	--with-pidfile=/var/run/squid.pid \
 	--with-swapdir=/var/cache/squid/ \
-	--enable-icap-client
+	--enable-icap-client \
+	--with-default-user=squid
 
 # On uClibc librt needs libpthread
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy)
@@ -60,4 +61,8 @@ endef
 
 SQUID_POST_INSTALL_TARGET_HOOKS += SQUID_CLEANUP_TARGET
 
+define SQUID_USERS
+	squid -1 squid -1 * - - - Squid proxy cache
+endef
+
 $(eval $(autotools-package))
-- 
2.0.5

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

end of thread, other threads:[~2015-01-14 20:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 19:14 [Buildroot] [PATCH 1/2] squid: create a user/group Gustavo Zacarias
2015-01-14 19:14 ` [Buildroot] [PATCH 2/2] squid: add sysv initscript Gustavo Zacarias
2015-01-14 19:51   ` Thomas Petazzoni
2015-01-14 20:16     ` Gustavo Zacarias
2015-01-14 19:35 ` [Buildroot] [PATCH 1/2] squid: create a user/group Thomas Petazzoni

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