Commit Graph

377 Commits (7d3bff9b99a817c6f24c94a956c7858cb6b6a02e)

Author SHA1 Message Date
jpandre d0a84b3ef3 Fixed size returned in security API 2007-10-24 10:02:32 +00:00
jpandre 9551e7eee6 Recognized local users group as meaning world 2007-10-24 07:18:44 +00:00
jpandre b31b4cb124 Returned the securid and size even if short buffer in security API 2007-10-24 06:37:52 +00:00
szaka 5167f7b5dd ntfs_security_hash(): big-endian fix (Erik Larsson) 2007-10-22 18:51:20 +00:00
jpandre c6830ecc23 Fixed a few errno returns 2007-10-22 12:58:06 +00:00
jpandre 4fa21ffe2d Accepted symbolic names for uid and gid in user mapping file 2007-10-21 16:45:06 +00:00
jpandre 8fb2068f41 Recognized the generic creator-owner SID 2007-10-21 16:14:30 +00:00
jpandre ece8b56697 Removed old unused code 2007-10-20 15:27:44 +00:00
jpandre 0c15d089ef Implemented cache extension for legacy directories 2007-10-20 12:40:22 +00:00
jpandre 0ea556dee5 Fixed logic of access() 2007-10-20 12:37:56 +00:00
jpandre 6a96a5cebd Checked volume designated in security API is not mounted 2007-10-20 07:07:03 +00:00
jpandre a597c1c608 Implemented special protection modes : sticky, setuid, setgid 2007-10-19 15:18:55 +00:00
jpandre 3ad5de1d1f Fixed security initialization for old volumes which do not have a $Secure file 2007-10-19 08:09:27 +00:00
jpandre 6886650afc Fixed several endianness errors 2007-10-19 07:16:21 +00:00
jpandre 62407b6b1e Made a double check before creating the first security id 2007-10-18 16:05:33 +00:00
jpandre 86084908e2 Reorganized ACL inheritance to allow inheritance in directories with a
security attribute and no securite id
2007-10-18 14:56:18 +00:00
jpandre 3db8bb1848 Stuffed zeroes into $SDS before writing into a new block, to prevent
the file being automatically made sparse
2007-10-17 12:23:02 +00:00
jpandre 764dced1f1 Fixed errno when could not write to $SDS 2007-10-17 12:20:22 +00:00
jpandre 5f914d0492 Padded end of $SDH entries with 0x490049 like Windows (purpose unknown) 2007-10-17 12:17:51 +00:00
jpandre 85c536de3f Fixed unneeded generation of security id after a hash collision
Fixed possible overflows of SDS-1 into SDS-2
Ended setting security attributes through the API
Reordered function to avoid a forward call
2007-10-15 15:04:11 +00:00
jpandre d93d9562ee Fixed a special case in getting next index entry 2007-10-15 14:59:30 +00:00
jpandre 2ce866d4cd Fixed an error in closing security 2007-10-15 14:58:22 +00:00
jpandre f7ae72ca0a Updated a comment 2007-10-12 13:24:58 +00:00
jpandre ed5d8398a7 Defined an option for upgrading gracefully individual security attributes 2007-10-12 12:58:01 +00:00
jpandre 86f94559c2 Implemented an option for upgrading gracefully individual security attributes
Implemented a security API for tools
Fixed a case for potential index/data inconsistency
Improved hash collision detection through a generic get_next_key()
2007-10-12 12:56:28 +00:00
jpandre 91a4873a23 Implemented a function giving next entry in an index
Removed temporary interfaces for the same aim
2007-10-12 12:54:49 +00:00
jpandre 5c1d979b88 Defined interface to a function giving next entry in an index
Removed temporary interfaces for the same aim
2007-10-12 12:53:06 +00:00
jpandre 3d52f33763 Added a field for security options 2007-10-12 12:51:03 +00:00
jpandre eb1839d187 Defined a security API
Defined an option for graceful security id upgrade
2007-10-12 12:49:58 +00:00
szaka 4eebc42d42 remove bogus format attribute which caused some gcc to crash 2007-10-10 19:37:25 +00:00
jpandre a8a33f0bc3 Reverted back relay for free() and consequences on const ptrs 2007-10-09 13:33:11 +00:00
jpandre 44326c40b7 reverted back relay for free() 2007-10-09 13:27:35 +00:00
jpandre 7cc6adba7c Fixed a missing inode closing 2007-10-09 11:59:33 +00:00
jpandre 0eebef6e06 Code cleaning : fixed machine-dependent cast when fprintf'ing with %lld 2007-10-09 09:05:43 +00:00
jpandre cd8e66dc3a Code cleaning : fixed machine-dependent casts when fprintf'ing with %lld 2007-10-09 09:05:06 +00:00
jpandre ccbd793fae An update in utils_mount_volume() which was missing 2007-10-09 08:21:14 +00:00
jpandre 0fcd72cf55 Cleaned code
- made a few arguments const where needed
- casted to long long arguments fprintf'ed with %lld
- added STREAM_SDS in names of const attributes not to be freed
2007-10-09 08:01:37 +00:00
jpandre 88772c9912 Cleaned code
- made a few arguments const where needed
- fixed a few signedness of variables
2007-10-09 07:55:28 +00:00
jpandre 8032b960d0 Cleaned code
- added a few const to arguments where needed
- fixed signedness in size comparing
2007-10-09 07:51:08 +00:00
jpandre 728a9c1aad added a ntfs_free(const void*) 2007-10-09 07:40:53 +00:00
jpandre 8a210f7776 Cleaned code
- added a few const to arguments where needed
- casted to long long arguments fprintf'ed with %lld
2007-10-09 07:37:07 +00:00
jpandre 2e35668e86 - implemented partial key comparing for hash keys
- cleaned code
2007-10-09 07:35:09 +00:00
jpandre f5b7ac0905 Cleaned code
(added a few const to arguments where needed,
made a few fields unsigned)
2007-10-09 07:32:12 +00:00
jpandre 78c14e05a8 Cleaned code (added a few const to arguments where useful) 2007-10-09 07:30:40 +00:00
szaka 4206ceddce fix warnings 2007-10-08 22:03:31 +00:00
jpandre 773a9b3596 - Logged cache statistics
- Inserted calls to general open() and close() for security files
- Upgraded to v1.1004
2007-10-06 14:52:55 +00:00
jpandre 13a68a1864 Upgraded to v1.1004 2007-10-06 14:48:10 +00:00
jpandre b0f972c764 - fixed a memory corruption case in cacheing of security attributes
- developped two-way cacheing of security attributes
- fixed several endianness errors
- improved code as suggested by Yuval Fledel on Sep 28th
- moved user mapping file to $Extend/$UserMapping
- improved finding next index entry when checking for hash collisions
- integrated into ntfs-3g-1.1004
2007-10-06 14:46:53 +00:00
jpandre 492dbcbe9e Checked consistency of standard information size and v3_Extensions flag 2007-10-06 14:41:23 +00:00
jpandre e84a56b165 Made two more functions public for temporary use in security.c 2007-10-06 14:39:08 +00:00