firecracker-microvm / firecracker-microvm/firecracker-containerd

Resolve G301 expect directory permission to be 0750 or less

Open
#809 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.9k
Forks
247
PR merge metrics
No merged PRs in 30d

Description

Resolve the following errors:
```
Error: runtime/service_test.go:315:10: G301: Expect directory permissions to be 0750 or less (gosec)
err := os.MkdirAll(stubDrivePath, os.ModePerm)
```

Contributor guide

Open the contributing guide

Research direction

Start at runtime/service_test.go around line 315 and inspect the os.MkdirAll call reported by gosec as G301. Run the relevant service tests and the gosec check after updating the directory permission handling; done means the test still passes and G301 is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing-qa
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.