Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, in this particular case, the special behavior of -1 is baked into the setresuid system call, while sudo thought it was just an ordinary UID. So if you look at one of the Rust operating system projects designed from scratch from-scratch OS designs, it might not have this kind of pitfall. But if you literally just reimplement sudo for existing OSes in Rust – which I think would be a neat project for someone to take on – you’d be at risk of running into it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: