mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-29 11:08:37 -05:00 
			
		
		
		
	dll: fsctl: CreateSelfRelativeSecurityDescriptor: default security descriptor has FILE_ALL_ACCESS instead of GENERIC_ALL, which does not seem to work with SeAccessCheck
This commit is contained in:
		| @@ -52,7 +52,7 @@ static NTSTATUS CreateSelfRelativeSecurityDescriptor(PSECURITY_DESCRIPTOR Securi | ||||
|             (AclSize = sizeof(ACL) + sizeof(ACCESS_ALLOWED_ACE) + GetLengthSid(User->User.Sid) - sizeof(DWORD)) && | ||||
|             (Acl = Malloc(AclSize)) && | ||||
|             InitializeAcl(Acl, AclSize, ACL_REVISION) && | ||||
|             AddAccessAllowedAce(Acl, ACL_REVISION, GENERIC_ALL, User->User.Sid) && | ||||
|             AddAccessAllowedAce(Acl, ACL_REVISION, FILE_ALL_ACCESS, User->User.Sid) && | ||||
|             InitializeSecurityDescriptor(&SecurityDescriptorStruct, SECURITY_DESCRIPTOR_REVISION) && | ||||
|             SetSecurityDescriptorDacl(&SecurityDescriptorStruct, TRUE, Acl, FALSE) && | ||||
|             SetSecurityDescriptorControl(&SecurityDescriptorStruct, SE_DACL_PROTECTED, SE_DACL_PROTECTED); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user