Domanda

I am trying to build a server-client model using named pipes. Because I can't guarantee access to the server named pipe, I choose to use anonymous access to the server. So far, my model worked in any OS under vista, the integrity level keeps blocking write-access to my pipe-server. I am using S:(MN;;NW;;LW):D(A;;GA;;AN) for my security descriptor, but still can't get write access in windows 7. When i use the same code and call CreateFile in win32api with GENERIC_READ it works.

If someone could post working code or explain to me the solution, I would be very grateful.

È stato utile?

Soluzione

I solved the problem, anonymous connection have untrusted integrity , instead of LW I should have write the Sid of untrusted integrity s-1-16-0 to get write access from anonymous connections

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top