Skip to content

[202111] Package debugging and hardening for dhcpmon and dhcp6relay#10063

Merged
saiarcot895 merged 1 commit intosonic-net:202111from
saiarcot895:dhcpmon-dhcp6relay-debugging-202111
Feb 25, 2022
Merged

[202111] Package debugging and hardening for dhcpmon and dhcp6relay#10063
saiarcot895 merged 1 commit intosonic-net:202111from
saiarcot895:dhcpmon-dhcp6relay-debugging-202111

Conversation

@saiarcot895
Copy link
Contributor

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Backport of #9862 to 202111 branch.

Signed-off-by: Saikrishna Arcot sarcot@microsoft.com

Why I did it

To make it easier to debug issues with dhcp6relay and dhcpmon

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…#9862)

Enable dbgsym package for dhcpmon.

Allow CFLAGS and LDFLAGS from environment variables to be used
in the dhcp6relay build. This makes sure that the -O2 flag from
dpkg-buildflags gets used.

Finally, enable all hardening flags in dpkg-buildflags for
dhcp6relay and dhcpmon. The change from the default set of flags is that
during linking, immediate binding of symbols is done instead of lazy
binding.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 merged commit 5b7e55d into sonic-net:202111 Feb 25, 2022
@saiarcot895 saiarcot895 deleted the dhcpmon-dhcp6relay-debugging-202111 branch February 25, 2022 19:09
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