Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/rustix
/ set_capabilities
Function
set_capabilities
src/thread/libcap.rs:136–138 ·
view source on GitHub ↗
(pid: Option<Pid>, sets: CapabilitySets)
Source
from the content-addressed store, hash-verified
134
#[inline]
135
#[doc(alias =
"capset"
)]
136
pub fn set_capabilities(pid: Option<Pid>, sets: CapabilitySets) -> io::Result<()> {
137
capset(pid, sets)
138
}
139
140
#[inline]
141
#[allow(unsafe_code)]
Callers
2
test_reboot
Function · 0.85
libcap
Function · 0.85
Calls
1
capset
Function · 0.70
Tested by
2
test_reboot
Function · 0.68
libcap
Function · 0.68