`snap install/refresh --classic _non_classic_mode_snap_` doesn't disable security confinement

Sometimes it would be preferable to manually disabling the security confinement of certain snaps in certain use cases (like accessing host commands), however the --classic switch isn’t affective when installing/refreshing a snap, is this an expected behavior?

Yes. If you want to debug a snap by disabling confinement temporarily, then use --devmode when installing, not --classic. The --classic which is only for snaps which were built as confinement: classic.

1 Like