<!--
{
  "availability" : [
    "SwiftPM: 5.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/PluginNetworkPermissionScope",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription28PluginNetworkPermissionScopeO"
  },
  "title" : "PluginNetworkPermissionScope"
}
-->

# PluginNetworkPermissionScope

The scope of a network permission.

```
enum PluginNetworkPermissionScope
```

## Overview

The scope can be none, local connections only, or all connections.

## Topics

### Enumeration Cases

[`case all(ports: [Int])`](/documentation/PackageDescription/PluginNetworkPermissionScope/all(ports:)-swift.enum.case)

Allow local and outgoing network connections; can be limited to a list of allowed ports.

[`case docker`](/documentation/PackageDescription/PluginNetworkPermissionScope/docker)

Allow connections to Docker through UNIX domain sockets.

[`case local(ports: [Int])`](/documentation/PackageDescription/PluginNetworkPermissionScope/local(ports:)-swift.enum.case)

Allow local network connections; can be limited to a list of allowed ports.

[`case none`](/documentation/PackageDescription/PluginNetworkPermissionScope/none)

Do not allow network access.

[`case unixDomainSocket`](/documentation/PackageDescription/PluginNetworkPermissionScope/unixDomainSocket)

Allow connections to any UNIX domain socket.

### Type Methods

[`static func all(ports: Range<Int>) -> PluginNetworkPermissionScope`](/documentation/PackageDescription/PluginNetworkPermissionScope/all(ports:)-swift.type.method)

Allow local and outgoing network connections, limited to a range of allowed ports.

[`static func local(ports: Range<Int>) -> PluginNetworkPermissionScope`](/documentation/PackageDescription/PluginNetworkPermissionScope/local(ports:)-swift.type.method)

Allow local network connections, limited to a range of allowed ports.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)