Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 5mo ago · link · parent

Maybe access should be enabled only for large trusted companies? If every American has access how many of them would gladly sell their verified account to a stranger from Internet who cannot pronounce "th" clearly?

comment 5mo ago · link · parent

And we are definitely not going to put our users on a watch list DB and send their data to the government?

And how do we prevent Chinese companies from training on our open AI models and offering their models for free?

comment 5mo ago · link · parent

No. Processing biometric data like facial features must require person's consent. Individual's rights are more important than interests of capitalists. If someone is a hooligan they should be put in jail not denied entry.

comment 5mo ago · link · parent

Yubikey tokens support attestation. You can sell Yubikey tokens at places inaccessible to minors, like liquor stores, and having a token proves that one is adult. Another way is implementing "parent mode" when OS allows only installing apps from a government-approved whitelist and access sites from a whitelist.

comment 5mo ago · link · parent

There are at least two methods to verify age without disclosing identity:

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

> Firstly if an app does want a space that’s filesystem shape but does not want users/apps to have access for security or consistency reasons ( think Spotify offline storage of songs ).

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

It it not difficult to make selling age verification tokens to minors illegal.

comment 5mo ago · link · parent

How can you be sure that it is anonymous? And why it is not used instead of selfies?

comment 5mo ago · link · parent

> The downside is the user loses some control over the files:

Why not use some human-readable path like ~/Internet/example.com/ ? In this case the user could see the files.

comment 5mo ago · link · parent

An adult could also sell alcohol or drugs to minors so what? Should we add a code to every bottle and require passport to buy them?

comment 5mo ago · link · parent

Today I saw one who also had kind of snowboard goggles in addition to a mask.

comment 5mo ago · link · parent

Black listing is never secure. White listing is. Sadly some really smart person decided it was a good idea to store pictures and SSH keys within the same directory tree.

comment 5mo ago · link · parent

Choose .autostart directory to install a video codec needed to play this video.

comment 5mo ago · link · parent

Firefox position is completely valid. I think a safe option would be to allow access only to a specific directory like "~/Internet files" or something like this. This way the user could grant the access but not to sensitive files. And add an option in about:config to lift the restriction for power users.

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

I could select /boot and ~/.cache. Genius. Given how smart are many Internet users this will definitely not cause any misuse.

comment 5mo ago · link · parent

I saw food delivery couriers on scooters having a balaclava-style mask (only eyes visible).

comment 5mo ago · link · parent

There is actually a way to prove the age anonymously. Yubikey-like devices support attestation - they can have a private key proving authenticity of a device.

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

What about buying API access through intermediaries like OpenRouter? Also, will the people passing verification be added to a openaiwatchlist DB?

comment 5mo ago · link · parent

VLESS is masquerading as a HTTPS website. QUIC will not work as UDP abroad is mostly blocked. UDP is mostly used for VPN and encrypted calls so no law abiding citizen needs UDP anyway.

comment 5mo ago · link · parent

Not only it requires a minimum payment of 39 euro, it doesn't accept cryptocurrency althogh that can be worked around by buying a prepaid virtual card for crypto.

comment 5mo ago · link · parent

Sandbox is for third-party software. You may run the program you wrote yourself without a sandbox but running a random program from Github unrestricted is pretty dumb.

comment 5mo ago · link · parent

I think you rarely need it. May I know what is your usecase that you need this often?

comment 5mo ago · link · parent

> non UTF-8 encoded strings on input/output

I would just use UTF-8 everywhere.

comment 5mo ago · link · parent

It doesn't matter how bad is Windows or Mac because I do not use them.

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

How do you sandbox /proc by the way? So that the app doesn't crash due to missing /proc/self/exe link or /proc/ID/stat file, but cannot read my private information (like /proc/cmdline, /proc/mounts etc)? Things like bind mounts do not work on /proc.

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

The point is, for many use cases you need to install third-party software, including closed-source software, and I want an OS to be able to run it safely. That's the purpose of OS - allow running software.

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

In Linux there is no vetting. Does anyone verify proprietary AI agents like Claude Code? Software like VS Code? Games? They are distributed through random sites and cannot even be banned.

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 thought about VM but it would be pretty expensive and require lot of RAM (which is not cheap nowadays and not always upgradeable on laptops. How would you upgrade your 8 Gb MacBook?) and CPU overhead to emulate the hardware and run one more kernel. The program in VM would not be able to use OpenGL/Vulkan, access the audio card with low latency (for working with audio), connect to DBus (to interact with other software).

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.

1
181920
185