GNU bug report logs - #46258
openat, chownat, ... in Guile?

Previous Next

Package: guile;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Tue, 2 Feb 2021 14:47:01 UTC

Severity: normal

To reply to this bug, email your comments to 46258 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#46258; Package guile. (Tue, 02 Feb 2021 14:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maximedevos <at> telenet.be>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 02 Feb 2021 14:47:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guile <at> gnu.org
Subject: openat, chownat, ... in Guile?
Date: Tue, 02 Feb 2021 15:45:31 +0100
[Message part 1 (text/plain, inline)]
Hi guilers,

I would like to see fchownat, openat, fchmodat
and any *at variants I forgot to appear in future versions
of Guile in some form.  I have two proposals, which I will
illustrate with the procedure 'chmod':

* chmod can currently modify permissions of a file.
  This OBJECT argument identifying the file can currently
  be a filename or a port.  Allow a ‘file in a directory’
  object as well.  This could be created with a procedure

  (make-path-at DIRECTORY-PORT FILENAME)

  This procedure does not perform any I/O, but rather
  constructs what is effectively is a pair (DIRECTORY-PORT
  . FILENAME) but with its own type.

* Follow the C API, but with Scheme types.

  (chmodat DIRECTORY-PORT FILENAME MODE FLAGS)

  where FLAGS can include AT_SYMLINK_NOFOLLOW (from chmod(2)
  Linux man page)

Any thoughts?

Greetings,
Maxime

P.S. I'm not subscribed to bug-guile <at> gnu.org, please CC me.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#46258; Package guile. (Fri, 05 Feb 2021 14:17:02 GMT) Full text and rfc822 format available.

Message #8 received at 46258 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: guix-devel <at> gnu.org
Subject: Re: Potential security weakness in Guix services
Date: Fri, 05 Feb 2021 15:16:39 +0100
[Message part 1 (text/plain, inline)]
On Fri, 2021-02-05 at 13:20 +0100, Maxime Devos wrote:
> On Fri, 2021-02-05 at 10:57 +0100, Ludovic Courtès wrote:
> > [...]
> [...]
> 
> I'll try to implement this API in Scheme (using the FFI), and post
> it at https://notabug.org/mdevos/things.  I'll post a follow-up
> messsage once I've implemented the basics (openat, chmodat,
> chownat).

Ping!
https://notabug.org/mdevos/things/src/a0715e6758ad43252e16993dcf688a25156057f3/fs-at.scm

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#46258; Package guile. (Thu, 24 Mar 2022 11:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 46258 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 46258 <at> debbugs.gnu.org, 54485 <at> debbugs.gnu.org
Subject: Re: bug#54485: [PATCH] gnu: Add guile-with-openat.
Date: Thu, 24 Mar 2022 12:55:41 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès schreef op do 24-03-2022 om 12:37 [+0100]:
> Instead, I would prefer to actually review and apply the patches
> upstream.  I’ve been meaning to do that, really, but it requires a chunk
> of time and focus, which keeps leading me to postpone.

OK. I can relate, w.r.t. the IPFS substitution patches.

> Is the latest patch set on guile-devel?  It’s not mentioned at
> <https://issues.guix.gnu.org/46258>.

It's at <https://lists.gnu.org/archive/html/guile-devel/2021-11/msg00005.html>.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 82 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.