Example #1
0
        private bool Update2(PermissionSetTriple currentTriple, FrameSecurityDescriptorWithResolver fsdWithResolver)
        {
            CompressedStack securityContext = fsdWithResolver.Resolver.GetSecurityContext();

            securityContext.CompleteConstruction((CompressedStack)null);
            return(this.Update(currentTriple, securityContext.PLS));
        }
Example #2
0
        private bool Update2(PermissionSetTriple currentTriple, FrameSecurityDescriptorWithResolver fsdWithResolver)
        {
            System.Reflection.Emit.DynamicResolver resolver = fsdWithResolver.Resolver;
            CompressedStack dynamicCompressedStack          = resolver.GetSecurityContext();

            dynamicCompressedStack.CompleteConstruction(null);
            return(this.Update(currentTriple, dynamicCompressedStack.PLS));
        }
Example #3
0
        private bool Update(PermissionSetTriple currentTriple, FrameSecurityDescriptor fsd)
        {
            FrameSecurityDescriptorWithResolver fsdWithResolver = fsd as FrameSecurityDescriptorWithResolver;

            if (fsdWithResolver != null)
            {
                return(this.Update2(currentTriple, fsdWithResolver));
            }
            bool flag = this.Update2(currentTriple, fsd, false);

            if (!flag)
            {
                flag = this.Update2(currentTriple, fsd, true);
            }
            return(flag);
        }
Example #4
0
        [System.Security.SecurityCritical]  // auto-generated
        private bool Update(PermissionSetTriple currentTriple, FrameSecurityDescriptor fsd)
        {
#if FEATURE_COMPRESSEDSTACK
            FrameSecurityDescriptorWithResolver fsdWithResolver = fsd as FrameSecurityDescriptorWithResolver;
            if (fsdWithResolver != null)
            {
                return(Update2(currentTriple, fsdWithResolver));
            }
#endif // FEATURE_COMPRESSEDSTACK

            // check imperative
            bool fHalt = Update2(currentTriple, fsd, false);
            if (!fHalt)
            {
                // then declarative
                fHalt = Update2(currentTriple, fsd, true);
            }
            return(fHalt);
        }
 private bool Update2(PermissionSetTriple currentTriple, FrameSecurityDescriptorWithResolver fsdWithResolver)
 {
     System.Reflection.Emit.DynamicResolver resolver = fsdWithResolver.Resolver;
     CompressedStack dynamicCompressedStack = resolver.GetSecurityContext();
     dynamicCompressedStack.CompleteConstruction(null);
     return this.Update(currentTriple, dynamicCompressedStack.PLS);
 }