[kernel][object] Implement ZX_POL_ACTION_KILL
Implement job policy ZX_POL_ACTION_KILL by calling ProcessDispatcher::Kill from EnforceBasicPolicy. Rename QueryBasicPolicy to EnforceBasicPolicy and tighten it by marking as __WARN_UNUSED_RESULT. Replace policy action bitfield with multiple choice. Bug: ZX-3520 #comment done Test: /boot/test/sys/policy-test Change-Id: Ia6da570ebd8c4d81961f78d6ddcc643183f7c85c
Showing
- zircon/docs/syscalls/job_set_policy.md 6 additions, 7 deletionszircon/docs/syscalls/job_set_policy.md
- zircon/kernel/object/include/object/job_policy.h 3 additions, 9 deletionszircon/kernel/object/include/object/job_policy.h
- zircon/kernel/object/include/object/process_dispatcher.h 8 additions, 3 deletionszircon/kernel/object/include/object/process_dispatcher.h
- zircon/kernel/object/job_policy.cpp 3 additions, 8 deletionszircon/kernel/object/job_policy.cpp
- zircon/kernel/object/job_policy_tests.cpp 3 additions, 5 deletionszircon/kernel/object/job_policy_tests.cpp
- zircon/kernel/object/process_dispatcher.cpp 27 additions, 13 deletionszircon/kernel/object/process_dispatcher.cpp
- zircon/kernel/syscalls/channel.cpp 1 addition, 1 deletionzircon/kernel/syscalls/channel.cpp
- zircon/kernel/syscalls/ddk.cpp 2 additions, 2 deletionszircon/kernel/syscalls/ddk.cpp
- zircon/kernel/syscalls/exceptions.cpp 1 addition, 1 deletionzircon/kernel/syscalls/exceptions.cpp
- zircon/kernel/syscalls/fifo.cpp 1 addition, 1 deletionzircon/kernel/syscalls/fifo.cpp
- zircon/kernel/syscalls/pager.cpp 1 addition, 1 deletionzircon/kernel/syscalls/pager.cpp
- zircon/kernel/syscalls/port.cpp 1 addition, 1 deletionzircon/kernel/syscalls/port.cpp
- zircon/kernel/syscalls/profile.cpp 1 addition, 1 deletionzircon/kernel/syscalls/profile.cpp
- zircon/kernel/syscalls/socket.cpp 1 addition, 1 deletionzircon/kernel/syscalls/socket.cpp
- zircon/kernel/syscalls/task.cpp 1 addition, 1 deletionzircon/kernel/syscalls/task.cpp
- zircon/kernel/syscalls/timer.cpp 1 addition, 1 deletionzircon/kernel/syscalls/timer.cpp
- zircon/kernel/syscalls/vmo.cpp 1 addition, 1 deletionzircon/kernel/syscalls/vmo.cpp
- zircon/kernel/syscalls/zircon.cpp 2 additions, 2 deletionszircon/kernel/syscalls/zircon.cpp
- zircon/system/core/devmgr/devcoordinator/main.cpp 1 addition, 1 deletionzircon/system/core/devmgr/devcoordinator/main.cpp
- zircon/system/public/zircon/syscalls/policy.h 6 additions, 4 deletionszircon/system/public/zircon/syscalls/policy.h
Loading
Please register or sign in to comment