HomeFreeBSD

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

Description

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

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
Reviewed by: kib, Andrew Gierth <andrew_tao173.riddles.org.uk>
Approved by: emaste (mentor)
MFC after: 3 days
Relnotes: yes
Sponsored by: Kumacom SAS
Differential Revision: https://reviews.freebsd.org/D40352

Details

Provenance
olceAuthored on May 30 2023, 3:14 PM
Reviewer
kib
Differential Revision
D40352: setusercontext(): Set priority from '~/.login_conf' as well
Parents
rG33d4ce5496ef: login.conf(5): Document priority's special value 'inherit'
Branches
Unknown
Tags
Unknown