Checking security context