parseSystemPaths checks if `systempaths=unconfined` security option is set, and returns the `MaskedPaths` and `ReadonlyPaths` accordingly. An updated list of security options is returned with this option removed, because the `unconfined` option is handled client-side, and should not be sent to the d
(securityOpts []string)
| 965 | // `unconfined` option is handled client-side, and should not be sent to the |
| 966 | // daemon. |
| 967 | func parseSystemPaths(securityOpts []string) (filtered, maskedPaths, readonlyPaths []string) { |
| 968 | filtered = securityOpts[:0] |
| 969 | for _, opt := range securityOpts { |
| 970 | if opt == "systempaths=unconfined" { |
| 971 | maskedPaths = []string{} |
| 972 | readonlyPaths = []string{} |
| 973 | } else { |
| 974 | filtered = append(filtered, opt) |
| 975 | } |
| 976 | } |
| 977 | |
| 978 | return filtered, maskedPaths, readonlyPaths |
| 979 | } |
| 980 | |
| 981 | // parses storage options per container into a map |
| 982 | func parseStorageOpts(storageOpts []string) (map[string]string, error) { |
no outgoing calls
searching dependent graphs…