Skip to content

Commit

Permalink
added dedicated user account for ssdpd daemon so that priviledges can be
Browse files Browse the repository at this point in the history
dropped (this refs #599).
  • Loading branch information
jens-maus committed Sep 24, 2023
1 parent 4fdd5f8 commit d58190b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildroot-external/package/ssdpd/S50ssdpd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ start() {
# to ensure that others are killed first in case of low memory situations
echo -900 >/proc/$$/oom_score_adj 2> /dev/null

if start-stop-daemon -S -q -b -m -p ${PIDFILE} --exec /bin/${DAEMON}; then
if start-stop-daemon -S -q -b -m -c ssdp:ssdp -p ${PIDFILE} --exec /bin/${DAEMON}; then
echo "OK"
else
echo "FAIL"
Expand Down
4 changes: 4 additions & 0 deletions buildroot-external/package/ssdpd/ssdpd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ define SSDPD_INSTALL_INIT_SYSV
$(TARGET_DIR)/etc/init.d/S50ssdpd
endef

define SSDPD_USERS
ssdp -1 ssdp -1 * - - - ssdpd user
endef

$(eval $(generic-package))

0 comments on commit d58190b

Please sign in to comment.