Page MenuHome GnuPG

libassuanProject
ActivePublic

Members

  • This project does not have any members.
  • View All

Recent Activity

Sat, Nov 26

gniibe changed the status of T6249: gpgrt: spawn functions from Testing to Open.
Sat, Nov 26, 3:26 AM · gnupg, libassuan, gpgrt

Fri, Nov 18

gniibe added a comment to T6275: gnupg: Improve gnupg_spawn_process function.

On Windows, closing/inheriting handles is different to POSIX.
https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873
https://devblogs.microsoft.com/oldnewthing/20130426-00/?p=4543
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw
https://learn.microsoft.com/en-us/windows/win32/api/winbase/ns-winbase-startupinfoexw
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-initializeprocthreadattributelist
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-updateprocthreadattribute
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-deleteprocthreadattributelist

Fri, Nov 18, 6:33 AM · gnupg, libassuan, gpgrt

Wed, Nov 16

werner added a comment to T6249: gpgrt: spawn functions.

We should consider to break the Assuan API maybe we can do that without too many problems for the current use cases.

Wed, Nov 16, 9:18 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6275: gnupg: Improve gnupg_spawn_process function.

I'm going to use gnupg_process_* prefix for the functions.

Wed, Nov 16, 8:20 AM · gnupg, libassuan, gpgrt
gniibe triaged T6275: gnupg: Improve gnupg_spawn_process function as Normal priority.
Wed, Nov 16, 8:18 AM · gnupg, libassuan, gpgrt

Tue, Nov 15

gniibe added a comment to T6249: gpgrt: spawn functions.

Last two points are for future changes of assuan internal; For the case of controlling fds in detail, it is possible to use spawn callback controlling fds by the routine and let no-touching (inherit) by the spawn function.

Tue, Nov 15, 1:45 AM · gnupg, libassuan, gpgrt

Mon, Nov 14

spelissier updated the task description for T5977: Smartcard PIN stays in clear in memory.
Mon, Nov 14, 1:18 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
spelissier updated the task description for T5977: Smartcard PIN stays in clear in memory.
Mon, Nov 14, 1:17 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
werner added a comment to T6249: gpgrt: spawn functions.

I don't understand the last two points: This is only about the three standard descriptors but how shall we supply more descriptors? At least in GPGME we definitely need more.

Mon, Nov 14, 7:12 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

Evaluating again, I'd like to change spawn functions like this one in libgpg-error:

Mon, Nov 14, 6:52 AM · gnupg, libassuan, gpgrt

Thu, Nov 10

gniibe added a comment to T6249: gpgrt: spawn functions.

Examining again, I realized that the current spawn API (not published yet, only available in libgpg-error master) is not that useful in general (or difficult to use), while it works somehow.

Thu, Nov 10, 5:59 AM · gnupg, libassuan, gpgrt

Tue, Nov 8

gniibe added a comment to T6249: gpgrt: spawn functions.

Here is the change of GnuPG to use new spawn functions from libgpg-error:

Tue, Nov 8, 7:36 AM · gnupg, libassuan, gpgrt

Mon, Nov 7

gniibe changed the status of T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows from Open to Testing.
Mon, Nov 7, 6:11 AM · Windows, libassuan, Feature Request
gniibe changed the status of T6249: gpgrt: spawn functions from Open to Testing.
Mon, Nov 7, 6:11 AM · gnupg, libassuan, gpgrt

Fri, Nov 4

gniibe added a comment to T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.

Merged PIPE connection part into master.

Fri, Nov 4, 11:10 AM · Windows, libassuan, Feature Request
gniibe added a comment to T6249: gpgrt: spawn functions.

For the spawn_cb, I reconsider. Having three calls complicates use, and it is actually not needed. In the case of pthread_atfork, it is needed, because fork may be used deeply in some functions. In our use cases of spawn function, prepare part of the callback can be called before calling spawn, and parent part of the callback can be called after calling spawn.

Fri, Nov 4, 6:49 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

I decide use of pid_t, as there are different semantics between POSIX and Windows, *and* there is a problem of MinGW-w64. I introduce gpgrt_process_t, instead.

Fri, Nov 4, 6:45 AM · gnupg, libassuan, gpgrt

Oct 31 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

Another thing when we define a type which represents process.
For pid_t, MinGW-w64 has a bug: https://bugzilla.redhat.com/show_bug.cgi?id=1397787 (or https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/1456671365-21759-1-git-send-email-sw%40weilnetz.de/).
(1) GetCurrentProcessId always returns 32-bit (DWORD), so, it can be represented in 32-bit (although DWORD is unsigned).
(2) POSIX requires pid_t should be signed integer https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
(3) Original MinGW defines pid_t as int (in include/sys/type.h by _pid_t). (checked in mingwrt-5.4.2)

Oct 31 2022, 5:56 AM · gnupg, libassuan, gpgrt

Oct 27 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

@werner - having another argument might be useful. Indeed, pthread_atfork has three callback functions as its arguments (prepare, parent, and child).

Oct 27 2022, 10:12 AM · gnupg, libassuan, gpgrt
werner added a comment to T6249: gpgrt: spawn functions.

I general I agree.

Oct 27 2022, 8:44 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

To have clear semantics, I propose a change to gpgrt_spawn_process_fd (calling SPAWN_CB, instead of AFTER_FORK_CB, and give it return value), and exporting gpgrt_close_all_fds to users.

