Skip to content

contrib/apparmor: remove version-dependent rules - #8068

Merged
estesp merged 1 commit into
containerd:mainfrom
thaJeztah:apparmor_remove_versioned
Feb 13, 2023
Merged

estesp merged 1 commit into
containerd:mainfrom
thaJeztah:apparmor_remove_versioned

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

These conditions were added in docker in moby/moby@8cf8924 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

@estesp

estesp commented Feb 10, 2023

Copy link
Copy Markdown
Member

Needs rebase on main for Windows CI fixes?

These conditions were added in docker in moby/moby@8cf8924
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>
@thaJeztah
thaJeztah force-pushed the apparmor_remove_versioned branch from 30c893e to c990e3f Compare February 10, 2023 15:30
@thaJeztah

Copy link
Copy Markdown
Member Author

Ah, thanks for the ping rebased 👍

FWIW; I also have a follow-up to this one in #8069. I decided to keep them separate (the more trivial bits first in this PR).

@estesp estesp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants