Simplify the locking dance around pledge_syscall()
authorjca <jca@openbsd.org>
Wed, 29 Jun 2022 12:06:11 +0000 (12:06 +0000)
committerjca <jca@openbsd.org>
Wed, 29 Jun 2022 12:06:11 +0000 (12:06 +0000)
commit72dc29cb42e42b51c90ae9be538617d336a4c77f
treedef72caf4e9a77b8c17be310177212bded3c77b8
parentb8322e2e7d1d2e8ecc82b2c0ddbbcbad476d002f
Simplify the locking dance around pledge_syscall()

It doesn't make sense to wrap this function with the kernel lock only
when the syscall to be executed is itself locked.  Instead
pledge_syscall() should be always safe to execute without the kernel
lock.

"looks good" kettenis@, ok deraadt@
sys/sys/syscall_mi.h