From 2d999bb4fbbdbf3bb4cd24bdcfe105a9031c38fa Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Sat, 13 Apr 2024 11:47:46 +0800
Subject: [PATCH] remove unused socket

---
 common/project/keywords.go        | 3 ---
 engine/selinux/builder/network.go | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/common/project/keywords.go b/common/project/keywords.go
index 8674aab..6213fc3 100644
--- a/common/project/keywords.go
+++ b/common/project/keywords.go
@@ -122,7 +122,6 @@ const (
 	NetDomainIpx        = "ipx"
 	NetDomainAppletalk  = "appletalk"
 	NetDomainNetrom     = "netrom"
-	NetDomainBridge     = "bridge"
 	NetDomainAtmpvc     = "atmpvc"
 	NetDomainX25        = "x25"
 	NetDomainInet6      = "inet6"
@@ -155,8 +154,6 @@ const (
 	NetDomainAlg        = "alg"
 	NetDomainNfc        = "nfc"
 	NetDomainVsock      = "vsock"
-	NetDomainMpls       = "mpls"
-	NetDomainIb         = "ib"
 	NetDomainSmc        = "smc"
 
 	NetTypeStream    = "stream"
diff --git a/engine/selinux/builder/network.go b/engine/selinux/builder/network.go
index 354cc3a..fbb04bc 100644
--- a/engine/selinux/builder/network.go
+++ b/engine/selinux/builder/network.go
@@ -29,7 +29,6 @@ var commonDomainSocketMap = map[string]string{
 	project.NetDomainIpx:        "ipx_socket",
 	project.NetDomainAppletalk:  "appletalk_socket",
 	project.NetDomainNetrom:     "netrom_socket",
-	project.NetDomainBridge:     "bridge_socket",
 	project.NetDomainAtmpvc:     "atmpvc_socket",
 	project.NetDomainX25:        "x25_socket",
 	project.NetDomainRose:       "rose_socket",
@@ -59,8 +58,6 @@ var commonDomainSocketMap = map[string]string{
 	project.NetDomainAlg:        "alg_socket",
 	project.NetDomainNfc:        "nfc_socket",
 	project.NetDomainVsock:      "vsock_socket",
-	project.NetDomainMpls:       "mpls_socket",
-	project.NetDomainIb:         "ib_socket",
 	project.NetDomainSmc:        "smc_socket",
 }
 
-- 
2.33.0