Oct 27 2022, 7:55 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

By the commit rE43c1e85fe29a: spawn: Expose spawn functions., spawn functions are exposed now. The API is compatible to the one of internal functions in GnuPG master (2.3).
Semantics is not well-defined portably for:

  • gpgrt_spawn_process: EXCEPT only makes sense in POSIX. User could expect that the API does closing all fds except fds specified by EXCEPT in POSIX.
  • gpgrt_spawn_process_fd: AFTER_FORK_CB only makes sense in POSIX. User could specify the callback so that it can control sigmask, envvar, open/close/dup-ing file descriptors, making sure releasing some resources beforehand, etc.
Oct 27 2022, 4:11 AM · gnupg, libassuan, gpgrt

Oct 21 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

I see. I understand the use cases for POSIX to keep some file descriptors.

Oct 21 2022, 8:41 AM · gnupg, libassuan, gpgrt

Oct 20 2022

werner added a comment to T6249: gpgrt: spawn functions.

without this list we don't have an option to keep file descriptors open; its not just stderr but for example log files and descriptors which pare passed by other meands than libassuan functions.

Oct 20 2022, 1:52 PM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.
  • assuan_pipe_connect and internal _assuan_spawn
Oct 20 2022, 8:13 AM · gnupg, libassuan, gpgrt

Oct 19 2022

gniibe triaged T6249: gpgrt: spawn functions as Normal priority.
Oct 19 2022, 3:12 AM · gnupg, libassuan, gpgrt

Oct 14 2022

gniibe added a comment to T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.

By 1/N...5/N, it works. And it shows the API needs clarification and possible modification/fixes; As written in the comment of system-w32.c, fd == POSIX fd semantics is good, which asks API/ABI break.

Oct 14 2022, 4:57 AM · Windows, libassuan, Feature Request

Oct 12 2022

gniibe added parent tasks for T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows: T4655: Windows 64-bit: gnupg_fd_t, assuan_fd_t and int for fd in the API, and casts, T4656: Windows 64-bit: functions which use pid_t.
Oct 12 2022, 3:44 AM · Windows, libassuan, Feature Request
gniibe claimed T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.
Oct 12 2022, 3:43 AM · Windows, libassuan, Feature Request
gniibe created T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.
Oct 12 2022, 3:43 AM · Windows, libassuan, Feature Request

Sep 22 2022

werner changed the status of T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks from Open to Testing.
Sep 22 2022, 11:01 AM · Feature Request, libassuan
werner changed the status of T5925: libassuan: Add assuan_sock_accept function to the API from Open to Testing.
Sep 22 2022, 10:56 AM · Feature Request, libassuan
werner changed the status of T6018: libassuan: Coverity reports from Open to Testing.
Sep 22 2022, 10:55 AM · patch, libassuan, Bug Report
werner changed the status of T6170: libassuan: Drop WindowsCE support from Open to Testing.
Sep 22 2022, 10:45 AM · libassuan

Aug 31 2022

gniibe added projects to T6170: libassuan: Drop WindowsCE support: libassuan, Restricted Project.

Push the change.

Aug 31 2022, 7:31 AM · libassuan

Jul 27 2022

gniibe removed a project from T5977: Smartcard PIN stays in clear in memory: Restricted Project.

New release of libassuan is expected to make sure it's cleared off.

Jul 27 2022, 2:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 26 2022

werner closed T5977: Smartcard PIN stays in clear in memory as Resolved.
Jul 26 2022, 9:17 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 22 2022

SpriteOvO added a comment to T6078: File `config.guess` is a little out of date.

@gniibe Thanks!

Jul 22 2022, 6:41 PM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report
gniibe closed T6078: File `config.guess` is a little out of date as Resolved.

In the repo, for all related software, it's done.

Jul 22 2022, 3:42 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report
gniibe added a comment to T6078: File `config.guess` is a little out of date.

Note that versions since 2020-11-07 to 2021-07-03 have major problem with non-POSIX shell, which doesn't support $(..) construct.

Jul 22 2022, 3:40 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report

Jul 18 2022

gniibe triaged T6078: File `config.guess` is a little out of date as Normal priority.

Thank you.

Jul 18 2022, 10:56 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report

Jun 9 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Backported to GnuPG 2.2.

Jun 9 2022, 7:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jun 8 2022

gniibe added a project to T6018: libassuan: Coverity reports: Restricted Project.

Applied the changes.

Jun 8 2022, 2:20 PM · patch, libassuan, Bug Report

Jun 7 2022

gniibe claimed T6018: libassuan: Coverity reports.
Jun 7 2022, 1:56 PM · patch, libassuan, Bug Report
Jakuje created T6018: libassuan: Coverity reports.
Jun 7 2022, 11:25 AM · patch, libassuan, Bug Report

Jun 1 2022

gniibe claimed T5977: Smartcard PIN stays in clear in memory.
Jun 1 2022, 5:05 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 27 2022

sergi added a watcher for libassuan: sergi.
May 27 2022, 10:09 PM

May 25 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Pushed the solution which doesn't require new flag for libassuan.

May 25 2022, 9:42 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: Restricted Project.
May 25 2022, 9:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: backport.
May 25 2022, 7:59 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report