Page MenuHomeFreeBSD

MAC/do: Output errors when parsing rules
Needs ReviewPublic

Authored by olce on Fri, Nov 15, 5:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 7:14 AM
Unknown Object (File)
Mon, Nov 18, 5:07 PM
Unknown Object (File)
Mon, Nov 18, 4:12 PM
Unknown Object (File)
Mon, Nov 18, 11:11 AM
Unknown Object (File)
Mon, Nov 18, 3:53 AM
Unknown Object (File)
Mon, Nov 18, 2:59 AM
Unknown Object (File)
Mon, Nov 18, 2:27 AM
Unknown Object (File)
Mon, Nov 18, 1:40 AM

Details

Reviewers
bapt
Summary

This revision is part of a series. Click on the Stack tab below to see the context.
This series has also been squeezed into D47633 to provide an overall view.

Commit message:
So that administrators can more easily know what the problem is with the
rules they are trying to set.

The new sysctl 'security.mac.do.print_parse_error' controls whether
trying to set sysctl 'security.mac.do.rules' with invalid rules triggers
printing of the error on the system console.

Setting jail parameters directlty reports an error to the calling
process thanks to the VFS options mechanism used by the jail machinery,
so is not controlled by the new sysctl setting.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60608
Build 57492: arc lint + arc unit