From owner-svn-ports-branches@freebsd.org Thu Oct 8 21:34:57 2020 Return-Path: Delivered-To: svn-ports-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5232C431A60; Thu, 8 Oct 2020 21:34:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C6kxs1FBwz4W9m; Thu, 8 Oct 2020 21:34:57 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E8719F166; Thu, 8 Oct 2020 21:34:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 098LYuFI082388; Thu, 8 Oct 2020 21:34:56 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 098LYuVA082384; Thu, 8 Oct 2020 21:34:56 GMT (envelope-from dim@FreeBSD.org) Message-Id: <202010082134.098LYuVA082384@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Thu, 8 Oct 2020 21:34:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r551735 - in branches/2020Q4: . net/py-wsdd net/py-wsdd/files X-SVN-Group: ports-branches X-SVN-Commit-Author: dim X-SVN-Commit-Paths: in branches/2020Q4: . net/py-wsdd net/py-wsdd/files X-SVN-Commit-Revision: 551735 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2020 21:34:57 -0000 Author: dim (src committer) Date: Thu Oct 8 21:34:55 2020 New Revision: 551735 URL: https://svnweb.freebsd.org/changeset/ports/551735 Log: MFH: r551655 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: ports-secteam (joneum) PR: 250159 Modified: branches/2020Q4/GIDs branches/2020Q4/UIDs branches/2020Q4/net/py-wsdd/Makefile branches/2020Q4/net/py-wsdd/files/patch-etc_rc.d_wsdd Directory Properties: branches/2020Q4/ (props changed) Modified: branches/2020Q4/GIDs ============================================================================== --- branches/2020Q4/GIDs Thu Oct 8 21:16:38 2020 (r551734) +++ branches/2020Q4/GIDs Thu Oct 8 21:34:55 2020 (r551735) @@ -310,7 +310,7 @@ httptunnel:*:361: # free: 367 # free: 368 # free: 369 -# free: 370 +_wsdd:*:370: # free: 371 # free: 372 # free: 373 Modified: branches/2020Q4/UIDs ============================================================================== --- branches/2020Q4/UIDs Thu Oct 8 21:16:38 2020 (r551734) +++ branches/2020Q4/UIDs Thu Oct 8 21:34:55 2020 (r551735) @@ -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: branches/2020Q4/net/py-wsdd/Makefile ============================================================================== --- branches/2020Q4/net/py-wsdd/Makefile Thu Oct 8 21:16:38 2020 (r551734) +++ branches/2020Q4/net/py-wsdd/Makefile Thu Oct 8 21:34:55 2020 (r551735) @@ -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: branches/2020Q4/net/py-wsdd/files/patch-etc_rc.d_wsdd ============================================================================== --- branches/2020Q4/net/py-wsdd/files/patch-etc_rc.d_wsdd Thu Oct 8 21:16:38 2020 (r551734) +++ branches/2020Q4/net/py-wsdd/files/patch-etc_rc.d_wsdd Thu Oct 8 21:34:55 2020 (r551735) @@ -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"