diff options
author | Florian Walpen <dev@submerge.ch> | 2021-12-10 01:43:12 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-10 02:54:48 +0000 |
commit | a20a2450cd5f38fb28d5fa5540177edfb60d2473 (patch) | |
tree | 1e7142ea767a97c563d2e57c9cac42d41e0c8a51 /sys/security | |
parent | 35b2021a0adf6bd1a41930014bafbc5ee8b6369a (diff) | |
download | src-a20a2450cd5f38fb28d5fa5540177edfb60d2473.tar.gz src-a20a2450cd5f38fb28d5fa5540177edfb60d2473.zip |
Add PRIV_SCHED_IDPRIO
The privilege allows the holder to assign idle priority type to thread
or process.
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D33338
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/mac_biba/mac_biba.c | 1 | ||||
-rw-r--r-- | sys/security/mac_lomac/mac_lomac.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/mac_biba/mac_biba.c b/sys/security/mac_biba/mac_biba.c index 296d4a4e25b8..08df65cc289d 100644 --- a/sys/security/mac_biba/mac_biba.c +++ b/sys/security/mac_biba/mac_biba.c @@ -1975,6 +1975,7 @@ biba_priv_check(struct ucred *cred, int priv) case PRIV_SCHED_SETPOLICY: case PRIV_SCHED_SET: case PRIV_SCHED_SETPARAM: + case PRIV_SCHED_IDPRIO: /* * More IPC privileges. diff --git a/sys/security/mac_lomac/mac_lomac.c b/sys/security/mac_lomac/mac_lomac.c index 821b0faf68d0..c017b481c7fa 100644 --- a/sys/security/mac_lomac/mac_lomac.c +++ b/sys/security/mac_lomac/mac_lomac.c @@ -1743,6 +1743,7 @@ lomac_priv_check(struct ucred *cred, int priv) case PRIV_SCHED_SETPOLICY: case PRIV_SCHED_SET: case PRIV_SCHED_SETPARAM: + case PRIV_SCHED_IDPRIO: /* * More IPC privileges. |