HomeFreeBSD

- Use suser_cred(9) instead of checking cr_ruid directly.
rS159973Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

  • Use suser_cred(9) instead of checking cr_ruid directly.
  • For privileged processes safe two mutex operations.

We may want to consider if this is good idea to use SUSER_ALLOWJAIL here,
but for now I didn't wanted to change the original behaviour.

Reviewed by: rwatson

Details

Provenance
pjdAuthored on
Parents
rS159972: MFC rev. 1.13: remove LK_REENABLE and LK_NOPAUSE lockinit(9) flags,
Branches
Unknown
Tags
Unknown

Event Timeline