From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:6683:: with SMTP id a125mr27177493qkc.351.1632231364972; Tue, 21 Sep 2021 06:36:04 -0700 (PDT) X-Received: by 2002:a25:7e46:: with SMTP id z67mr36569062ybc.166.1632231364813; Tue, 21 Sep 2021 06:36:04 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 21 Sep 2021 06:36:04 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=84.92.86.82; posting-account=OCGnxwkAAADCyu751mus9xKbEvUSs9BP NNTP-Posting-Host: 84.92.86.82 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2bcb8dd1-40b6-4125-b89d-01bf75c9bff2n@googlegroups.com> Subject: best way of dropping privileges with setresuid From: Kevin Chadwick Injection-Date: Tue, 21 Sep 2021 13:36:04 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62808 List-Id: Hi, I have found the Gnat Create_Socket_Pair procedure. What is the best way of calling setresuid? C interface?