summaryrefslogtreecommitdiff
path: root/share/man/man5
diff options
context:
space:
mode:
authorcwen <cwen@cvs.openbsd.org>2019-05-22 21:40:38 +0000
committercwen <cwen@cvs.openbsd.org>2019-05-22 21:40:38 +0000
commit5e8db55b46531c19800798e4ae78e809151ac0e4 (patch)
treec60d73b4d2c1815da66bd350db84de78524d5d0e /share/man/man5
parent7920b9836510932ab4e4be47a87025f2951dabc6 (diff)
bsd.port.mk.5: mention additional doas.conf(5) rules that may be used when
PORTS_PRIVSEP=Yes, if the regular user is not allowed to run passwordless privilegied commands by default, to reduce the amount of time they have to type their password during ports work. OK espie@
Diffstat (limited to 'share/man/man5')
-rw-r--r--share/man/man5/bsd.port.mk.523
1 files changed, 21 insertions, 2 deletions
diff --git a/share/man/man5/bsd.port.mk.5 b/share/man/man5/bsd.port.mk.5
index 3bdada7d771..f65dc9e8fcb 100644
--- a/share/man/man5/bsd.port.mk.5
+++ b/share/man/man5/bsd.port.mk.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bsd.port.mk.5,v 1.509 2019/05/14 15:00:37 naddy Exp $
+.\" $OpenBSD: bsd.port.mk.5,v 1.510 2019/05/22 21:40:37 cwen Exp $
.\"
.\" Copyright (c) 2000-2008 Marc Espie
.\"
@@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 14 2019 $
+.Dd $Mdocdate: May 22 2019 $
.Dt BSD.PORT.MK 5
.Os
.Sh NAME
@@ -2497,6 +2497,25 @@ must be configured to work within the chroot
created by
.Xr proot 1 .
.Pp
+If the regular user is not allowed to run privileged commands
+without entering a password,
+you may want these additional rules in
+.Xr doas.conf 5 ,
+to reduce the amount of times the password needs to be entered
+during ports work:
+.Bd -literal -offset indent
+permit nopass solene cmd /usr/bin/touch
+permit nopass setenv { \\
+ TRUSTED_PKG_PATH TERM } solene cmd /usr/sbin/pkg_add
+permit nopass setenv { \\
+ TERM } solene cmd /usr/sbin/pkg_delete
+.Ed
+.Pp
+Also, in such a situation,
+the regular user will still need to enter their password when
+.Xr update-plist 1
+is invoked.
+.Pp
As
.Xr dpb 1
does its own privilege dropping when run as root,