Page MenuHomeFreeBSD

Fix audit of chflagsat, lgetfh, and setfib
ClosedPublic

Authored by asomers on Jul 22 2018, 5:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 10:47 PM
Unknown Object (File)
Sun, Nov 17, 4:13 AM
Unknown Object (File)
Sat, Nov 16, 10:50 PM
Unknown Object (File)
Apr 6 2024, 6:28 PM
Unknown Object (File)
Feb 24 2024, 2:27 AM
Unknown Object (File)
Feb 24 2024, 2:27 AM
Unknown Object (File)
Feb 24 2024, 2:27 AM
Unknown Object (File)
Feb 23 2024, 8:50 PM
Subscribers

Details

Summary

Fix audit of chflagsat, lgetfh, and setfib

These syscalls were always supposed to have been auditted, but due to
oversights never were.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Woah! This was easy. Though I guess later on, we can add these lines to eliminate false positives from lgetfh(2)

pid = getpid();
snprintf(extregex, sizeof(extregex), "lgetfh.*%d.*return,success", pid);

Also, many more such tests can be improved similarly.

This revision is now accepted and ready to land.Jul 22 2018, 12:21 PM
This revision was automatically updated to reflect the committed changes.