-
Notifications
You must be signed in to change notification settings - Fork 171
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
BUG: minor python pydoc fixes #99
Conversation
(First time contributing to the project — hopefully I'm doing this properly!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @skrap! I'm not a libseccomp maintainer but I took a quick look at this PR. The changes look sensible to me but I had one question that I left in-line. Thanks!
UPDATE: I noticed that you missed your signed-off-by. Please see the "Sign Your Work" section of CONTRIBUTING.md.
f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin)) | ||
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout)) | ||
f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr)) | ||
f.add_rule(ALLOW, "rt_sigreturn") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is rt_sigreturn
removed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's largely platform differences — either python or underlying libs (I'd suspect glibc or friends) use rt_sigreturn
in some versions, and not in others. I think it's probably safer to leave it in! I'll fix up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, actually it was just moved above. Sorry, my memory of this patch is a bit hazy apparently.
You know, I took it out because it wasn't needed on my platform to complete a trivial python program, whereas the others were. I suppose it could be glibc differences, or python differences... or maybe rt_sigreturn should be added back? What do you think? It's actually pretty hard to find a minimal yet useful set of seccomp filters! |
I think that if I think there's two things left for you to do to get these patches merged:
|
I agree with @tyhicks, it's best to leave
Beyond that all you need to do is follow the guidance in CONTRIBUTING.md as previously discussed. |
Hi @skrap, are you able to make the requested changes (see above)? I'd like to include this in the v2.5 release, and it would be nice if you could fixup the PR so you get proper credit :) |
I believe an earlier commit addressed the concerns about |
I looked through the changes (and ran them, too.) I still think @tyhicks comment about re-adding Other than that, I think it looks good. |
Fix the pydoc example so it's runnable. Signed-off-by: Jonah Petri <[email protected]>
@drakenclimber: Fixed, thanks for the feedback! |
Thanks! Looks good to me.
|
Merged via 853a24c - thanks everyone! |
No description provided.