-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我想在cdk tools模块添加网络连接的功能,发现编译的时候原来的某个模块报错 #96
Comments
看起来,我猜测你的研发环境是 windows,这个两个函数在 windows 是不支持的,因为 syscall 和 unix 的包在 linux 上用的比较多。你可以使用交叉编译设定编译包为 linux,因为 cdk 是纯 golang 的,所以这个很方便。 |
写完了欢迎 pr 上来让社区评审哈。 |
github.com/cdk-team/CDK/pkg/util
....\pkg\util\cgroup.go:174:19: undefined: unix.Utsname
....\pkg\util\cgroup.go:175:14: undefined: unix.Uname
....\pkg\util\file_io.go:72:32: undefined: syscall.Stat_t
github.com/cdk-team/CDK/pkg/exploit
....\pkg\exploit\rewrite_cgroup_devices.go:49:38: undefined: syscall.Stat_t
....\pkg\exploit\rewrite_cgroup_devices.go:147:18: undefined: syscall.Mknod
The text was updated successfully, but these errors were encountered: