kernl API
    Preparing search index...

    Function createFirewallRules

    • The firewall's rules over the host storage.

      A request no stored answer covers is decided by the most specific rule kehto finds: the applet's rule for that request, for its domain, the applet's default, then the same three for every applet. Any deny among a request's requirements refuses it, any ask asks, and it is allowed without asking only when every requirement is. Rules are keyed by an applet's catalogue id, so they survive a new version; stored answers stay tied to the exact code.

      Parameters

      Returns FirewallRules

      The rules.

      const rules = createFirewallRules(localStorage);
      rules.set({ domain: 'relay' }, 'ask');
      rules.set({ applet: summary.manifest.catalogId, operation: 'link.open' }, 'allow');