Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • security
  • apparmor
  • include
  • perms.h
Find file BlameHistoryPermalink
  • John Johansen's avatar
    apparmor: fix ptrace label match when matching stacked labels · 0dda0b3f
    John Johansen authored Dec 08, 2017
    Given a label with a profile stack of
      A//&B or A//&C ...
    
    A ptrace rule should be able to specify a generic trace pattern with
    a rule like
    
      ptrace trace A//&**,
    
    however this is failing because while the correct label match routine
    is called, it is being done post label decomposition so it is always
    being done against a profile instead of the stacked label.
    
    To fix this refactor the cross check to pass the full peer label in to
    the label_match.
    
    Fixes: 290f458a
    
     ("apparmor: allow ptrace checks to be finer grained than just capability")
    Cc: Stable <stable@vger.kernel.org>
    Reported-by: default avatarMatthew Garrett <mjg59@google.com>
    Tested-by: default avatarMatthew Garrett <mjg59@google.com>
    Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
    0dda0b3f
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7