mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-11 21:36:23 +00:00
331a109f91
Prior to rename(2)'ing the final selinux policy files into place, fsync(2) them to ensure the contents will be fully written prior to rename. While we are here, also fix checking of write(2) to detect short writes and treat them as an error. This code could be more generally improved but keeping to the minimal changes required to fix this bug. Fixes: https://github.com/SELinuxProject/selinux/issues/237 Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com> Acked-by: Nicolas Iooss <nicolas.iooss@m4x.org> |
||
---|---|---|
.. | ||
example | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
COPYING | ||
Makefile | ||
VERSION |