pub fn check_task_capable(
current_task: &CurrentTask,
capability: Capabilities,
) -> Result<(), Errno>Expand description
Checks if a task has the specified capability.
Corresponds to the capable() LSM hook.
pub fn check_task_capable(
current_task: &CurrentTask,
capability: Capabilities,
) -> Result<(), Errno>Checks if a task has the specified capability.
Corresponds to the capable() LSM hook.