svn commit: r551655 - in head: . net/py-wsdd net/py-wsdd/files
Dimitry Andric
dim at FreeBSD.org
Wed Oct 7 17:14:21 UTC 2020
Author: dim (src committer)
Date: Wed Oct 7 17:14:19 2020
New Revision: 551655
URL: https://svnweb.freebsd.org/changeset/ports/551655
Log:
Create dedicated sandbox user for wsdd service
This changes the account the wsdd service runs under from the generic
'daemon' user to its own dedicated '_wsdd' user.
Approved by: hiroo.ono+freebsd at gmail.com (maintainer)
PR: 250159
MFH: 2020Q4
Modified:
head/GIDs
head/UIDs
head/net/py-wsdd/Makefile
head/net/py-wsdd/files/patch-etc_rc.d_wsdd
Modified: head/GIDs
==============================================================================
--- head/GIDs Wed Oct 7 16:15:36 2020 (r551654)
+++ head/GIDs Wed Oct 7 17:14:19 2020 (r551655)
@@ -310,7 +310,7 @@ httptunnel:*:361:
# free: 367
# free: 368
# free: 369
-# free: 370
+_wsdd:*:370:
# free: 371
# free: 372
# free: 373
Modified: head/UIDs
==============================================================================
--- head/UIDs Wed Oct 7 16:15:36 2020 (r551654)
+++ head/UIDs Wed Oct 7 17:14:19 2020 (r551655)
@@ -315,7 +315,7 @@ httptunnel:*:361:361::0:0:httptunnel Daemon:/nonexiste
# free: 367
# free: 368
# free: 369
-# free: 370
+_wsdd:*:370:370::0:0:Web Service Discovery Daemon:/nonexistent:/usr/sbin/nologin
# free: 371
# free: 372
# free: 373
Modified: head/net/py-wsdd/Makefile
==============================================================================
--- head/net/py-wsdd/Makefile Wed Oct 7 16:15:36 2020 (r551654)
+++ head/net/py-wsdd/Makefile Wed Oct 7 17:14:19 2020 (r551655)
@@ -3,7 +3,7 @@
PORTNAME= wsdd
DISTVERSIONPREFIX= v
DISTVERSION= 0.6.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,6 +19,9 @@ GH_ACCOUNT= christgau
SHEBANG_FILES= src/${PORTNAME}.py
NO_ARCH= yes
NO_BUILD= yes
+
+USERS= _wsdd
+GROUPS= _wsdd
PLIST_FILES= bin/${PORTNAME} \
etc/rc.d/${PORTNAME} \
Modified: head/net/py-wsdd/files/patch-etc_rc.d_wsdd
==============================================================================
--- head/net/py-wsdd/files/patch-etc_rc.d_wsdd Wed Oct 7 16:15:36 2020 (r551654)
+++ head/net/py-wsdd/files/patch-etc_rc.d_wsdd Wed Oct 7 17:14:19 2020 (r551655)
@@ -68,7 +68,7 @@
+wsdd_start()
+{
+ echo -n "Starting ${name}."
-+ /usr/sbin/daemon -u daemon -S -p ${pidfile} ${command} ${wsdd_opts}
++ /usr/sbin/daemon -u _wsdd -S -p ${pidfile} ${command} ${wsdd_opts}
+}
+
run_rc_command "$1"
More information about the svn-ports-all
mailing list