For the construction of a DACL to use with ZwSetSecurityObject I would like to define the SIDs for the Administrators group and the users group. However, I have not seen any examples that show just for the groups. In the example below SeExports->SeAliasUsersSid is the SID that matches built-in user accounts.
status = RtlAddAccessAllowedAce(pAclReadOnly,
ACL_REVISION,
GENERIC_READ,
SeExports->SeAliasUsersSid );
Can I just use the SIDs for Administrators group (S-1-5-32-544), and Users group (S-1-5-32-545) instead? I am using RtlCreateAcl, RtlAddAccessAllowedAce, RtlCreateSecurityDescriptor, & RtlSetDaclSecurityDescriptor before calling ZwSetSecurityObject.