1N/A * init_system_file_sd - 1N/A * NTFS 3.1 - System files security decriptors 1N/A * ===================================================== 1N/A * Create the security descriptor for system file number @sys_file_no and 1N/A * return a pointer to the descriptor. 1N/A * Note the root directory system file (".") is very different and handled by a 1N/A * different function. 1N/A * The sd is returned in *@sd_val and has length *@sd_val_len. 1N/A * Do NOT free *@sd_val as it is static memory. This also means that you can 1N/A * only use *@sd_val until the next call to this function. 1N/A * Now at offset 0x14, as specified in the security descriptor, we have 1N/A * Now at offset 0x1c, just after the DACL's ACL, we have the first 1N/A * ACE of the DACL. The type of the ACE is access allowed. 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * Now at offset 0x30 within security descriptor, just after the first 1N/A * ACE of the DACL. All system files, except the root directory, have 1N/A /* The second ACE of the DACL. Type is access allowed. */ 1N/A /* Only $AttrDef and $Boot behave differently to everything else. */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * Now at offset 0x48 into the security descriptor, as specified in the 1N/A * security descriptor, we now have the owner SID. 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * Now at offset 0x54 into the security descriptor, as specified in the 1N/A * security descriptor, we have the group SID. 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * Creates the security_descriptor for the root folder on ntfs 3.1 as created 1N/A * by Windows Vista (when the format is done from the disk management MMC 1N/A * snap-in, note this is different from the format done from the disk 1N/A * properties in Windows Explorer). 1N/A //security descriptor relative 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * NTFS 3.1 - System files security decriptors 1N/A * =========================================== 1N/A * Create the security descriptor entries in $SDS data stream like they 1N/A * are in a partition, newly formatted with windows 2003 1N/A * security descriptor #1 1N/A //security descriptor relative 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A * security descriptor #2 1N/A //security descriptor relative 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */ 1N/A /* SECURITY_NT_SID_AUTHORITY (S-1-5) */