mirror of
https://github.com/containers/podman.git
synced 2025-11-17 03:27:47 +08:00
vendor c/common@main
In hope to fix a CI flake. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
8
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
@@ -251,19 +251,17 @@ func CheckProfileAndLoadDefault(name string) (string, error) {
|
||||
if unshare.IsRootless() {
|
||||
if name != "" {
|
||||
return "", errors.Wrapf(ErrApparmorRootless, "cannot load AppArmor profile %q", name)
|
||||
} else {
|
||||
logrus.Debug("Skipping loading default AppArmor profile (rootless mode)")
|
||||
return "", nil
|
||||
}
|
||||
logrus.Debug("Skipping loading default AppArmor profile (rootless mode)")
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// Check if AppArmor is disabled and error out if a profile is to be set.
|
||||
if !runcaa.IsEnabled() {
|
||||
if name == "" {
|
||||
return "", nil
|
||||
} else {
|
||||
return "", errors.Errorf("profile %q specified but AppArmor is disabled on the host", name)
|
||||
}
|
||||
return "", errors.Errorf("profile %q specified but AppArmor is disabled on the host", name)
|
||||
}
|
||||
|
||||
if name == "" {
|
||||
|
||||
Reference in New Issue
Block a user