FreeBSD Bugzilla – Attachment 219395 Details for
Bug 250904
mail/rspamd, mail/rspamd-devel: Run main process as root and drop worker privileges
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
rspamd.patch (text/plain), 2.07 KB, created by
Alexander Moisseev
on 2020-11-06 14:26:16 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Alexander Moisseev
Created:
2020-11-06 14:26:16 UTC
Size:
2.07 KB
patch
obsolete
>Index: mail/rspamd/Makefile >=================================================================== >--- mail/rspamd/Makefile (revision 554293) >+++ mail/rspamd/Makefile (working copy) >@@ -2,7 +2,7 @@ > > PORTNAME= rspamd > PORTVERSION= 2.6 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= mail > > MAINTAINER= vsevolod@FreeBSD.org >Index: mail/rspamd/files/pkg-message.in >=================================================================== >--- mail/rspamd/files/pkg-message.in (revision 554293) >+++ mail/rspamd/files/pkg-message.in (working copy) >@@ -5,6 +5,9 @@ > > rspamd_enable="YES" > >+ - Optionally you can adjust the user which runs Rspamd workers with the >+ variables rspamd_worker_user and rspamd_worker_group (default rspamd:rspamd). >+ > - A symbolic link to %%ETCDIR%%/rspamd.newsyslog.conf > has been created in the /usr/local/etc/newsyslog.conf.d directory. > You can edit %%ETCDIR%%/rspamd.newsyslog.conf >Index: mail/rspamd/files/rspamd.in >=================================================================== >--- mail/rspamd/files/rspamd.in (revision 554293) >+++ mail/rspamd/files/rspamd.in (working copy) >@@ -12,9 +12,9 @@ > # rspamd_enable (bool): Set to "NO" by default. > # Set it to "YES" to enable rspamd. > # >-# rspamd_user (str): Default to "rspamd". >+# rspamd_worker_user (str): Default to "rspamd". > # >-# rspamd_group (str): Default to "rspamd". >+# rspamd_worker_group (str): Default to "rspamd". > # > # rspamd_flags (str): Default to "-c %%PREFIX%%/etc/rspamd.conf". > >@@ -26,8 +26,8 @@ > load_rc_config $name > > : ${rspamd_enable:="NO"} >-: ${rspamd_user="rspamd"} >-: ${rspamd_group="rspamd"} >+: ${rspamd_worker_user="rspamd"} >+: ${rspamd_worker_group="rspamd"} > : ${rspamd_flags="-c %%PREFIX%%/etc/rspamd/rspamd.conf"} > > pidfile=${rspamd_pidfile:-"/var/run/rspamd/rspamd.pid"} >@@ -40,7 +40,7 @@ > reopenlog_cmd="reopenlog_cmd" > > required_files=%%PREFIX%%/etc/rspamd/rspamd.conf >-command_args="-u ${rspamd_user} -g ${rspamd_group}" >+command_args="-u ${rspamd_worker_user} -g ${rspamd_worker_group}" > extra_commands="reload configtest reopenlog" > stop_postcmd="rm -f $pidfile" > sig_reload="HUP"
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 250904
: 219395 |
219396