Move the `CheckMountpoints()` implementation to `blueprint` package, since it does not operate on any data structures from the `disk`. Move the default mountpoint allow list policy definition to the `pathpolicy` package. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
15 lines
346 B
Go
15 lines
346 B
Go
package pathpolicy
|
|
|
|
// MountpointPolicies is a set of default mountpoint policies used for filesystem customizations
|
|
var MountpointPolicies = NewPathPolicies(map[string]PathPolicy{
|
|
"/": {Exact: true},
|
|
"/boot": {Exact: true},
|
|
"/var": {},
|
|
"/opt": {},
|
|
"/srv": {},
|
|
"/usr": {},
|
|
"/app": {},
|
|
"/data": {},
|
|
"/home": {},
|
|
"/tmp": {},
|
|
})
|