Page MenuHomeFreeBSD

audit(4): Syscalls concerned with modifying file 'flags'
ClosedPublic

Authored by aniketp on Jun 16 2018, 5:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 8 2024, 9:41 PM
Unknown Object (File)
Oct 4 2024, 7:19 PM
Unknown Object (File)
Oct 3 2024, 6:17 PM
Unknown Object (File)
Oct 3 2024, 5:23 AM
Unknown Object (File)
Sep 27 2024, 9:14 PM
Unknown Object (File)
Sep 27 2024, 9:13 PM
Unknown Object (File)
Sep 27 2024, 9:13 PM
Unknown Object (File)
Sep 27 2024, 9:13 PM
Subscribers

Details

Summary

This revision introduces auditability tests for 3 syscalls within file-attribute-modify
audit class.
The system calls are:

  • chflags(2)
  • lchflags(2)
  • fchflags(2)
Test Plan

Execute make install from usr.sbin/praudit/tests.
Execute kyua test from /usr/test/usr.sbin/praudit. The test case should succeed.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17351
Build 17186: arc lint + arc unit

Event Timeline

Add auclass in lchflags(2) test cases

asomers requested changes to this revision.Jun 16 2018, 6:48 PM

What about chflagsat ?

tests/sys/audit/file-attribute-modify.c
565

Setting this flag will cause cleanup to fail, if the securelevel > 0. Can you pick another flag? How about one that has no special meaning, like UF_OFFLINE?

This revision now requires changes to proceed.Jun 16 2018, 6:48 PM

Use UF_OFFLINE instead of SF_IMMUTABLE for easy cleanup

This revision was not accepted when it landed; it landed in state Needs Review.Jun 17 2018, 3:10 AM
This revision was automatically updated to reflect the committed changes.