Indeed, a profile for linux-boot-prober is also needed. Find it below.

Again, if you face any issue with these two profiles 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 linux-boot-prober /usr/bin/linux-boot-prober 
flags=(attach_disconnected) {
  include <abstractions/base>

  capability dac_read_search sys_admin,

  mount options=(rprivate, rw) -> /,
  mount options=(rw, nosuid, nodev) -> /var/lib/os-prober/mount/,
  umount,

  # linux-boot-prober uses a lot of dependencies: we allow everything
  # in /usr/bin to avoid breakages on dependency updates
  file /usr/bin/* ix,

  file /usr/lib/linux-boot-probes/** ix,

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

  file /dev/fuse w,
  file /dev/mapper/control w,
  file /mounted-map w,
  file /tmp/os-prober.*/{,*} w,
  file /var/lib/os-prober/mount/ w,

  # linux-boot-prober may read the whole filesystem
  file /{,**} r,
  
}
```

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

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

Status in apparmor package in Ubuntu:
  Confirmed
Status in os-prober package in Ubuntu:
  Confirmed

Bug description:
  Reporting this bug on os-prober, my bug 
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2099662
  was incorrectly attributed to grub

  corrado@corrado-n3-pp-0223:~$ sudo os-prober
  [sudo] password for corrado: 
  find: Failed to restore initial working directory: /home/corrado: Permission 
denied
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  Segmentation fault
  corrado@corrado-n3-pp-0223:~$ 

  Attaching related journal

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: os-prober 1.83ubuntu2
  ProcVersionSignature: Ubuntu 6.12.0-15.15-generic 6.12.11
  Uname: Linux 6.12.0-15-generic x86_64
  ApportVersion: 2.31.0+git20250220-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Feb 23 15:46:27 2025
  InstallationDate: Installed on 2025-02-23 (0 days ago)
  InstallationMedia: Ubuntu 25.04 "Plucky Puffin" - Daily amd64 (20250223)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: os-prober
  UpgradeStatus: No upgrade log present (probably fresh install)

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to