Hacker News new | ask | show | jobs
by grishka 2144 days ago
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.
1 comments

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.