Skip to content

libndp: set sin6_family in mysendto6() - #33

Open
Sir-Monke wants to merge 1 commit into
jpirko:masterfrom
Sir-Monke:fix-sin6-family
Open

Sir-Monke wants to merge 1 commit into
jpirko:masterfrom
Sir-Monke:fix-sin6-family

Conversation

@Sir-Monke

Copy link
Copy Markdown

mysendto6() zeroes the sockaddr_in6 but never sets sin6_family, so sendto() runs with family 0. The IPv6 raw socket accepts this, so it goes unnoticed on an unconfined host. Under AppArmor confinement the network mediation rejects any family other than AF_INET/AF_INET6, so the router solicitation fails with EAFNOSUPPORT and IPv6 autoconf never starts.

mysendto6() zeroes the sockaddr_in6 but never sets sin6_family, so sendto() runs with family 0. The IPv6 raw socket accepts this, so it goes unnoticed on an unconfined host. Under AppArmor confinement the network mediation rejects any family other than AF_INET/AF_INET6, so the router solicitation fails with EAFNOSUPPORT and IPv6 autoconf never starts.

Signed-off-by: Sir-Monke <Sir-Monke@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

1 participant