Hacker News new | past | comments | ask | show | jobs | submit login

There are legitimate reasons to change the uid at runtime. For example, some server software starts as root and then drops to a less-privileged user. Android relies on this too, zygote, the fully-initialized "blank" runtime process, runs as root and gets forked and changes uid to the corresponding unprivileged user whenever an app is launched.



Sure, and I don't disagree that uid might need to change at runtime, but here we're talking about a struct field being const.




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

Search: