Skip to content

Commit

Permalink
Merge pull request opencontainers#4429 from kolyshkin/cap-load
Browse files Browse the repository at this point in the history
libct/cap: no need to load capabilities
  • Loading branch information
AkihiroSuda authored Oct 20, 2024
2 parents 8bebdba + eff6f04 commit 08faf15
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libcontainer/capabilities/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ func New(capConfig *configs.Capabilities) (*Caps, error) {
if c.pid, err = capability.NewPid2(0); err != nil {
return nil, err
}
if err = c.pid.Load(); err != nil {
return nil, err
}
if len(unknownCaps) > 0 {
logrus.Warn("ignoring unknown or unavailable capabilities: ", mapKeys(unknownCaps))
}
Expand Down

0 comments on commit 08faf15

Please sign in to comment.