go.mod: update osbuild/images to v0.69.0
This commit is contained in:
parent
1cc90c6a0b
commit
8ac80e8abc
611 changed files with 28281 additions and 32629 deletions
34
vendor/github.com/osbuild/images/pkg/customizations/oscap/oscap.go
generated
vendored
34
vendor/github.com/osbuild/images/pkg/customizations/oscap/oscap.go
generated
vendored
|
|
@ -1,11 +1,7 @@
|
|||
package oscap
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/osbuild/images/pkg/customizations/fsnode"
|
||||
)
|
||||
|
||||
type Profile string
|
||||
|
|
@ -43,10 +39,24 @@ const (
|
|||
defaultRHEL8Datastream string = "/usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml"
|
||||
defaultRHEL9Datastream string = "/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml"
|
||||
|
||||
// tailoring directory path
|
||||
tailoringDirPath string = "/usr/share/xml/osbuild-openscap-data"
|
||||
// oscap related directories
|
||||
DataDir string = "/oscap_data"
|
||||
)
|
||||
|
||||
type RemediationConfig struct {
|
||||
Datastream string
|
||||
ProfileID string
|
||||
TailoringPath string
|
||||
CompressionEnabled bool
|
||||
}
|
||||
|
||||
type TailoringConfig struct {
|
||||
RemediationConfig
|
||||
TailoredProfileID string
|
||||
Selected []string
|
||||
Unselected []string
|
||||
}
|
||||
|
||||
func DefaultFedoraDatastream() string {
|
||||
return defaultFedoraDatastream
|
||||
}
|
||||
|
|
@ -80,15 +90,3 @@ func IsProfileAllowed(profile string, allowlist []Profile) bool {
|
|||
|
||||
return false
|
||||
}
|
||||
|
||||
func GetTailoringFile(profile string) (string, string, *fsnode.Directory, error) {
|
||||
newProfile := fmt.Sprintf("%s_osbuild_tailoring", profile)
|
||||
path := filepath.Join(tailoringDirPath, "tailoring.xml")
|
||||
|
||||
tailoringDir, err := fsnode.NewDirectory(tailoringDirPath, nil, nil, nil, true)
|
||||
if err != nil {
|
||||
return "", "", nil, err
|
||||
}
|
||||
|
||||
return newProfile, path, tailoringDir, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue