(评论)
(comments)
原始链接: https://news.ycombinator.com/item?id=38907568
你的最后一句话提出了一个有趣的观点。 也许事后看来,花在清理 C 代码上的时间本来可以更好地投资于优先考虑安全性而不是便利性的替代编程语言或技术。 然而,现实情况是,C 仍然在行业中占据主导地位,并且拥有数十亿行现有的 C 代码库,并且正在努力解决新发现的 C 编程错误类别,而不是集体转向更安全的语言。 最终,仅安全功能并不一定会转化为更安全的系统。 缓解策略的实施和有效性对于确保系统的整体安全水平同样重要。 同样重要的是要认识到,选择更安全的编程语言只是创建安全系统的一个组成部分。 其他因素,包括强大的安全框架、健全的系统架构、强大的访问控制机制、有效的日志记录、错误处理和通知策略、正确的配置设置以及主动的安全策略也应该发挥作用。 虽然我完全同意使用更安全的语言可能会很好,但它并不总是等于生成更安全的系统,因为它可能取决于如何利用这些安全功能。
根据文本材料,您能解释一下 Linux 安全模型与其他安全模型之间的主要区别吗? 选择更安全的编程语言会对系统安全产生什么影响? 安全措施的实施和有效性在确定整体系统安全方面发挥什么作用?
> What does "Rust-first" mean here? It means not only that both the (micro) kernel and the drivers are implemented in Rust, but also that Rust is the first (and only, at the moment) language that userspace programs can be written in.
> Although technically one can reverse-engineer the Rust-based ABI and the provided Rust toolchain to write apps for Motor OS in e.g. C, that is some work. But standard Rust programs (using standard Rust library, without FFI) will just compile and run - see e.g. https://github.com/moturus/motor-os/tree/main/src/bin/httpd.
> This Rust-first approach is rather unique, as e.g. Redox uses relibc and C-based kernel ABI as the glue...
https://old.reddit.com/r/rust/comments/190znk5/mot%C5%ABrus_...
reply