ktrace tests: Add a missing mode in open(O_CREAT)

MFC after:	1 week

(cherry picked from commit 9cc67e43610e34a692398a65adcc5e8846e84250)
This commit is contained in:
Mark Johnston 2024-07-28 15:31:40 +00:00
parent 067adbb4be
commit 014b6c341d

View file

@ -116,7 +116,7 @@ cap_trace_child(int cpid, struct ktr_cap_fail *v, int numv)
int error, fd, i;
ATF_REQUIRE((fd = open("ktrace.out",
O_RDONLY | O_CREAT | O_TRUNC)) != -1);
O_RDONLY | O_CREAT | O_TRUNC, 0600)) != -1);
ATF_REQUIRE(ktrace("ktrace.out", KTROP_SET,
KTRFAC_CAPFAIL, cpid) != -1);
/* Notify child that we've starting tracing. */