mirror of
https://github.com/containers/podman.git
synced 2025-12-11 09:18:34 +08:00
vendor latest c/common
Includes the default db backend changes. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
5
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
5
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
@@ -212,6 +212,11 @@ func parseAAParserVersion(output string) (int, error) {
|
||||
words := strings.Split(lines[0], " ")
|
||||
version := words[len(words)-1]
|
||||
|
||||
// trim "-beta1" suffix from version="3.0.0-beta1" if exists
|
||||
version = strings.SplitN(version, "-", 2)[0]
|
||||
// also trim "~..." suffix used historically (https://gitlab.com/apparmor/apparmor/-/commit/bca67d3d27d219d11ce8c9cc70612bd637f88c10)
|
||||
version = strings.SplitN(version, "~", 2)[0]
|
||||
|
||||
// split by major minor version
|
||||
v := strings.Split(version, ".")
|
||||
if len(v) == 0 || len(v) > 3 {
|
||||
|
||||
Reference in New Issue
Block a user