upvote
HarmonyOS is a capability based OS. I don't know why anyone in China is still using Rust. The biggest social engineering hack was for the Rust team to convince developers that it is a safe language.
reply
Actually HarmonyOS NEXT is getting its language as well, Cangjie.

https://cangjie-lang.cn/en

https://cangjie-lang.cn/en/docs?url=%2F1.0.0%2Fuser_manual%2...

reply
FreeBSD does this with Capsicum: https://wiki.freebsd.org/Capsicum
reply
1. seL4 exists. I haven't seen much more formal and rigorous than it. Efforts have ported the Linux kernel and RTOS-things to it.

2. Add syscall(s) to POSIX, which encourages *nix adoption, with an API like the following:

- Drop capabilities for thread/process except allow list.

- Test if current thread/process has all listed capabilities.

- List should be able to represent capabilities and their attributes, much like a single unveil() OpenBSD call, maybe as an array of/pointer to struct.

- (Program crashes if syscall capability is missing.)

reply