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
F105830363: D40352.diff
Sat, Dec 21, 9:09 AM
Unknown Object (File)
Sat, Dec 14, 1:57 AM
Unknown Object (File)
Sun, Dec 8, 2:14 PM
Unknown Object (File)
Sun, Nov 24, 6:07 PM
Unknown Object (File)
Sun, Nov 24, 9:33 AM
Unknown Object (File)
Fri, Nov 22, 3:09 PM
Unknown Object (File)
Nov 20 2024, 2:51 AM
Unknown Object (File)
Nov 19 2024, 6:06 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 51810
Build 48701: 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