wine 程序使用 SOCK_RAW 套接字

有些 wine 程序运行时需要特殊权限,否则没法使用原始套接字。

sudo setcap cap_net_raw=ep /usr/bin/wineserver

错误:

Failed to set capabilities on file `/usr/bin/wineserver' (Invalid argument)

原来 /usr/bin/wineserver 是个符号链接。

sudo setcap cap_net_raw=+ep `readlink -f /usr/bin/wineserver`

验证结果是不是为 /usr/bin/wineserver = cap_net_raw+ep

getcap -v `readlink -f /usr/bin/wineserver`

这样迅雷是可以了,不过天龙八部不行。

00f0:err:seh:setup_exception_record stack overflow 68 bytes in thread 00f0 eip 000200ea esp 002312ec stack 0x230000-0x231000-0x330000


Share Tweet Send
0 Comments
Loading...
You've successfully subscribed to 隔窗听雨
Great! Next, complete checkout for full access to 隔窗听雨
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.
豫ICP备19045256号-1