Comments (16)
@thorduri I hope you don't mind, I went ahead and added some text to the README via ab55783, does this look okay to you?
from libseccomp-golang.
package main
import (
"fmt"
"reflect"
)
/*
#include <stdlib.h>
#include <seccomp.h>
#define ARCH_BAD ~0
const uint32_t C_ARCH_BAD = ARCH_BAD;
*/
import "C"
func main() {
fmt.Println(reflect.TypeOf(C.C_ARCH_BAD))
}
i run this code on different server and get different result:
result1: main._Ctype_uint32_t
result1: main._Ctype_uint
from libseccomp-golang.
resolve it:
golang/go#12599
my C complier gcc(4.6.3) is too old
from libseccomp-golang.
Glad to hear this was resolved - I was having difficulty replicating the failure. Probably worth adding something to the readme about GCC and Golang versions that we can build against.
from libseccomp-golang.
I'm going to reopen this so we don't forget it, I agree with @mheon that we should document our version dependencies. @mheon or @meihuabo, do either of you want to draft patch for the readme?
from libseccomp-golang.
I also agree with @mheon
I will try different gcc and go combination to find the minimum version to install libseccomp-golang
from libseccomp-golang.
Great, thanks for the help!
from libseccomp-golang.
The earliest version I've personally verified on is Ubuntu 14.04's Golang 1.2.1 and GCC 4.8.4. GCC <= 4.6 seems to cause the issue indicated here. Would be interesting to see if GCC 4.7.x works.
from libseccomp-golang.
I've verified GCC 4.6.4 and it works
But I encountered som difficulties when setting up to GCC 4.6.x environment
still working on the environment
from libseccomp-golang.
Would a blurb like the following (on top of #14 -- I'm loathe to add it directly now) suffice to close this issue ?
* Installing the package
Using go get:
$ go get github.com/seccomp/libseccomp-golang
For golang versions older then 1.2.1, and GCC versions older then 4.8.4 your milage may vary.
Adding a "supported" blurb is harder, as there are currently no tests for that (yet).
from libseccomp-golang.
@mheon what do you think of @thorduri's suggestion?
from libseccomp-golang.
@pcmoore Sounds fine here. I don't anticipate many people still on this combination, as even LTS distros like Debian and RHEL have moved past Go 1.2, but it's good to cover our bases.
from libseccomp-golang.
@mheon It has probably less to do with the go version, then the packaged / distributed libseccomp though.
I'll submit a PR with that blurb when #14 gets merged.
I'd love to see the PRs/Issues that are attached to the v2.3 milestone dealt with, and then see #4 implemented -- and maintaining "tagging" parity with libseccomp (I have a similar peeve with vendoring the package).
Anything I can do specifically to help with that ?
from libseccomp-golang.
@thorduri I apologize that I'm not clearing the libseccomp issues/PRs very quickly, especially when it comes to the golang bindings. I'm hopeful that I will be able to spend more time on these as we get close to the end of the year, but at the moment the audit and SELinux kernel work is dominating my time.
Thanks for your interest and patches, I really do appreciate the help!
from libseccomp-golang.
@pcmoore No problem!
from libseccomp-golang.
Based on the thumbs-up, I'm going to consider this resolved and close this issue. Thanks all!
from libseccomp-golang.
Related Issues (20)
- RFE: drop libseccomp < 2.5.0 support HOT 2
- Q: Is there any way for the NotifReceive function to end? HOT 6
- RFE: Add support for SCMP_FLTATR_CTL_SSB HOT 6
- BUG: rename the "master" branch to "main" #255 HOT 2
- BUG: documented CompareMaskedEqual value order incorrect HOT 3
- RFE: add support for RISCV64 HOT 2
- Q: Is there a way to handle SIGSYS/ActTrap in go code? HOT 4
- Q: cut a new release HOT 6
- RFE: add seccomp notifier support HOT 5
- BUG: look into replacing Travis CI with GitHub actions HOT 4
- BUG: test failure on ppc64le HOT 21
- BUG: Replace TravisCI Badge with Github Actions Badge HOT 2
- RFE: add release process document HOT 1
- Q: please cut a 0.9.1.1 release with RISC-V support HOT 1
- Q: Ubuntu 20.04 with installed libseccomp-dev libraries HOT 2
- BUG: missing security policy
- ADMIN: add Kir Kolyshkin as a maintainer HOT 12
- Q: enable seccomp notify for API level 5, linux kernel 5.6 and below HOT 4
- BUG: unable to compile on Archlinux HOT 10
- BUG: updated README.md to include the first signed release tag version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libseccomp-golang.