Enable classic confinement

When a snap needs system resources beyond what strict confinement and the available interfaces can provide, it needs classic confinement.

This page provides guidance on how to enable classic confinement, as well as example solutions for snaps that have extra plugin-specific configurations to accommodate it.

Set the confinement level

You can enable classic confinement with a single key in the project file:

snapcraft.yaml
confinement: classic

When built, the snap now has unsandboxed access to the system, like a traditional app or package.

Next, check for linting errors to look for low-hanging errors that Snapcraft can detect.

Lastly, you may also need to provide extra configuration for the main part’s plugin.

Request classic confinement on the Snap Store