Page MenuHomeFreeBSD

Write kern.randompid to /etc/sysctl.conf
ClosedPublic

Authored by skreuzer on Aug 8 2016, 2:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 31 2023, 4:35 PM
Unknown Object (File)
Dec 31 2023, 12:12 PM
Unknown Object (File)
Dec 20 2023, 1:43 AM
Unknown Object (File)
Dec 9 2023, 12:22 AM
Unknown Object (File)
Dec 1 2023, 10:44 AM
Unknown Object (File)
Nov 6 2023, 6:00 PM
Unknown Object (File)
Nov 4 2023, 10:58 PM
Unknown Object (File)
Nov 2 2023, 5:22 AM
Subscribers

Details

Summary

When selecting "Randomize the PID of newly created processes" in the
system hardening menu, kern.randompid is not added to /etc/sysctl.conf

Test Plan

Do an install in a VM and enable the 'Randomized PID' feature

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4724
Build 4778: arc lint + arc unit

Event Timeline

skreuzer retitled this revision from to Write kern.randompid to /etc/sysctl.conf.
skreuzer updated this object.
skreuzer edited the test plan for this revision. (Show Details)
robak edited edge metadata.

Thanks for catching that!

This revision is now accepted and ready to land.Aug 8 2016, 2:06 PM
allanjude edited edge metadata.
allanjude added inline comments.
usr.sbin/bsdinstall/scripts/hardening
65

is there a reason this is 9999 not 99999?

@allanjude There is none, other than I don't know if 99999 is acceptable value for this sysctl, and from my experience and testing I know that 9999 is. If the higher number is acceptable as well, then I'm OK with changing it.

usr.sbin/bsdinstall/scripts/hardening
65

it doesn't work the way I thought, so the current value is fine