Page MenuHomeFreeBSD

setusercontext(): Set priority from '~/.login_conf' as well
ClosedPublic

Authored by olce on May 31 2023, 3:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 2:26 PM
Unknown Object (File)
Thu, May 9, 11:14 PM
Unknown Object (File)
Thu, May 2, 11:01 PM
Unknown Object (File)
Thu, May 2, 10:59 PM
Unknown Object (File)
Thu, May 2, 10:59 PM
Unknown Object (File)
Thu, May 2, 10:59 PM
Unknown Object (File)
Thu, May 2, 10:59 PM
Unknown Object (File)
Thu, May 2, 10:59 PM

Details

Summary

Setting the process priority is done only when the current process' effective
UID corresponds to that for which context is to be set. Consequently, setting
priority is done with appropriate credentials and will fail if the target user
tries to raise it unduly via his '.login_conf'.

PR: 271751

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.May 31 2023, 3:18 PM

Yes, of course...

It seems I messed up with this patch, with pieces of earlier versions chiming in
(e.g., the superfluous include of <stdbool.h>).

Here is an updated version.

olce edited the summary of this revision. (Show Details)

Add PR in commit message.

This revision is now accepted and ready to land.Jun 15 2023, 6:46 AM
This revision now requires review to proceed.Jun 21 2023, 1:58 PM

@kib Diff is the same as the one you validated. I updated the differential just to update the diff's base.

Re-validating, since the diff is the same as validated by @kib.

This revision is now accepted and ready to land.Jul 16 2023, 4:10 PM