From 4c584c14a8ab01943c06dc76dadf68358867be06 Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 9 Dec 2018 14:03:35 +0100 Subject: [PATCH] bird: run with restricted privileges --- srcpkgs/bird/files/bird/run | 2 +- srcpkgs/bird/template | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/bird/files/bird/run b/srcpkgs/bird/files/bird/run index 93df57f0b09..80a516e1e79 100644 --- a/srcpkgs/bird/files/bird/run +++ b/srcpkgs/bird/files/bird/run @@ -1,2 +1,2 @@ #!/bin/sh -exec bird -f ${OPTS:=-c /etc/bird.conf} +exec bird -f -u _bird -g _bird ${OPTS:=-c /etc/bird.conf} diff --git a/srcpkgs/bird/template b/srcpkgs/bird/template index 544b7aeb821..e0401714dce 100644 --- a/srcpkgs/bird/template +++ b/srcpkgs/bird/template @@ -1,7 +1,7 @@ # Template file for 'bird' pkgname=bird version=2.0.2 -revision=1 +revision=2 build_style=gnu-configure conf_files="/etc/bird.conf" hostmakedepends="flex autoconf" @@ -13,6 +13,8 @@ homepage="https://bird.network.cz" distfiles="ftp://bird.network.cz/pub/bird/bird-${version}.tar.gz" checksum=035f91d6f568f8ed438a0814235ac4c5c79147cd2acf201322c307732883480f +system_accounts="_bird" + post_install() { vsv bird }