Public bug reported: When snapd crashes or restarts it closes its connection to the kernel and the listener state, and all existing notifications are lost.
This is a problem for snapd as it means prompt information is lost, causing failures for the user, and a need to re-prompt the user. The user experience is also poor, as this causes extra prompts, denials after a prompt was allowed and general poor user experience. Prompts that occur during a crash/restart are immediately denied leading to further issues. While snapd could store some of the lost state for each prompt received, the only way to ensure notification received during crash recovery or restart is to have the kernel listener to continue to queue notifications. This requires apparmor to gain the ability to delay listener cleanup and continue to receive notifications while snapd restarts. ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2103578 Title: AppArmor notifications loose state when listener crashes To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2103578/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs