简体   繁体   English

为什么Vault by HashiCorp需要启用ipc_lock功能?

[英]Why does Vault by HashiCorp require the ipc_lock capability to be enabled?

为什么Vault by HashiCorp需要启用ipc_lock功能?

It's required for this server config option: https://www.vaultproject.io/docs/configuration/index.html#disable_mlock 这个服务器配置选项是必需的: https//www.vaultproject.io/docs/configuration/index.html#disable_mlock

It uses the mlock syscall which blocks process memory from being swapped to disk. 它使用mlock系统调用来阻止进程内存交换到磁盘。 By default this is enabled as you want to avoid swapping your Vault memory onto unencrypted disk. 默认情况下,此功能已启用,因为您希望避免将Vault内存交换到未加密的磁盘上。

Usually that capability comes up when running Vault within a container, which I believe allows the container to access the mlock syscall without escalating privileges. 通常在容器中运行Vault时会出现这种功能,我相信这允许容器在不升级权限的情况下访问mlock系统调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM