mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-18 16:40:32 +00:00
Improve pledge() and unveil() further
- Fix getpriority() - Add AT_MINSIGSTKSZ - Fix bugs in BPF code - Show more stuff in printargs.com - Write manual test for pledge.com - pledge() now generates tinier BPF code - Have pledge("exec") only enable execve() - Fix pledge.com chroot setuid functionality - Improve pledge.com unveiling of ape loader
This commit is contained in:
parent
31ac58a57b
commit
f968e2a726
17 changed files with 722 additions and 412 deletions
|
@ -35,12 +35,12 @@
|
|||
* before processes with numerically lower priority values.
|
||||
*
|
||||
* @param pid is the id of the process whose scheduling policy should be
|
||||
* changed. This applies to all threads associated with the process.
|
||||
* Linux is special; the kernel treats this as a thread id (noting
|
||||
* that `getpid() == gettid()` is always the case on Linux for the
|
||||
* main thread) and will only take effect for the specified tid.
|
||||
* changed. Setting `pid` to zero means the same thing as getpid().
|
||||
* This applies to all threads associated with the process. Linux is
|
||||
* special; the kernel treats this as a thread id (noting that
|
||||
* `getpid() == gettid()` is always the case on Linux for the main
|
||||
* thread) and will only take effect for the specified tid.
|
||||
* Therefore this function is POSIX-compliant iif `!__threaded`.
|
||||
* Setting `pid` to zero means the same thing as getpid().
|
||||
*
|
||||
* @param policy specifies the kernel's timesharing strategy.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue