URL:
https://github.com/SSSD/sssd/pull/5370
Author: deastoe
Title: #5370: nss: Use posix_fallocate() to alloc memcache file
Action: opened
PR body:
"""
If sssd_nss starts up while the filesystem where the memcache files
will reside (SSS_NSS_MCACHE_DIR) does not have sufficient space,
sssd_nss can be killed by SIGBUS while attempting to write to the
mmap()'d address space.
Replace the ftruncate() call with posix_fallocate(), which will fail
in this scenario, so we can detect the condition and continue startup
without the memcache functionality.
Fixes #5369
"""
To pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/5370/head:pr5370
git checkout pr5370