FreeBSD Bugzilla – Attachment 227729 Details for
Bug 258332
security/vault: Add vault_limits to vault.in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
allows users to modify "memorylocked" limit
patch-vault (text/plain), 1.31 KB, created by
Tomoyuki Sakurai
on 2021-09-07 05:25:45 UTC
(
hide
)
Description:
allows users to modify "memorylocked" limit
Filename:
MIME Type:
Creator:
Tomoyuki Sakurai
Created:
2021-09-07 05:25:45 UTC
Size:
1.31 KB
patch
obsolete
>diff --git a/security/vault/files/pkg-message.in b/security/vault/files/pkg-message.in >index 35f1b5642ff6..b6304c9789ed 100644 >--- a/security/vault/files/pkg-message.in >+++ b/security/vault/files/pkg-message.in >@@ -11,9 +11,9 @@ pw usermod -L daemon -n vault > or delete the user and reinstall the package. > > You may also need to increase memorylocked for the daemon class in >-/etc/login.conf to 1024M or more and run: >+/etc/rc.conf to more than 1024M (the default) or more: > >-cap_mkdb /etc/login.conf >+vault_limits_mlock="2048M" > > Or to disable mlock, add: > >diff --git a/security/vault/files/vault.in b/security/vault/files/vault.in >index 3385fa23f67e..dbb11d79fbda 100644 >--- a/security/vault/files/vault.in >+++ b/security/vault/files/vault.in >@@ -21,6 +21,7 @@ > # Default is "info". See daemon(8). > # vault_syslog_output_facility (str): Set syslog facility if syslog enabled. > # Default is "daemon". See daemon(8). >+# vault_limits_mlock (size): allowd memorylocked value in size. Default is 1024M > > . /etc/rc.subr > >@@ -33,6 +34,8 @@ load_rc_config $name > : ${vault_user:="vault"} > : ${vault_group:="vault"} > : ${vault_config:="%%PREFIX%%/etc/vault.hcl"} >+: ${vault_limits_mlock:="1024M"} >+: ${vault_limits:="-l ${vault_limits_mlock}"} > > DAEMON=$(/usr/sbin/daemon 2>&1 | grep -q syslog ; echo $?) > if [ ${DAEMON} -eq 0 ]; then
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 258332
: 227729