Page MenuHomeFreeBSD

MAC/do: Fix jail_get() (PR_METHOD_GET)
Needs ReviewPublic

Authored by olce on Fri, Nov 15, 5:07 PM.

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:

  • Properly fill 'jsys' before copying it out (we would leak bytes from the kernel stack). When the current jail has its own 'struct rules', set it to the special value JAIL_SYS_DISABLE if it in fact holds no rules.
  • Don't forget to unlock the jail holding rules on error.
  • Correctly return errors.

Diff Detail

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