Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

templates: Use 'mediate_deleted' flag for profiles #20

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

fredldotme
Copy link
Contributor

@fredldotme fredldotme commented Jan 19, 2021

Since the upgrade to Qt 5.12 QTemporaryFile runs into the issue of hard-linking files
(based on their fd in /proc/$PID/fd) in TMPDIR which the default AppArmor behavior prevents.

The way snapd solved it was by applying the 'mediate_deleted' flag
in addition to 'attach_disconnected' to each profile, so let's mimic that.

More information: https://bugs.launchpad.net/apparmor/+bug/1772097

Since the upgrade to Qt 5.12 QTemporaryFile runs into the issue of
hard-linking files which the default AppArmor behavior prevents.

The way snapd solved it was by applying the 'mediate_deleted' flag
in addition to 'attach_disconnected' to each profile, so let's mimic that.

More information: https://bugs.launchpad.net/apparmor/+bug/1772097
Copy link
Member

@dobey dobey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@dobey dobey merged commit a29d84f into xenial Jan 19, 2021
@dobey dobey deleted the xenial_-_mediatedeleted branch January 19, 2021 22:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants