修复Linux加固服务无法读取初始化网卡地址
This commit is contained in:
1 parent
d46e84865a
commit
5573c64b20
3 files changed
+30
-3
No files matched your search
@@ -202,7 +202,8 @@ func renderUnitFile(options Options) (string, error) {
|
||||
"RestrictSUIDSGID=yes",
|
||||
"RemoveIPC=yes",
|
||||
"SystemCallArchitectures=native",
|
||||
"RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6",
|
||||
// 初始化证书枚举本机网卡需要 NETLINK_ROUTE,空能力集仍禁止网络管理操作。
|
||||
"RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK",
|
||||
)
|
||||
if len(normalized.ReadWritePaths) > 0 {
|
||||
quotedPaths := make([]string, 0, len(normalized.ReadWritePaths))
|
||||
|
||||
Reference in new issue
Block a user