Changes by: szaka
Update of /cvs/linux-ntfs/ntfsprogs/ntfsprogs
In directory delta357.server4you.de:/tmp/cvs-serv6828
Modified Files:
ntfsinfo.c
Log Message:
fix segfaults when SDS has absolute security descriptor
Index: ntfsinfo.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/ntfsprogs/ntfsinfo.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -p -r1.133 -r1.134
--- ntfsinfo.c 13 Aug 2006 18:41:13 -0000 1.133
+++ ntfsinfo.c 13 Aug 2006 18:43:12 -0000 1.134
@@ -847,8 +847,20 @@ static void ntfs_dump_security_descripto
printf("%s\tRevision:\t\t %u\n", indent, sec_desc->revision);
/* TODO: parse the flags */
- printf("%s\tControl:\t\t 0x%0x\n", indent, sec_desc->control);
+ printf("%s\tControl:\t\t 0x%04x\n", indent, sec_desc->control);
+ if (~sec_desc->control & SE_SELF_RELATIVE) {
+
+ SECURITY_DESCRIPTOR *sd = (SECURITY_DESCRIPTOR *)sec_desc;
+
+ printf("%s\tOwner SID pointer:\t %p\n", indent, sd->owner);
+ printf("%s\tGroup SID pointer:\t %p\n", indent, sd->group);
+ printf("%s\tSACL pointer:\t\t %p\n", indent, sd->sacl);
+ printf("%s\tDACL pointer:\t\t %p\n", indent, sd->dacl);
+
+ return;
+ }
+
if (sec_desc->owner) {
sid = ntfs_sid_to_mbs((SID *)((char *)sec_desc +
le32_to_cpu(sec_desc->owner)), NULL, 0);
|