>_ IzzyLab

Topic breakdown

Linux capabilities split root's all-powerful privileges into separate capabilities that can be attached surgically, without handing a process all of root. A file capability is attached directly to a binary and takes effect when it runs: specifically, the right to listen on privileged ports (<1024) is called cap_net_bind_service. The task is to understand the notation for a capability with its set flags (e — effective, p — permitted) and to attach the required right to the file, verifying the result via getcap.

What's checked

  1. cap_net_bind_service is set on mybin in the e and p sets

What it looks like