Skip to content
  • John Johansen's avatar
    parser: ignore feature abi rules · 46336582
    John Johansen authored
    AppArmor 3.0 requires policy to use a feature abi rule for access to
    new features. However some policy may start using abi rules even if
    they don't have rules that require new features.  This is especially
    true for out of tree policy being shipped in other packages.
    
    Add enough support to older releases that the parser will ignore the
    abi rule and warn that it is falling back to the apparmor 2.x
    technique of using the system abi.
    
    If the profile contains rules that the older parser does not
    understand it will fail policy compilation at the unknown rule instead
    of the abi rule.
    
    PR: !196
    (backported form commit 83df7c47
    
    )
    Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
    Acked-by: default avatarSeth Arnold <seth.arnold@canonical.com>
    46336582