Prove actual Windows agent process identity under SYSTEM diagnostic
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -34,6 +34,16 @@ class PeerControlGuards(unittest.TestCase):
|
||||
pipe['actual_server_pid']=999
|
||||
with self.assertRaises(Exception):control.summarize(report,payload,ident)
|
||||
|
||||
def test_direct_system_proof_is_not_reported_as_a_pipe_control(self):
|
||||
report,payload,ident=self.fixture();report['reports'].clear();payload['direct_peer_proof']=True
|
||||
report['reports']['parent-token']={'user_sid':'S-1-5-18','parent_service_sid_enabled':True}
|
||||
value={'source':'own_system_direct_production_agent_peer_proof','case_id':ident,'expected_agent_pid':5140,'no_jobs':True,'read_only':True,'pipe_used':False,'token_duplicated':False,'service_or_process_acl_changed':False,'result':{'direct_agent_peer_proof':True,'verified':False,'error_codes':['HELPER_SCM_IMAGE_BINDING']}}
|
||||
report['reports']['parent-result']=value
|
||||
result=control.summarize(report,payload,ident)
|
||||
self.assertFalse(result['direct_agent_peer_proof']['result']['verified']);self.assertEqual(result['controls'],{})
|
||||
value['pipe_used']=True
|
||||
with self.assertRaises(Exception):control.summarize(report,payload,ident)
|
||||
|
||||
def test_lost_service_start_reply_cannot_repeat_service_operation(self):
|
||||
with tempfile.TemporaryDirectory() as temporary:
|
||||
state=Path(temporary);ident=str(uuid.uuid4());folder=state/ident;folder.mkdir(mode=0o700)
|
||||
|
||||
Reference in New Issue
Block a user