Error while child inheriting Shared SSL cache from parent

hanumesh nk <[email protected]> Wed, 16 Aug 2023 19:04:41 +0530
Newsgroups gmane.comp.mozilla.crypto
Message-ID <CAMiJu-n-mvhyRhAkjqLEhA3oEnMQq1oS2Pj6ktk=sBape_nKgQ@mail.gmail.com>
Hi Team,

We are using NSS 3.79 on Linux 5.4.17-2136.316.7.el7uek.aarch64 (ARM
machine).

We are facing "security library failure. (-8191)" error while child process
tries to inherit the cache from its parent.

Here are the steps that we are doing:

1. Parent calls SSL_ConfigMPServerSIDCache(0, 0, 0, cacheDirectory)
   where "cacheDirectory" is a string specifying the pathname of the
directory that will contain the session cache.

2. Then parent calls fork and creates child.
3. Child forked will call execv and then executes
SSL_InheritMPServerSIDCache(NULL) which is returning the
   error "security library failure. (-8191)".


cacheDirectory has sufficient permissions and the child has some value set
in its SSL_INHERITANCE environmental variable.

The same code perfectly works on Linux 5.4.17-2136.321.4.el7uek.x86_64
(Intel) and SunOs.


What could be the reason for the error?
Any help to resolve this issue would be really helpful.

Best Regards,
Hanumesh

-- 
You received this message because you are subscribed to the Google Groups "[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/mozilla.org/d/msgid/dev-tech-crypto/CAMiJu-n-mvhyRhAkjqLEhA3oEnMQq1oS2Pj6ktk%3DsBape_nKgQ%40mail.gmail.com.