Skip to content

Commit

Permalink
Merge pull request #1349 from higuruchi/Fix/Set_capability_failed
Browse files Browse the repository at this point in the history
Fixed set capability fail.
  • Loading branch information
utam0k authored Nov 17, 2022
2 parents f9c141c + 337d3df commit bb610a3
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 bb610a3

Please sign in to comment.