Skip to content

mctpd: grant CAP_NET_RAW - #179

Merged
jk-ozlabs merged 1 commit into
CodeConstruct:mainfrom
msnidhin:mctpd/cap-net-raw
Sep 11, 2026
Merged

mctpd: grant CAP_NET_RAW#179
jk-ozlabs merged 1 commit into
CodeConstruct:mainfrom
msnidhin:mctpd/cap-net-raw

Conversation

@msnidhin

@msnidhin msnidhin commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

The kernel MCTP socket implementation requires CAP_NET_RAW to send MCTP control messages when mctpd runs as an unprivileged user.

The kernel MCTP socket implementation requires CAP_NET_RAW to send
MCTP control messages when mctpd runs as an unprivileged user.

Tested: meson setup build --wipe -Dtests=false && meson compile -C build
Signed-off-by: Nidhin MS <nidhin.ms@intel.com>
@msnidhin

msnidhin commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi.. During testing of latest mctpd observed one issue
mctpd[278]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid XX net X type 0x00 if 0 hw len 0 0x) 2 bytes failed. Permission denied

@jk-ozlabs @SafetyInObscurity
Please review if this is the correct fix

@jk-ozlabs

Copy link
Copy Markdown
Member

Looks good. We may want to relax the CAP_NET_RAW requirement in general though, but this seems like a reasonable interim measure.

@SafetyInObscurity , any thoughts?

@SafetyInObscurity

Copy link
Copy Markdown
Contributor

Looks like the right fix. An oversight on my part. Will probably need to bump the version to 2.7 after merging this to fix upstream distros

@SafetyInObscurity

Copy link
Copy Markdown
Contributor

Have confirmed the error and that the change resolves it

@jk-ozlabs
jk-ozlabs merged commit bdd1627 into CodeConstruct:main Sep 11, 2026
3 checks passed
@jk-ozlabs

Copy link
Copy Markdown
Member

Merged, thanks!

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.

3 participants