Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
add all capability to builder
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Jun 20, 2016
1 parent 516edce commit 30be654
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin-dgr/aci-build.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ func (aci *Aci) prepareBuildAci() (string, error) {
if err := ioutil.WriteFile(aci.target+pathBuilder+common.PathRootfs+"/.keep", []byte(""), 0644); err != nil {
return "", errs.WithEF(err, aci.fields.WithField("file", aci.target+pathBuilder+common.PathRootfs+"/.keep"), "Failed to write keep file")
}
all := json.RawMessage(`{"set":["all"]}`)
aci.manifest.Aci.App.Isolators = []types.Isolator{{Name: "os/linux/capabilities-retain-set", ValueRaw: &all}}

if err := common.WriteAciManifest(aci.manifest, aci.target+pathBuilder+common.PathManifest, common.PrefixBuilder+aci.manifest.NameAndVersion.Name(), dgrVersion); err != nil {
return "", err
Expand Down

0 comments on commit 30be654

Please sign in to comment.