Skip to content

Commit 47279ea

Browse files
Fix capabilities
1 parent 0827c75 commit 47279ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fapolicyd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ int main(int argc, char *argv[])
255255
if (uid != 0) {
256256
capng_clear(CAPNG_SELECT_BOTH);
257257
capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED,
258-
CAP_DAC_OVERRIDE, CAP_SYS_ADMIN, CAP_SYS_NICE,
259-
CAP_SYS_RESOURCE, -1);
258+
CAP_DAC_OVERRIDE, CAP_SYS_ADMIN, CAP_SYS_PTRACE,
259+
CAP_SYS_NICE, CAP_SYS_RESOURCE, -1);
260260
if (capng_change_id(uid, uid, CAPNG_DROP_SUPP_GRP)) {
261261
msg(LOG_ERR, "Cannot change to uid %d", uid);
262262
exit(1);

0 commit comments

Comments
 (0)