containerd/contrib/apparmor
Sebastiaan van Stijn c990e3f2ed
contrib/apparmor: remove version-dependent rules
These conditions were added in docker in 8cf89245f5
to account for old versions of debian/ubuntu (apparmor_parser < 2.8.95)
that lacked some options;

> This allows us to use the apparmor profile we have in contrib/apparmor/
> and solves the problems where certain functions are not apparent on older
> versions of apparmor_parser on debian/ubuntu.

Those patches were from 2015/2016, and all currently supported distro
versions should now have more current versions than that. Looking at the
oldest supported versions;

Ubuntu 18.04 "Bionic":

    apparmor_parser --version
    AppArmor parser version 2.12
    Copyright (C) 1999-2008 Novell Inc.
    Copyright 2009-2012 Canonical Ltd.

Debian 10 "Buster"

    apparmor_parser --version
    AppArmor parser version 2.13.2
    Copyright (C) 1999-2008 Novell Inc.
    Copyright 2009-2018 Canonical Ltd.

This patch removes the version-dependent rules.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-02-10 16:30:42 +01:00
..
apparmor_fuzzer.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
apparmor_test.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
apparmor_unsupported.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
apparmor.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
template_test.go chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
template.go contrib/apparmor: remove version-dependent rules 2023-02-10 16:30:42 +01:00