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

snap [Feature Request] #2153

Closed
mikeroyal opened this issue Jul 19, 2019 · 8 comments
Closed

snap [Feature Request] #2153

mikeroyal opened this issue Jul 19, 2019 · 8 comments

Comments

@mikeroyal
Copy link

I was wondering if you might have an interest in a snap. I would help make the snap(interactive shell) and submit a PR if there's any interest.
Crafting your first snap

@gpotter2
Copy link
Member

gpotter2 commented Jul 19, 2019

Thanks for the call,

If there is a way to make snapcraft automatically fetch the latest PyPi release, then yes. (for instance, conda-forge are killers when it comes to automatization).

Otherwise, if it gives us another thing to maintain, we'll need to be sure it's worth the work (I'm not sure if the people that use Scapy would really go through snap).

I'm also not sure if we would support all platforms Snap supports out of the box, because we have quite a few platform-specific calls (especially to read the routes). It's sometimes nice to have the maintainers patch that for us.

I would help make the snap(interactive shell)

I'm not sure what this means (but I don't know Snap very well).

@mikeroyal
Copy link
Author

hi @gpotter2, I wanted to clarify that I would make a snap for setting up the scapy shell. As for distribution support I'm mainly focusing on Debian/Ubuntu for now. Also snapcraft does use and supports PyPi https://pypi.org/project/snapcraft/.

@gpotter2
Copy link
Member

gpotter2 commented Jul 21, 2019

That would be nice, thanks for the proposition 😄

We provide support for Ubuntu, Debian, FreeBSD, NetBSD, OpenBSD, (therefore Kali) OSX & Windows (and Solaris soon) in the main build.

@guedou
Copy link
Member

guedou commented Jul 22, 2019

It sounds like a good idea! Do you know if it is possible to give root privileges or specific capabilities to applications packaged with snap?

@mikeroyal
Copy link
Author

Hi @guedou, snapcraft uses a setuid/setgid root program called snap-confine to setup namespace based containers for snap packages. As for your question of specific capabilities what do you need?

@guedou
Copy link
Member

guedou commented Jul 24, 2019

Scapy requires CAP_NET_RAW to interact with the network.

@mikeroyal
Copy link
Author

mikeroyal commented Jul 24, 2019

Hi @guedou, I need to double check but I do believe the 'network-observe' plug will work with CAP_NET_RAW.

@guedou
Copy link
Member

guedou commented May 27, 2020

Close due to no activity. The request is referenced in #399.

@guedou guedou closed this as completed May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants