Skip to content

Fix crash in gutils when application is prevented access to passwd file

Jakub Jelen requested to merge jjelen/glib:gutils-crash into master

We noticed a crash in guitils when the application running the code was not able to read particular entries from passwd (as blocked by SELinux in this case). Even though the solution for this particular case is either to fix SELinux policy, not to use PKCS#11 from rngd or not trying to start notification programs from opensc, glib should not crash.

The attached patch fixes the issue and provides also minimal reproducer for particular issue. For more information, see the original bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1787686

Merge request reports