Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessarily overriding capabilities (tiann#2381)
Previously all capabilities were overridden with 0xffffffffffffffff, which is not what normal processes have. This causes capng_change_id() in libcap fail for unknown reason. Align su process's caps with init to fix it. This fixes https://gitlab.com/kalilinux/nethunter/apps/kali-nethunter-app/-/issues/378. Revert "Avoid unnecessarily overriding capabilities (tiann#2381)" This reverts commit cade4da. Avoid unnecessarily overriding capabilities Previously all capabilities were overridden with 0xffffffffffffffff, which is not what normal processes have. This causes PR_CAPBSET_DROP prctl fail because it is dropping invalid caps. Fix it. This fixes https://gitlab.com/kalilinux/nethunter/apps/kali-nethunter-app/-/issues/378. Co-Authored-By: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
- Loading branch information