Skip to content

Commit

Permalink
cmd/oscap: tigthen file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap authored and ezr-ondrej committed Oct 7, 2024
1 parent 7a2bae2 commit 1135745
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oscap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func generateJson(dir, datastreamDistro, profileDescription, profile string) {
}
// hack to add an empty line at the end of the file for nicer diffs
bArray = append(bArray, '\n')
err = os.WriteFile(path.Join(dir, "customizations.json"), bArray, os.ModePerm)
err = os.WriteFile(path.Join(dir, "customizations.json"), bArray, 0600)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -264,7 +264,7 @@ func main() {
distro.Distribution.Name,
"oscap",
filepath.Base(string(profile)))
err := os.MkdirAll(dir, os.ModePerm)
err := os.MkdirAll(dir, 0600)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 1135745

Please sign in to comment.