http://social.msdn.microsoft.com/Forums/en/windowssecurity/thread/9bd7c2de-ec7f-4141-980a-260689d02745

It seems that there is no way to modify the permissions of a named pipe after it has been created.
I tried and it always either simply doesn't work or returns ACCESS_DENIED.
So, I had to specify both the DACL and SACL up front when creating the pipe.

The DACL code was pasted above in an earlier thread and the SACL can be created as follows:

1. Create a new using InitializeAcl()
2. Initialize a new SID specifying 'SECURITY_MANDATORY_LOW_RID'
3. Call AddMandatoryAce() to add the SID to the ACL
4. Call SetSecurityDescriptorSacl() to add the ACL to the security descriptor

Posted by kuaaan
,


사랑합니다. 편안히 잠드소서