Skip to content

Commit e1209e5

Browse files
committed
Windows: Support named pipe hardening
In production plugins only NT AUTHORITY\SYSTEM which run Docker engine should have access plugin named pipes. Signed-off-by: Olli Janatuinen <[email protected]>
1 parent 45e2431 commit e1209e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/windows_listener.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ const (
1919

2020
// AllowServiceSystemAdmin grants full access permissions for Service, System, Administrator group and account.
2121
AllowServiceSystemAdmin = "D:(A;ID;FA;;;SY)(A;ID;FA;;;BA)(A;ID;FA;;;LA)(A;ID;FA;;;LS)"
22+
23+
// AllowSystemOnly limits access to named pipe for NT AUTHORITY\SYSTEM only
24+
AllowSystemOnly = "D:(A;;GA;;;SY)"
2225
)
2326

2427
func newWindowsListener(address, pluginName, daemonRoot string, pipeConfig *WindowsPipeConfig) (net.Listener, string, error) {

0 commit comments

Comments
 (0)