mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
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@gmail.com (maintainer) PR: 250159 MFH: 2020Q4
This commit is contained in:
parent
eb0a64b6b5
commit
0dfb1ec9fc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=551655
2
GIDs
2
GIDs
@ -310,7 +310,7 @@ httptunnel:*:361:
|
||||
# free: 367
|
||||
# free: 368
|
||||
# free: 369
|
||||
# free: 370
|
||||
_wsdd:*:370:
|
||||
# free: 371
|
||||
# free: 372
|
||||
# free: 373
|
||||
|
2
UIDs
2
UIDs
@ -315,7 +315,7 @@ httptunnel:*:361:361::0:0:httptunnel Daemon:/nonexistent:/usr/sbin/nologin
|
||||
# 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
|
||||
|
@ -3,7 +3,7 @@
|
||||
PORTNAME= wsdd
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.6.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
@ -20,6 +20,9 @@ SHEBANG_FILES= src/${PORTNAME}.py
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
USERS= _wsdd
|
||||
GROUPS= _wsdd
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
etc/rc.d/${PORTNAME} \
|
||||
man/man1/${PORTNAME}.1.gz
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user