TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Oneway drop privileges in a non-reversible way

1 pointsby alsadiover 8 years ago

1 comment

dozzieover 8 years ago
&gt; you want to drop privileges (as in Docker entry-points) but you don&#x27;t want your process to be child process of su or sudo process.<p>&gt; Unlike su or sudo this tool would exec to replace the current process (so it would receive signals ..etc.)<p>Where did you get the idea that su or sudo spawn a <i>child processes</i> for commands to run? I would be very, very wary of any security-sensitive code from author who didn&#x27;t get such a basic thing right.<p>Unless you do <i>very magic</i> thing and replace my current shell, which would be the parent process of your command.
评论 #12747913 未加载
评论 #12747964 未加载