The profile below should fix this issue on Plucky. You can copy this
file in /etc/apparmor.d/os-prober and load it with sudo apparmor_parser
-r /etc/apparmor.d/os-prober

If you face any issue with this profile don't hesitate to give feedback.

```
#------------------------------------------------------------------
#    Copyright (C) 2025 Canonical Ltd.
#
#    Author: Maxime Bélair <maxime.bel...@canonical.com>
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#------------------------------------------------------------------
# vim: ft=apparmor

abi <abi/4.0>,

include <tunables/global>

profile os-prober /usr/bin/os-prober flags=(attach_disconnected) {
  include <abstractions/base>

  capability dac_override dac_read_search sys_admin sys_module
sys_rawio,

  mount options=(rprivate, rw),
  mount options=(rw, nosuid, nodev),
  umount,

  mqueue getattr,

  # os-prober uses a lot of dependencies (dash, find, grep, head, kmod, ...)
  # We allow everything in /usr/bin to avoid breakages on dependency updates
  file /usr/bin/** ix,

  file /usr/lib/os-probes/** ix,

  file /usr/sbin/blkid ix,
  file /usr/sbin/lvm ix,
  file /usr/sbin/grub-probe ix,

  # os-prober may read the whole filesystem
  file /{,**} r,

  file /dev/fuse w,
  file /dev/mapper/control w, 
  file /run/blkid/blkid.* wl,
  file /run/lock/lvm/* wk,
  file /run/lvm/hints wk,
  file /run/blkid/blkid.* wl,
  file /tmp/os-prober.*/{,**} w,
  file /var/lib/os-prober/mount/ w,
  file /var/lib/os-prober/labels wl,  


  userns,

}
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2099811

Title:
  Os-prober segmentation fault one message for each partition on same PC

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2099811/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to