[Seek Help] 在deepin V23版本下,使用统信 UOS 应用兼容引擎权限问题
Tofloor
poster avatar
jinchun
deepin
2025-02-04 05:19
Author

在deepin V23版本下,使用统信 UOS 应用兼容引擎打开CPing.exe文件,程序可以正常打开,但是在ping网段的时候不生效,在使用调试工具查看日志,出现此错误“err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions.”,好像是因为没有权限,导致没有办法创建SOCK_RAW,然后致使该软件无法调用deepin的物理网卡,所以无法进行ping测试。

同样的问题也发生在使用统信 UOS 应用兼容引擎安装科来网络分析系统,软件可以正常打开,都很正常,但是打开软件后,在网络适配器中会提示“很抱歉,无法找到网络适配器,请重新安装本系统”,且该软件配套的CapsaDrv驱动也在科来软件安装时成功安装,感觉好像也是该软件无法正确获取到deepin的物理网卡信息导致。

请问有什么办法可以解决这个问题吗?如果可以解决这个问题,那真的就很完美了。十分感谢各位!!

Reply Favorite View the author
All Replies
加菲不是胖橘
deepin product team
2025-02-08 17:24
#1

运行cping前先执行一下这个脚本获取权限:

solve-cping-deepin-wine8-stable.zip

脚本信息我列出来,对同类问题有参考价值:

#!/bin/bash

# short script to address the following exception:
# err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions.

WINEBINARY="/opt/deepin-wine8-stable/bin/wineserver"

# some games will use RAW sockets for their multiplayer implementation,
# however Wine can't properly support these without the below grant

# need to target the actual binary, not a symlink
sudo setcap cap_net_raw=ep $WINEBINARY
Reply View the author
jinchun
deepin
2025-02-13 13:53
#2
加菲不是胖橘

运行cping前先执行一下这个脚本获取权限:

solve-cping-deepin-wine8-stable.zip

脚本信息我列出来,对同类问题有参考价值:

#!/bin/bash

# short script to address the following exception:
# err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions.

WINEBINARY="/opt/deepin-wine8-stable/bin/wineserver"

# some games will use RAW sockets for their multiplayer implementation,
# however Wine can't properly support these without the below grant

# need to target the actual binary, not a symlink
sudo setcap cap_net_raw=ep $WINEBINARY

感谢感谢,太感谢了。。

Reply View the author
jinchun
deepin
2025-02-13 23:50
#3
加菲不是胖橘

运行cping前先执行一下这个脚本获取权限:

solve-cping-deepin-wine8-stable.zip

脚本信息我列出来,对同类问题有参考价值:

#!/bin/bash

# short script to address the following exception:
# err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions.

WINEBINARY="/opt/deepin-wine8-stable/bin/wineserver"

# some games will use RAW sockets for their multiplayer implementation,
# however Wine can't properly support these without the below grant

# need to target the actual binary, not a symlink
sudo setcap cap_net_raw=ep $WINEBINARY

经过测试,有用,真的有用,再次感谢

Reply View the author
加菲不是胖橘
deepin product team
2025-02-14 11:04
#4
jinchun

经过测试,有用,真的有用,再次感谢

哈哈,不用谢,希望你以后也可以帮助其他遇到此类问题的网友tail

Reply View the author