firecracker-microvm / firecracker-microvm/firecracker-containerd
Resolve G301 expect directory permission to be 0750 or less
Open
- 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
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