-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TACACS+]: Extract tacacs support functions into library and fix memory leak issue. #8659
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
liuh-80
changed the title
[TACACS+]: Add TACACS support library and fix memory leak issue.
[TACACS+]: Extract tacacs support functions into library and fix memory leak issue.
Sep 10, 2021
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0008-Extract-tacacs-support-functions-into-library.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Sep 18, 2021
src/tacacs/pam/0007-Fix-memory-leak-when-parse-configuration.patch
Outdated
Show resolved
Hide resolved
qiluo-msft
reviewed
Oct 11, 2021
@venkatmahalingam Could you help review, especially src/tacacs/pam/0006-Add-support-for-source-ip-address.patch? |
qiluo-msft
reviewed
Oct 11, 2021
qiluo-msft
reviewed
Oct 11, 2021
qiluo-msft
reviewed
Oct 13, 2021
+ addrinfo created by getaddrinfo must be released with freeaddrinfo. | ||
+ so source ip address will be stored in following static variables. | ||
+ */ | ||
+ static struct addrinfo tac_source_address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qiluo-msft
approved these changes
Oct 13, 2021
liushilongbuaa
pushed a commit
to liushilongbuaa/sonic-buildimage
that referenced
this pull request
Dec 13, 2021
…ernal branch Related work items: sonic-net#525, sonic-net#534, sonic-net#909, sonic-net#927, sonic-net#930, sonic-net#934, sonic-net#935, sonic-net#937, sonic-net#938, sonic-net#939, sonic-net#940, sonic-net#943, sonic-net#944, sonic-net#945, sonic-net#946, sonic-net#948, sonic-net#1702, sonic-net#1923, sonic-net#1936, sonic-net#1942, sonic-net#2315, sonic-net#7281, sonic-net#7375, sonic-net#8659, sonic-net#8799, sonic-net#8868, sonic-net#8875, sonic-net#8935, sonic-net#8942, sonic-net#8956, sonic-net#8961, sonic-net#8966, sonic-net#8969, sonic-net#8971, sonic-net#8978, sonic-net#8991, sonic-net#8996, sonic-net#9001, sonic-net#9008, #3146150
liuh-80
added a commit
to liuh-80/sonic-buildimage
that referenced
this pull request
Jul 3, 2023
…ry leak issue. (sonic-net#8659) This pull request extract tacacs support functions into library to share TACACS config file parse code with other project. Also fix memory leak issue in parse config code. Why I did it To support TACACS per command authorization, we need reuse the TACACS config file parse code in bash plugin project. How I did it Add libtacsupport.pc.in to extract tacacs support functions into library. Fix memory leak issue in TACACS config parse code by convert the dynamic memory allocation memory to static memory allocation. How to verify it Pass all current UT. Check shared library generated manually. Which release branch to backport (provide reason below if selected) N/A Description for the changelog Extract tacacs support functions into library, this will share TACACS config file parse code with other project. Also fix memory leak issue in parse config code.
liuh-80
added a commit
to liuh-80/sonic-buildimage
that referenced
this pull request
Jul 3, 2023
…ry leak issue. (sonic-net#8659) This pull request extract tacacs support functions into library to share TACACS config file parse code with other project. Also fix memory leak issue in parse config code. Why I did it To support TACACS per command authorization, we need reuse the TACACS config file parse code in bash plugin project. How I did it Add libtacsupport.pc.in to extract tacacs support functions into library. Fix memory leak issue in TACACS config parse code by convert the dynamic memory allocation memory to static memory allocation. How to verify it Pass all current UT. Check shared library generated manually. Which release branch to backport (provide reason below if selected) N/A Description for the changelog Extract tacacs support functions into library, this will share TACACS config file parse code with other project. Also fix memory leak issue in parse config code.
10 tasks
qiluo-msft
pushed a commit
that referenced
this pull request
Jul 11, 2023
…ry leak issue. (#8659) (#15703) This pull request extract tacacs support functions into library to share TACACS config file parse code with other project. Also fix memory leak issue in parse config code. #### Why I did it To support TACACS per command authorization, we need reuse the TACACS config file parse code in bash plugin project. ##### Work item tracking - Microsoft ADO **(number only)**: 24433713 #### How I did it Add libtacsupport.pc.in to extract tacacs support functions into library. Fix memory leak issue in TACACS config parse code by convert the dynamic memory allocation memory to static memory allocation. #### How to verify it Pass all current UT. Check shared library generated manually. #### Tested branch (Please provide the tested image version) Extract tacacs support functions into library, this will share TACACS config file parse code with other project. Also fix memory leak issue in parse config code. - [ ] SONiC.202012-15703.306864-1ef589c19 #### Description for the changelog Extract tacacs support functions into library, this will share TACACS config file parse code with other project. Also fix memory leak issue in parse config code.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request extract tacacs support functions into library to share TACACS config file parse code with other project. Also fix memory leak issue in parse config code.
Why I did it
To support TACACS per command authorization, we need reuse the TACACS config file parse code in bash plugin project.
How I did it
Add libtacsupport.pc.in to extract tacacs support functions into library.
Fix memory leak issue in TACACS config parse code by convert the dynamic memory allocation memory to static memory allocation.
How to verify it
Pass all current UT.
Check shared library generated manually.
Which release branch to backport (provide reason below if selected)
N/A
Description for the changelog
Extract tacacs support functions into library, this will share TACACS config file parse code with other project.
Also fix memory leak issue in parse config code.
A picture of a cute animal (not mandatory but encouraged)