build: support for unconfined flag.

This commit is contained in:
Alexandre Pujol 2025-08-24 22:52:35 +02:00
parent 9b7c1acb1b
commit bfcf9f846c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -38,6 +38,9 @@ func (b Complain) Apply(opt *Option, profile string) (string, error) {
if slices.Contains(flags, "complain") { if slices.Contains(flags, "complain") {
return profile, nil return profile, nil
} }
if slices.Contains(flags, "unconfined") {
return profile, nil
}
} }
flags = append(flags, "complain") flags = append(flags, "complain")
strFlags := " flags=(" + strings.Join(flags, ",") + ") {\n" strFlags := " flags=(" + strings.Join(flags, ",") + ") {\n"