bryancall commented on code in PR #12908:
URL: https://github.com/apache/trafficserver/pull/12908#discussion_r2879308816
##########
src/tscore/ink_cap.cc:
##########
@@ -273,7 +273,7 @@ RestrictCapabilities()
cap_t caps_orig = cap_get_proc();
// Capabilities we need.
- cap_value_t perm_list[] = {CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
CAP_IPC_LOCK, CAP_DAC_OVERRIDE, CAP_FOWNER};
+ cap_value_t perm_list[] = {CAP_NET_ADMIN, CAP_NET_BIND_SERVICE,
CAP_IPC_LOCK, CAP_DAC_OVERRIDE, CAP_FOWNER, CAP_CHOWN};
Review Comment:
Good catch. Added `CHOWN_PRIVILEGE = 0x10u` to `ElevateAccess` and wired up
`CAP_CHOWN` in `acquirePrivilege()`. Plugins can now use
`ElevateAccess(ElevateAccess::CHOWN_PRIVILEGE)` to elevate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]