-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensures the user/group are correctly substituted into the config file so that the daemon can run as root then drop privileges appropriately, as well as creating the rundir as necessary. Submitted by Jorge Schrauwen in #58. Bump PKGREVISION.
- Loading branch information
Showing
5 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!@SMF_METHOD_SHELL@ | ||
# | ||
# $NetBSD: radiusd.sh,v 1.1 2020/04/16 15:49:30 jperkin Exp $ | ||
# | ||
|
||
. /lib/svc/share/smf_include.sh | ||
|
||
if [ ! -d @VARBASE@/run/radiusd ]; then | ||
@MKDIR@ @VARBASE@/run/radiusd | ||
@CHMOD@ 0750 @VARBASE@/run/radiusd | ||
@CHOWN@ @RADIUS_USER@:@RADIUS_GROUP@ @VARBASE@/run/radiusd | ||
fi | ||
|
||
@PREFIX@/sbin/radiusd "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$NetBSD: patch-raddb_radiusd.conf.in,v 1.1 2020/04/16 15:49:30 jperkin Exp $ | ||
|
||
Update example radiusd.conf to include the correct user/group | ||
|
||
--- raddb/radiusd.conf.in.orig 2020-04-15 11:59:38.209113301 +0000 | ||
+++ raddb/radiusd.conf.in 2020-04-15 12:00:19.973538936 +0000 | ||
@@ -501,8 +501,8 @@ | ||
# member. This can allow for some finer-grained access | ||
# controls. | ||
# | ||
-# user = radius | ||
-# group = radius | ||
+ user = @RADIUS_USER@ | ||
+ group = @RADIUS_GROUP@ | ||
|
||
# Core dumps are a bad thing. This should only be set to | ||
# 'yes' if you're debugging a problem with the server. |