mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2026-09-08 23:57:59 +08:00
Allow sched_setscheduler(2) callers to select SCHED_FIFO with the Linux priority range and permission model. Convert userspace priorities through the shared RT mapping and commit policy, priority, queue placement, and reset-on-fork state through the existing scheduler transaction. Share resource limits across CLONE_THREAD tasks while preserving fork snapshots. Serialize hard-limit authorization and replacement, return coherent prlimit64 old values, and keep RLIMIT_NOFILE table resizing as a lock-safe best-effort optimization. Enforce CAP_SYS_RESOURCE in the initial user namespace so nested namespace capabilities cannot raise the realtime hard limit. Extend scheduler semantics coverage for FIFO round trips, reset-on-fork, owner and target-limit authorization, thread-group limit sharing, concurrent hard-limit updates, nested user namespaces, yield ordering, runtime throttling, and remote policy-change preemption. Signed-off-by: longjin <longjin@dragonos.org>