Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • apparmor apparmor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 138
    • Issues 138
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 30
    • Merge requests 30
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AppArmorAppArmor
  • apparmorapparmor
  • Merge requests
  • !801

aa-unconfined: Improve fallback handling to attr/current

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christian Boltz requested to merge cboltz/apparmor:cboltz-aa-unconfined-fallback into master Sep 18, 2021
  • Overview 3
  • Commits 1
  • Pipelines 1
  • Changes 1

If /proc//attr/apparmor/current exists, only read that - instead of falling back to /proc//attr/current if a process is for example unconfined so that read_proc_current returns None.

Fixes: #199 (closed)

I propose this patch for 3.0 and master.

2.13 and older only check /proc/*/attr/current. If we want to change that, we'll need to backport some more commits, or maybe just copy over the latest aa-unconfined.

Edited Sep 18, 2021 by Christian Boltz
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cboltz-aa-unconfined-fallback