Need classic review

To make the review of your request easier, please use the following template to provide all the required details and also include any other information that may be relevant.


I understand that strict confinement is generally preferred over classic.

I’ve tried the existing interfaces to make the snap to work under strict confinement.

Hey, what are the issues you’re facing while making it a strictly confined snap?

Hi, sorry for being late

i am getting this error -> open .: permission denied when its in strict

Hi ! @shyammahanta .

There are many factors to consider, even when your program runs in the classic configuration.

This error could have multiple causes.

To test, you could temporarily grant full access to a temporarily directory (recursively) containing some test files and run the program on this target directory to observe the results.

Not sure if any other reasons are there. Btw after creating the .snap the program runs fine on my local even on strict. but it seems not working after i install it using snap install .

Can I see the used commands (snap installation and the log when you execute the command) ?

command i ran as super user snap install gtds | tee log.txt && gtds -v | tee -a log.txt && gtds -s | tee -a log.txt

the out log is here

gtds 1.0.0 from shyam mahanta (imsmahanta) installed
gtds version 1.0.0
 ->  open .: permission denied

can you install and run if it rans on your machine?

Yep ! I will do that.

Try on your side to remove your snap program and install it via this command (in dangerous mode) :

sudo snap install <your-snap> --dangerous

Then test again.

ran sudo snap install gtds_1.0.1_amd64.snap --dangerous

got this

error: This revision of snap "gtds_1.0.1_amd64.snap" was published using
       classic confinement and thus may perform arbitrary system changes
       outside of the security sandbox that snaps are usually confined to,
       which may put your system at risk.

       If you understand and want to proceed repeat the command including
       --classic.

then ran sudo snap install gtds_1.0.1_amd64.snap --dangerous --classic

got this gtds 1.0.1 installed

then i ran gtds -s

got an expected output

69 Files 38 Folders Took 0.01 s Total Size = 11.09 MB

Okay ! Well.

So everything is okay (the behavior seems normal) !

Hint for a local installation of snaps(packed file), add (in most of the time) --dangerous option.

so i guess the classic confinement is going to fix the issue right in this case?

In the .yaml file, if the snap has a classic scope, the installation will be done in classic mode (with the --classic option). But I fear that reviewers will accept that your program is published with the classic confinement :thinking:.

@shyammahanta, feel free to close this topic (by clicking one of the suggestions or scenarios as a solution).

your tool does not look like a compiler or IDE or like gdb … I think it is highly unlikely you will get classic granted by the reviewers based on that category (and I doubt there is any category for “disk usage analyzers” yet)

As explained by @ogra, this snap does not appear to fit within any of the supported categories for classic confinement. As such, we are unable to grant classic confinement for it at this time. Thanks.