FreeBSD Bugzilla – Attachment 215417 Details for
Bug 247140
security/honeytrap: Add option to run service as root
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
honeytrap-g20200415_1.diff (text/plain), 1.42 KB, created by
ezri.mudde
on 2020-06-10 09:17:13 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
ezri.mudde
Created:
2020-06-10 09:17:13 UTC
Size:
1.42 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 538375) >+++ Makefile (working copy) >@@ -2,6 +2,7 @@ > > PORTNAME= honeytrap > DISTVERSION= g20200415 >+PORTREVISION= 1 > CATEGORIES= security > > MAINTAINER= remco.verhoef@dutchsec.com >Index: files/honeytrap.in >=================================================================== >--- files/honeytrap.in (revision 538375) >+++ files/honeytrap.in (working copy) >@@ -10,7 +10,9 @@ > # to enable this service: > # > # honeytrap_enable (bool): Set to NO by default. >-# Set it to YES to enable honeytrap. >+# Set it to YES to enable honeytrap. >+# honeytrap_user (bool): Set to YES by default. >+# Set it to NO to run service root. > # honeytrap_datadir (path): Set to %%PREFIX%%/libdata/honeytrap > # by default. > # honeytrap_config (path): Set to %%PREFIX%%/etc/honeytrap.toml >@@ -24,6 +26,7 @@ > load_rc_config $name > > : ${honeytrap_enable:="NO"} >+: ${honeytrap_user:="YES"} > : ${honeytrap_datadir="%%PREFIX%%/libdata/honeytrap"} > : ${honeytrap_config="%%PREFIX%%/etc/honeytrap.toml"} > >@@ -35,7 +38,12 @@ > > honeytrap_start() > { >- daemon -o /var/log/honeytrap/service.log -p $pidfile -u $name $honeytrap_program $honeytrap_flags >+ if checkyesno honeytrap_user; then >+ user="-u $name" >+ else >+ user="" >+ fi >+ daemon -o /var/log/honeytrap/service.log -p $pidfile $user $honeytrap_program $honeytrap_flags > } > > run_rc_command "$@"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247140
:
215417
|
216631
|
216661
|
216962
|
217154
|
217238
|
217239