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:ad4:436b:: with SMTP id u11mr30776727qvt.26.1632233012488; Tue, 21 Sep 2021 07:03:32 -0700 (PDT) X-Received: by 2002:a05:6902:1549:: with SMTP id r9mr37654480ybu.204.1632233012290; Tue, 21 Sep 2021 07:03:32 -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 07:03:32 -0700 (PDT) In-Reply-To: <2bcb8dd1-40b6-4125-b89d-01bf75c9bff2n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=84.92.86.82; posting-account=OCGnxwkAAADCyu751mus9xKbEvUSs9BP NNTP-Posting-Host: 84.92.86.82 References: <2bcb8dd1-40b6-4125-b89d-01bf75c9bff2n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6203fa6d-40b8-43ac-af3d-8c0949600331n@googlegroups.com> Subject: Re: best way of dropping privileges with setresuid From: Kevin Chadwick Injection-Date: Tue, 21 Sep 2021 14:03:32 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62809 List-Id: On Tuesday, September 21, 2021 at 1:36:05 PM UTC, Kevin Chadwick wrote: > Hi, > > I have found the Gnat Create_Socket_Pair procedure. > > What is the best way of calling setresuid? > > C interface? Or should I be looking at isolation with Ada, completely differently to C and perhaps even not using any form of IPC?