(user string)
| 26 | ) |
| 27 | |
| 28 | func generateUserOpts(user string) ([]oci.SpecOpts, error) { |
| 29 | var opts []oci.SpecOpts |
| 30 | if user != "" { |
| 31 | opts = append(opts, oci.WithUser(user), withResetAdditionalGIDs(), oci.WithAdditionalGIDs(user)) |
| 32 | } |
| 33 | return opts, nil |
| 34 | } |
| 35 | |
| 36 | func generateUmaskOpts(umask string) ([]oci.SpecOpts, error) { |
| 37 | var opts []oci.SpecOpts |
no test coverage detected
searching dependent graphs…