selinux/libsemanage
Stephen Smalley 331a109f91 libsemanage: fsync final files before rename
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>
2020-05-15 12:40:34 +02:00
..
example Author: Daniel J Walsh 2008-09-15 09:25:33 -04:00
include libsemanage: mark all exported function "extern" 2019-10-18 07:34:46 +13:00
man libsemanage: clarify handle-unknown configuration setting in man page 2020-04-28 09:27:49 +02:00
src libsemanage: fsync final files before rename 2020-05-15 12:40:34 +02:00
tests libsemanage/tests: check that string pointers are not NULL before comparing them 2019-10-01 14:33:04 -04:00
utils Always use /usr/bin/python3 in Python scripts 2019-02-20 16:43:27 +01:00
.gitignore Add subdirectory .gitignore files. 2009-10-20 21:25:55 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libsemanage: semanage store migration script 2014-08-26 08:03:31 -04:00
VERSION Update VERSIONs to 3.0 for release. 2019-11-28 13:46:48 +01:00