Skip to content
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

How do we use non-file policy input? #50

Open
dma opened this issue Sep 12, 2016 · 1 comment
Open

How do we use non-file policy input? #50

dma opened this issue Sep 12, 2016 · 1 comment

Comments

@dma
Copy link

dma commented Sep 12, 2016

Hey gosecco devs,

re: https://github.com/twtiger/gosecco/blob/master/seccomp.go#L47

parser.CombinedSources doesn't exist, how do we supply a string as the policy source and then load the compiled filter?

BTW gosecco is now in Oz master. Should be delivered to SGOS users soon.

Thanks!

@olabini
Copy link
Member

olabini commented Sep 13, 2016

Hey
Sorry, small typo in the docs. I pushed an update. You can use the function parser.CombineSources to generate a parser.CombinedSource.

You can use it like this:
gosecco.PrepareSource(parser.CombineSources(parser.FileSource("file1"), parser.FileSource("file2")), gosecco.SeccompSettings{})

Hope that helps.

And about the news, that's great, that's very exiting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants