code: private static void checkAccess(Channel c) {
          SecurityManager sm = System.getSecurityManager();
          if (sm != null) {
              sm.checkPermission(
                  new RuntimePermission("inheritedChannel")
              );
          }
      }
docs: /*
  If there's a SecurityManager then check for the appropriate
  RuntimePermission.