We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
....\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
....\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:
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
看起来,我猜测你的研发环境是 windows,这个两个函数在 windows 是不支持的,因为 syscall 和 unix 的包在 linux 上用的比较多。你可以使用交叉编译设定编译包为 linux,因为 cdk 是纯 golang 的,所以这个很方便。
https://www.topgoer.com/%E5%85%B6%E4%BB%96/%E8%B7%A8%E5%B9%B3%E5%8F%B0%E4%BA%A4%E5%8F%89%E7%BC%96%E8%AF%91.html
Sorry, something went wrong.
写完了欢迎 pr 上来让社区评审哈。
No branches or pull requests
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: