From d90651532fb38237e24a943b9cb4e1b33030d2d3 Mon Sep 17 00:00:00 2001 From: martynas Date: Fri, 7 Aug 2009 19:25:29 +0000 Subject: [PATCH] don't abuse nobody: drop privs to _mt-daapd instead. ok sthen@, okan@ --- audio/mt-daapd/Makefile | 4 ++-- .../mt-daapd/patches/patch-contrib_mt-daapd_conf | 15 ++++++++++++--- audio/mt-daapd/pkg/PLIST | 4 +++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/audio/mt-daapd/Makefile b/audio/mt-daapd/Makefile index 331a6cdedfc..e36ffad871a 100644 --- a/audio/mt-daapd/Makefile +++ b/audio/mt-daapd/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.11 2009/06/03 16:37:31 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.12 2009/08/07 19:25:29 martynas Exp $ COMMENT= multi-threaded DAAP server DISTNAME= mt-daapd-0.2.4.2 -PKGNAME= ${DISTNAME}p2 +PKGNAME= ${DISTNAME}p3 CATEGORIES= audio net HOMEPAGE= http://www.mt-daapd.org/ diff --git a/audio/mt-daapd/patches/patch-contrib_mt-daapd_conf b/audio/mt-daapd/patches/patch-contrib_mt-daapd_conf index 6eb6acd5e91..aedbe1dc5d4 100644 --- a/audio/mt-daapd/patches/patch-contrib_mt-daapd_conf +++ b/audio/mt-daapd/patches/patch-contrib_mt-daapd_conf @@ -1,6 +1,6 @@ -$OpenBSD: patch-contrib_mt-daapd_conf,v 1.2 2008/06/09 23:46:20 okan Exp $ ---- contrib/mt-daapd.conf.orig Wed Jan 10 08:52:43 2007 -+++ contrib/mt-daapd.conf Wed Jan 10 08:53:54 2007 +$OpenBSD: patch-contrib_mt-daapd_conf,v 1.3 2009/08/07 19:25:29 martynas Exp $ +--- contrib/mt-daapd.conf.orig Sat Apr 19 22:17:11 2008 ++++ contrib/mt-daapd.conf Tue Aug 4 20:46:21 2009 @@ -23,7 +23,7 @@ # path is probably /usr/local/share/mt-daapd/admin-root. # @@ -10,6 +10,15 @@ $OpenBSD: patch-contrib_mt-daapd_conf,v 1.2 2008/06/09 23:46:20 okan Exp $ # # port (required) +@@ -83,7 +83,7 @@ servername mt-daapd + # as root or not. + # + +-runas nobody ++runas _mt-daapd + + # + # playlist (optional) @@ -98,7 +98,7 @@ runas nobody # below. # diff --git a/audio/mt-daapd/pkg/PLIST b/audio/mt-daapd/pkg/PLIST index 518c95dea6f..9e19424277c 100644 --- a/audio/mt-daapd/pkg/PLIST +++ b/audio/mt-daapd/pkg/PLIST @@ -1,4 +1,6 @@ -@comment $OpenBSD: PLIST,v 1.4 2009/06/03 16:37:31 ajacoutot Exp $ +@comment $OpenBSD: PLIST,v 1.5 2009/08/07 19:25:29 martynas Exp $ +@newgroup _mt-daapd:634 +@newuser _mt-daapd:634:_mt-daapd:daemon:mt-daapd:/nonexistent:/sbin/nologin @pkgpath audio/mt-daapd,howl @bin sbin/mt-daapd share/examples/mt-daapd/