Skip to content

Fix bit shift bug in caps#101

Merged
kaniini merged 1 commit intoedera-dev:mainfrom
bleggett:bleggett/fix-shift-caps-older
Mar 11, 2026
Merged

Fix bit shift bug in caps#101
kaniini merged 1 commit intoedera-dev:mainfrom
bleggett:bleggett/fix-shift-caps-older

Conversation

@bleggett
Copy link
Contributor

@bleggett bleggett commented Mar 11, 2026

This looks like a bit shift error for setting caps - we were putting low-word caps in the high word in some cases.

Before, without fix:

CapInh:    000001fb00000000
CapPrm:    000001ffffffffff
CapEff:    000001ffffffffff
CapBnd:    000001ffffffffff
CapAmb:    0000000000000000

With fix:

CapInh:	00000000a80405fb
CapPrm:	000001ffffffffff
CapEff:	000001ffffffffff
CapBnd:	000001ffffffffff
CapAmb:	0000000000000000

00000000a80405fb is expected for

        "AUDIT_WRITE",
        "CHOWN",
        "DAC_OVERRIDE",
        "FSETID",
        "FOWNER",
        "SETGID",
        "SETUID",
        "SETPCAP",
        "SETFCAP",
        "SYS_CHROOT",
        "MKNOD",
        "NET_BIND_SERVICE",
        "KILL",

@bleggett bleggett requested a review from kaniini March 11, 2026 03:33
@bleggett bleggett force-pushed the bleggett/fix-shift-caps-older branch from 0d5e160 to 7806a4e Compare March 11, 2026 03:37
@kaniini kaniini merged commit 4ab6405 into edera-dev:main Mar 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants