URL:
https://github.com/SSSD/sssd/pull/241
Title: #241: FleetCommander Integration
jhrozek commented:
"""
In general, to get rid of the TOCTOU issues, the key is using the `*at` and `*fd` family
of functions - you might open the top level directory to get a fd and then instead of
`stat` call `fstat`. You can see how we deal with that in `src/tools/files.c`.
"""
See the full comment at
https://github.com/SSSD/sssd/pull/241#issuecomment-319316366