Are snap sources constrained by contained licenses?

Hi,

I was initially resistant to the migration of more and more Ubuntu packages into snap, but I can understand the benefits. One thing that worries me is that I feel my system is becoming a little too tamper proof.

I’d like to try building my own instances of some of the snaps (eg: Libre Office) installed on my system. I haven’t looked into it yet, but I’m interested to know whether snap build scripts are allowed to be more restrictive than the licenses (MIT, GPL, etc) of enclosed sources?

The snapcraft YAML looks friendly enough to anyone familiar with CI/CD or devops, and I’m a big fan of the one button build, but I don’t have a good sense of the openness of the ecosystem as a whole. Is casual customising of snaps encouraged and/or supported by the architecture?

Also, where is the best place to read about the internals of snapd?

Cheers, bitrat