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 27
    • Merge requests 27
  • 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
  • Issues
  • #203
Closed
Open
Issue created Oct 26, 2021 by Paul Wise@pabs3💬

avahi profile: blocks access to some files in /proc

When avahi restarts, the apparmor profile blocks access to these files:

  • /proc/sys/kernel/osrelease
  • /proc/1/environ
  • /proc/cmdline

I note that the avahi apparmor profile still ships in complain mode.

Here is the audit log from an avahi restart:

Oct 26 10:16:06 audit[1399140]: AVC apparmor="ALLOWED" operation="open" profile="avahi-daemon" name="/proc/sys/kernel/osrelease" pid=1399140 comm="avahi-daemon" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 26 10:16:06 audit[1399140]: AVC apparmor="ALLOWED" operation="open" profile="avahi-daemon" name="/proc/1/environ" pid=1399140 comm="avahi-daemon" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Oct 26 10:16:06 audit[1399140]: AVC apparmor="ALLOWED" operation="open" profile="avahi-daemon" name="/proc/cmdline" pid=1399140 comm="avahi-daemon" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

I am using these OS and software versions:

  • Debian 12 bookworm
  • Linux 5.14.12-1
  • apparmor 3.0.3-5
  • avahi 0.8-5
Edited Oct 26, 2021 by Paul Wise
Assignee
Assign to
Time tracking