Error while child inheriting Shared SSL cache from parent

5 views
Skip to first unread message

hanumesh nk

unread,
Aug 16, 2023, 9:34:56 AM8/16/23
to dev-tec...@mozilla.org
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
   
Reply all
Reply to author
Forward
0 new messages