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

Check if package make syscalls #879

Open
anjmao opened this issue Oct 14, 2022 · 1 comment
Open

Check if package make syscalls #879

anjmao opened this issue Oct 14, 2022 · 1 comment

Comments

@anjmao
Copy link

anjmao commented Oct 14, 2022

I was thinking about making tool to check if package makes any syscalls. There are many simple util libraries for parsing, collections helpers etc. Such libraries should not make any syscalls for network or file access.

What do you think about adding this optional check to gosec for static syscalls analysis.

gosec -include=Gxxx github.com/badoux/checkmail

Example output

syscall.SOCK_STREAM made by net.DialTimeout in checkmail.go:106
@ccojocar
Copy link
Member

This sounds interesting. I think that is valuable for auditing code. I will be happy to receive such a contribution.

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

2 participants