Skip to content

snap btop with AppArmor fills dmesg due to inability to read cpuset #1599

@Sylvyrfysh

Description

@Sylvyrfysh

Read the README.md and search for similar issues before posting a bug report!

Describe the bug

When using the btop snap on Ubuntu 24.04 LTS, every refresh triggers an AppArmor failure to read "/sys/fs/cgroup/cpuset.cpus.effective", which results in a dmesg like "[ 1927.402760] audit: type=1400 audit(1775318437.532:1062): apparmor="DENIED" operation="open" class="file" profile="snap.btop.btop" name="/sys/fs/cgroup/cpuset.cpus.effective" pid=112282 comm="btop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0", making dmesg output hard noisy.

To Reproduce

  1. Install snap btop
  2. Run sudo dmesg --follow
  3. Start btop
  4. Observe failure

Expected behavior

btop snap outputs at most one audit failure for cgroup access failure

Info (please complete the following information):

  • btop++ version: btop version: 1.4.6+6164470
    Compiled with: g++-14 (14.2.0)
    Configured with: make STATIC=true GPU_SUPPORT=false RSMI_STATIC=
    • If using snap: name: btop
      summary: Resource monitor that shows usage and stats
      publisher: James Tigert (kz6fittycent)
      store-url: https://snapcraft.io/btop
      contact: https://github.com/kz6fittycent/btop/issues
      license: Apache-2.0
      description: |
      Resource monitor that shows usage and stats for processor, memory, disks, network and processes.
      C++ version and continuation of bashtop and bpytop.
      commands:
  • btop
    snap-id: UgRB8x3LtPA9L2Qo4G26ozMRImexxYzM
    tracking: latest/stable
    refresh-date: today at 10:21 CDT
    channels:
    latest/stable: 1.4.6 2026-04-01 (992) 2MB -
    latest/candidate: ↑
    latest/beta: ↑
    latest/edge: 1.4.6 2026-03-24 (992) 2MB -
    installed: 1.4.6 (992) 2MB -
  • Binary: snap
  • Architecture: x86_64
  • Platform: Linux
  • (Linux) Kernel: 6.17.0-20-generic

Additional context

===> btop++ v1.4.6
2026-04-04 (16:09:50) | DEBUG: Running in DEBUG mode!
2026-04-04 (16:09:50) | INFO: Logger set to DEBUG
2026-04-04 (16:09:50) | DEBUG: Using locale C
2026-04-04 (16:09:50) | DEBUG: TTY mode enabled: false
2026-04-04 (16:09:50) | DEBUG: Shared::init() : Initialized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions