Skip to content

Commit

Permalink
snapcraft.yaml: use expected path for snap-confine apparmor profile (#…
Browse files Browse the repository at this point in the history
…14029)

This is a work-around for LP#1673247, which in theory should not
affect the snap. But for now, since the code and tests depend on that
path we should use that name, and then fix the code later.
  • Loading branch information
valentindavid authored May 31, 2024
1 parent b9ee8ce commit f95aa7e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-aux/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ parts:
install -Dm644 -t "${CRAFT_PART_INSTALL}/usr/lib/snapd" data/completion/bash/complete.sh data/completion/bash/etelpmoc.sh
install -Dm644 -t "${CRAFT_PART_INSTALL}/usr/share/bash-completion/completions" ./data/completion/bash/snap
# TODO: For now snapd expects a renamed apparmor profile to
# work-around LP#1673247. We should fix that since the snapd
# should not need that work-around.
mv "${CRAFT_PART_INSTALL}/etc/apparmor.d/usr.lib.snapd.snap-confine" "${CRAFT_PART_INSTALL}/etc/apparmor.d/usr.lib.snapd.snap-confine.real"
# copy helper for collecting debug output
cp -av debug-tools/snap-debug-info.sh ${CRAFT_PART_INSTALL}/usr/lib/snapd/
Expand Down

0 comments on commit f95aa7e

Please sign in to comment.