{"blog_title":"hiboma\u306e\u65e5\u8a18","title":"Linux: 0, 1, 2 \u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3092\u9589\u3058\u3066 setuid \u3057\u305f\u30d0\u30a4\u30ca\u30ea\u5b9f\u884c\u306e\u6319\u52d5\u3092\u8abf\u3079\u308b","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiboma.hatenadiary.jp%2Fentry%2F2023%2F06%2F07%2F111851\" title=\"Linux: 0, 1, 2 \u306e\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u3092\u9589\u3058\u3066 setuid \u3057\u305f\u30d0\u30a4\u30ca\u30ea\u5b9f\u884c\u306e\u6319\u52d5\u3092\u8abf\u3079\u308b - hiboma\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"hiboma","published":"2023-06-07 11:18:51","width":"100%","description":"\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067 setuid \u3057\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u5b9f\u884c\u3059\u308b\u6319\u52d5\u3067\u65b0\u305f\u306b\u77e5\u3063\u305f\u3053\u3068\u304c\u3042\u3063\u305f lwn.net \u4ee5\u4e0b\u306b\u5f15\u7528\u3059\u308b Some OSes (e.g., OpenBSD) protect against this by opening /dev/null on any unused FDs in the 0-2 range when execing a setuid program. As far as I can tell, Linux does not (but maybe I'm missing something...). This behavior is permitted in P\u2026","author_url":"https://blog.hatena.ne.jp/hiboma/","provider_name":"Hatena Blog","url":"https://hiboma.hatenadiary.jp/entry/2023/06/07/111851","type":"rich","height":"190","categories":[],"blog_url":"https://hiboma.hatenadiary.jp/","provider_url":"https://hatena.blog","version":"1.0"}