Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions server/src/capability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,17 @@ pub fn drop_unnecessary_capabilities() -> Result<(), rustix::io::Errno> {
)?;
}
CapabilityState::None => {
tracing::warn!("No process capabilities, insecure memory might get used");
Comment thread
A6GibKm marked this conversation as resolved.
// NOTE: For users that landed here. The binary is probably missing
// the CAP_IPC_LOCK capability which should have been set as part of
// packaging. See capabilities(7) and setcap(8) for more details.
tracing::warn!("No process capabilities, secrets in memory might be swapped to disk");
return Ok(());
}
CapabilityState::Partial => {
if !caps.effective.contains(CapabilitySet::IPC_LOCK) {
tracing::warn!("Insufficient process capabilities, insecure memory might get used");
tracing::warn!(
"Missing IPC_LOCK capability, secrets in memory might be swapped to disk"
);
}

// Clear bounding set if we have CAP_SETPCAP (do this before dropping caps)
Expand Down
Loading