Skip to content

Commit

Permalink
Fixed set capability fail.
Browse files Browse the repository at this point in the history
Signed-off-by: higuruchi <fumiya2324@gmail.com>
  • Loading branch information
higuruchi committed Nov 17, 2022
1 parent f9c141c commit 337d3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libcontainer/src/syscall/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl Syscall for LinuxSyscall {
// so we do it differently
CapSet::Bounding => {
// get all capabilities
let all = caps::all();
let all = caps::read(None, CapSet::Bounding)?;
// the difference will give capabilities
// which are to be unset
// for each such =, drop that capability
Expand Down

0 comments on commit 337d3df

Please sign in to comment.