This revision introduces tests for syscalls from audit class administrative.
The syscalls are:
- setauid(2)
- getauid(2)
- setaudit(2)
- getaudit(2)
- setaudit_addr(2)
- getaudit_addr(2)
Differential D15871
Add tests for {get/set}auid, {get/set}audit, {get/set}audit_addr aniketp on Jun 17 2018, 8:03 PM. Authored by Tags None Referenced Files
Subscribers
Details This revision introduces tests for syscalls from audit class administrative.
Execute make && make install from test/sys/audit.
Diff Detail
Event Timeline
Comment Actions Instead of passing allocated and unitialized memory as the length for {get/set}audit_addr, simply pass the sizeof(auditinfo) as it is supposed to be used. Thanks to @asomers for suggesting. Although I wish the man-page was a bit more clear on Comment Actions Though it doesn't say so explicitly, length's purpose is probably to allow the auditinfo_addr structure to grow in the future, while preserving the ability of older programs to continue using the old structure. It's a simpler alternative to updating the syscall. |