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
F102426882: D40352.diff
Tue, Nov 12, 3:08 AM
Unknown Object (File)
Sat, Nov 9, 10:58 PM
Unknown Object (File)
Thu, Nov 7, 6:09 PM
Unknown Object (File)
Fri, Nov 1, 5:48 PM
Unknown Object (File)
Fri, Nov 1, 5:48 PM
Unknown Object (File)
Fri, Nov 1, 5:48 PM
Unknown Object (File)
Fri, Nov 1, 5:48 PM
Unknown Object (File)
Wed, Oct 30, 9:04 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 51806
Build 48697: arc lint + arc unit

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