9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions
comment 5mo ago · link · parent
comment 5mo ago · link · parent
1) Yubikey-like tokens supporting attestation and sold at places not accessible to minors like liquor stores
2) "parent mode" on desktop and mobile devices - the device would refuse to load any inappropriate sites and install inappropriate apps like Telegram, Omegle or Facebook.
comment 5mo ago · link · parent
Then they should not store anything on user's device.
> Secondly if the user has access they can do the “easy” thing and just throw lots of files in, including things which are sensitive anyway.
OS could add a warning when copying the files into the folder.
> It’s interesting to look at how Android and iOS have handled filesystem sandboxing in relation to this.
Many apps on Android request "media access" which allows accessing all user files.
comment 5mo ago · link · parent
Also, there is a risk of a site writing malware executable, and Linux currently has no sandboxing for such executables so the system would be completely owned once the user runs the program. So the directory should not allow storing executables.
comment 5mo ago · link · parent
So some organization could release Yubikeys with a certain private key and distribute them in stores that allow only adult customers - like liquor stores or sex shops. Owning a key proves that one is adult without disclosing identity. Keys support USB and bluetooth and can be easily supported on any device.
Also, OS developers should implement simple parent mode - such that parents only need to flip a switch and set a password, and do not have to whitelist apps or websites - the OS should use government-provided lists. You might not like the government, but 99% of parents do not want to bother compiling white lists manually.
comment 5mo ago · link · parent
Apple might have something made for the government. They are very cooperative and routinely remove VPN apps from the repository at the request of Russian government, probably they will happily cooperate with US government as well.
> how do you defend from Microsoft/Google/Apple deciding to spy on you
My smartphone is in airplane mode since purchase and doesn't have a SIM card. I am considering options to port an open-souce firmware like Lineage OS, patch proprietary firmware or make mix of both. However to do this I need a realistic emulator that cannot be easily detected and that emulates at least some of phone hardware so that I can see what the programs try to do and where they try to connect to. Obviously there will be no Google services and similar software, mostly open-source apps from F-Droid.
As for computer, I use Linux so I guess I am relatively safe.
comment 5mo ago · link · parent
I ended up with writing a FUSE-based emulation in Python, but there are lot of issues with permissions and namespaces:
- I could run my /proc emulator in the same PID namespace as the target, but in a different mount namespace so that I can mount real /proc there. This is not safe because the target could send signals or ptrace my emulator and gain access to the real /proc. Especially if it is an AI agent, they are pretty capable.
- I could run the emulator in a different mount and PID namespaces but then the emulator needs to translate PIDs into the target namespace, and for this I need to know the format of all files and where they contain PIDs and it is a pain
- running the poorly coded emulator as a root is not an option. The sandbox must work without root.
- ideally the emulator should run as a different user because Linux provides the strongest isolation for processes of different users, but in this case I won't be able to access target's /proc entries.
Also, running a program is the most basic functionality of an OS and you suggest that I need to write my own sandbox to do this because it is not included with Linux. Maybe that is why this year still is not the year of Linux on desktop.
comment 5mo ago · link · parent
In reality, third-party software like Docker or Node.JS typically suggests that you sudo-curl-bash the script from the Internet. How worse could it be.
comment 5mo ago · link · parent
You could restrict yourself to the official repositories, but there is a limited selection of software. There are no closed-source software, like audio editing plugins, graphic editors, games, AI agents and so on. Even open-source software is often missing in official repositories.
comment 5mo ago · link · parent
I actually ran Windows games like Cyberpunk in qemu on a Linux host without performance loss, but that required adding a dedicated GPU for guest and to use realtime audio, one needs to pass through an audio card into the guest.
Furthermore, the CPU already provides a "sandbox" (isolated memory) for processes. The problem is that Linux allows the program to ask the kernel to do anything.
> Linux has features like SELinux and AppArmor.
Neither SELinux not AppArmor allows to show a question "would you like to allow program N to access your microphone" or "would you like to let the program connect to github.com? (Yes) (No) (With decrypting SSL traffic)". They look like they are made to comply with some outdated standards from 80s.
The best you can do today is either write your own sandbox around Linux namespaces (very complicated), or try lightweight VMs like Firecracker, or paravirtualization (like VM but with a shared kernel). Those solutions are made for server use, not for desktop, and require lot of work and programming.
> If you want to install a random package, you are free to do and its your responsibility. Equivalent is side loading in android.
I want to install random packages and still be safe. That's the point of installing an OS, to be able to run random programs on the computer.