Compare the hand-crafted, highly complicated seccomp and apparmor profiles for a few things like chromium, firefox and a few others with off-the-mill stock policy that applies to them when inside the snap.
Are you sure that replacing something detailed and fine-tunable with something generalized won't lead to problems similar to those in OS X App Sandboxing (namely that the system lacks flexibility to specify all necessary privileges)? I mean those profiles are hand-crafted for a reason, I doubt they could be dumbed down to ten lines of YAML.
Anyways, the sandboxing aspect of Snap is not the issue here. You could provide the same sandboxing mechanism that Snap does without bundling every dependency into every app. This way, you would get all the security features of Snap applications while still being able to update libraries separately.
[...] while the one library in the Arch repositories is vulnerable, your entire system is at risk, while when the same library is vulnerable in a Snap, only that Snap's own data is at risk.
Even without Snap, a sandbox could prevent the system from being at risk. Why not simply AppArmor every application without the whole dependency mess? This would combine low-maintenance with the separation of concerns you were talking about.
It is beneficial in many ways. To be clear, it's not that I don't like the idea. I just worry about the following thing: If a serious vulnerability gets disclosed, I have to trust the maintainers of the package in the Arch repositories to get an update out as soon as they can. With snappy, I have to trust the maintainer of every application which depends on the library do do the same thing.
The thing is, funnily enough, the dependency problem has been solved in Windows by using Side-by-Side assemblies. This essentially lets applications use their required (major) version of a dependency by keeping multiple versions on disk.
It's a huge mess, but it saves disk space and allows dependencies to be independently updated compared to bundling everything into every application.
Think about software companies with fixed release schedules. Think about a closed source application you paid a lot of money for two years ago, and the company not giving a shit about your old version anymore (I'm looking at you VMware). Or, think about the small independent developer who does this as a hobby and simply does not have the time to release an update every three days.
Sure, it could work with the same rapid release schedule Arch has, but keep in mind that Snap uses the Ubuntu store - they may naturally be a bit slower :)
On the other hand, if there's a new openssl vulnerability you are now required to update all applications instead of just one package.
This of course also means that every developer is now forced to release updates constantly, which most of them simply won't do. So you'll end up with loads of vulnerable applications you aren't even able to fix.
Are you sure that replacing something detailed and fine-tunable with something generalized won't lead to problems similar to those in OS X App Sandboxing (namely that the system lacks flexibility to specify all necessary privileges)? I mean those profiles are hand-crafted for a reason, I doubt they could be dumbed down to ten lines of YAML.
Anyways, the sandboxing aspect of Snap is not the issue here. You could provide the same sandboxing mechanism that Snap does without bundling every dependency into every app. This way, you would get all the security features of Snap applications while still being able to update libraries separately.
It seems that Snap itself uses a combination of AppArmor and seccomp, generating those profiles upon installing the app. This could also be done without Snap and has nothing to do with the dependency problem.
Even without Snap, a sandbox could prevent the system from being at risk. Why not simply AppArmor every application without the whole dependency mess? This would combine low-maintenance with the separation of concerns you were talking about.
It is beneficial in many ways. To be clear, it's not that I don't like the idea. I just worry about the following thing: If a serious vulnerability gets disclosed, I have to trust the maintainers of the package in the Arch repositories to get an update out as soon as they can. With snappy, I have to trust the maintainer of every application which depends on the library do do the same thing.
The thing is, funnily enough, the dependency problem has been solved in Windows by using Side-by-Side assemblies. This essentially lets applications use their required (major) version of a dependency by keeping multiple versions on disk.
It's a huge mess, but it saves disk space and allows dependencies to be independently updated compared to bundling everything into every application.
Think about software companies with fixed release schedules. Think about a closed source application you paid a lot of money for two years ago, and the company not giving a shit about your old version anymore (I'm looking at you VMware). Or, think about the small independent developer who does this as a hobby and simply does not have the time to release an update every three days.
Sure, it could work with the same rapid release schedule Arch has, but keep in mind that Snap uses the Ubuntu store - they may naturally be a bit slower :)
On the other hand, if there's a new openssl vulnerability you are now required to update all applications instead of just one package.
This of course also means that every developer is now forced to release updates constantly, which most of them simply won't do. So you'll end up with loads of vulnerable applications you aren't even able to fix.
Just had this issue myself. Check if nss-mdns is installed and the "hosts" line in /etc/nsswitch.conf contains "mdns".
End of this list.
Back to top