this post was submitted on 20 May 2026
34 points (88.6% liked)

Linux

65392 readers
700 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

Debian 13:

$ uname -r
6.12.88+deb13-amd64

$ snap debug sandbox-features|grep confinement
confinement-options:  classic devmode

$ snap debug confinement
partial

$ aa-enabled
Yes

Ubuntu (24.04):

$ uname -r
6.8.0-117-generic

$ snap debug sandbox-features|grep confinement
confinement-options:  classic devmode strict

$ snap debug confinement
strict

$ aa-enabled
Yes

What does this mean, you ask? Well, basically every Snap package you thought was running isolated in it's own little sandbox were running unconfined the whole time. The prorpietary app you removed the :home connection from, so it wouldn't be able to access your home directory? Well, it could have exfiltrated all our private files in the meantime.

How is this not a bigger deal and how are Snaps ever to become mainstream when even today, more than 10 years after the introduction of snaps, you can't run them sandboxed on a huge portion of Linux distros?

you are viewing a single comment's thread
view the rest of the comments
[–] adarza@lemmy.ca 2 points 3 hours ago (1 children)

have you actually looked at a snap's status?

root@cave:~# lsb_release -d
Description:    Debian GNU/Linux 13 (trixie)
root@cave:~# uname -r
6.12.88+deb13-amd64
root@cave:~# snap debug sandbox-features|grep confinement
confinement-options:  classic devmode
root@cave:~# snap debug confinement
partial
root@cave:~# aa-enabled
Yes
root@cave:~# snap info --verbose hello-world
name:    hello-world
summary: The 'hello-world' of snaps
health:
  status:  unknown
  message: health has not been set
publisher: Canonical✓
contact:   snaps@canonical.com
links:
  contact:
    - mailto:snaps@canonical.com
license: unset
description: |
  This is a simple hello world example.
commands:
  - hello-world.env
  - hello-world.evil
  - hello-world
  - hello-world.sh
notes:               
  private:           false
  confinement:       strict
  devmode:           false
  jailmode:          false
  trymode:           false
  enabled:           true
  broken:            false
  ignore-validation: false
snap-id:      buPKUD3TKqCOgLEjjHx5kSiCpIs5cMuQ
tracking:     latest/stable
refresh-date: today at 07:43 CDT
installed:    6.4 (29) 20.5kB -
root@cave:~# snap run hello-world.evil
Hello Evil World!
This example demonstrates the app confinement
You should see a permission denied error next
/snap/hello-world/29/bin/evil: 9: /snap/hello-world/29/bin/evil: cannot create /var/tmp/myevil.txt: Permission denied
root@cave:~# 

[–] Lemmchen@feddit.org 1 points 2 hours ago

I tried running chromium, removing :home and was still able save and open webpages in ~/test.html. However, this happened through the native file picker dialog.