ntfs-3g/libntfs-3g
Jean-Pierre André 2840e84a97 Always opened $Secure when mounting NTFS volume
Currently, applications that wish to access security descriptors have to
explicitly open the volume's security descriptor index ("$Secure") using
ntfs_open_secure().  Applications are also responsible for closing the
index when done with it.  However, the cleanup function for doing,
ntfs_close_secure(), cannot be called easily by all applications because
it requires a SECURITY_CONTEXT argument, not simply the ntfs_volume.
Some applications therefore have to close the inode and index contexts
manually in order to clean up properly.

This proposal updates libntfs-3g to open $Secure unconditonally as part
of ntfs_mount(), so that applications do not have to worry about it.

This proposal updates libntfs-3g to open $Secure unconditonally as part
of ntfs_mount(), so that applications do not have to worry about it.

ntfs_close_secure() is updated to take in a ntfs_volume for internal use,
and ntfs_destroy_security_context() is now the function to call to free
memory associated with a SECURITY_CONTEXT rather than a ntfs_volume.

Some memory leaks in error paths of ntfs_open_secure() are also fixed.

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
2016-07-28 16:22:16 +02:00
..
acls.c Tolerated garbage put by Windows 10 into the last ACE 2016-07-19 11:40:20 +02:00
attrib.c Fix compiler warnings about mismatching printf format / argument type. 2016-02-16 09:30:49 +01:00
attrlist.c Fix incorrect usage of native/little-endian types, signed types, etc. 2015-12-21 23:55:31 +01:00
bitmap.c Adapted to ntfs-3g.1.2712 2008-07-13 17:55:57 +00:00
bootsect.c Fix code to use const_cpu_to_X/const_X_to_cpu macros for constants. 2015-12-21 23:21:00 +01:00
cache.c Removed unneeded variables as warned by gcc 4.6 2011-07-05 12:17:29 +02:00
collate.c Made direct calls to collation functions 2009-12-16 10:20:57 +00:00
compat.c Adapted to ntfs-3g.1.2812 2008-08-16 15:17:47 +00:00
compress.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
debug.c Adapted to ntfs-3g.2009.3.8 2009-03-27 09:10:00 +00:00
device.c Fixed a use of uninitialized variable compiler warning 2013-02-13 08:54:34 +01:00
dir.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
ea.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
efs.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
index.c Merge endianness fixes. 2016-01-28 09:22:42 +01:00
inode.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
ioctl.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
lcnalloc.c Fix endianness issues in log and terminal output. 2015-12-21 23:31:09 +01:00
libntfs-3g.pc.in Updating the source directory tree 2008-03-28 14:42:50 +00:00
libntfs-3g.script.so.in Updating the source directory tree 2008-03-28 14:42:50 +00:00
logfile.c Added a usn field to RESTART_PAGE_HEADER 2016-04-06 10:58:25 +02:00
logging.c Enabled renaming of system extended attributes 2010-10-26 08:59:52 +02:00
Makefile.am Implemented fstrim(8) 2014-07-31 14:03:11 +02:00
mft.c Silenced fixup warnings when allocating a new MFT record 2016-04-06 09:32:18 +02:00
misc.c Redesigned caches for indexing cached entries 2009-12-17 17:36:06 +00:00
mst.c mst.c: Fix mixed native/little-endian usage of variable 'usn'. 2016-01-25 11:30:13 +01:00
object_id.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
realpath.c Fixed device path canonicalization for use by devmapper (basilinya) 2011-07-05 12:17:12 +02:00
reparse.c Allowed using full library API on systems without extended attributes support 2016-07-28 16:13:59 +02:00
runlist.c Fixed special case of decompressing a runlist 2015-11-20 16:17:48 +01:00
security.c Always opened $Secure when mounting NTFS volume 2016-07-28 16:22:16 +02:00
unistr.c Cleaned up file name collation code 2016-07-28 16:10:14 +02:00
unix_io.c ntfs_fsync: fix comment (Erik Larsson) 2009-11-05 11:30:47 +00:00
volume.c Always opened $Secure when mounting NTFS volume 2016-07-28 16:22:16 +02:00
win32_io.c Returned an error code for an exclusive access violation on Windows 2016-04-06 10:08:01 +02:00
xattrs.c Removed unused variables 2016-07-28 16:16:42 +02:00