I need to grant access to everyone for a named pipe I’m creating. I understand the way to do it is to create a NULL/empty DACL and pass it to CreateNamedPipe.
How do I create a NULL DACL? I was told that it is not the same as passing a NULL pointer for LPSECURITY_ATTRIBUTES.
Like this:
I omitted error checking for the sake of brevity. You would not do that.
Then when you call
CreateNamedPipeyou can set up the security attributes record like this:The documentation for
SetSecurityDescriptorDaclstates:So, the above is how to do it, but the documentation does stress that you should not do so.