Page MenuHomeFreeBSD

MAC/do: Fix jail_get() (PR_METHOD_GET)
ClosedPublic

Authored by olce on Nov 15 2024, 5:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 5, 12:31 PM
Unknown Object (File)
Sun, Dec 29, 6:14 PM
Unknown Object (File)
Fri, Dec 27, 10:45 AM
Unknown Object (File)
Fri, Dec 27, 9:49 AM
Unknown Object (File)
Dec 10 2024, 2:15 AM
Unknown Object (File)
Dec 9 2024, 5:09 PM
Unknown Object (File)
Dec 9 2024, 12:48 AM
Unknown Object (File)
Dec 5 2024, 4:50 PM

Details

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 Not Applicable
Unit
Tests Not Applicable