mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
2840e84a97
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> |
||
---|---|---|
.. | ||
acls.c | ||
attrib.c | ||
attrlist.c | ||
bitmap.c | ||
bootsect.c | ||
cache.c | ||
collate.c | ||
compat.c | ||
compress.c | ||
debug.c | ||
device.c | ||
dir.c | ||
ea.c | ||
efs.c | ||
index.c | ||
inode.c | ||
ioctl.c | ||
lcnalloc.c | ||
libntfs-3g.pc.in | ||
libntfs-3g.script.so.in | ||
logfile.c | ||
logging.c | ||
Makefile.am | ||
mft.c | ||
misc.c | ||
mst.c | ||
object_id.c | ||
realpath.c | ||
reparse.c | ||
runlist.c | ||
security.c | ||
unistr.c | ||
unix_io.c | ||
volume.c | ||
win32_io.c | ||
xattrs.c |