Skip to content
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

Potential risk of acl_loader missing ctx in main function #2196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

inspurSDN
Copy link

Issue:
Potential risk about cli() function without ctx in main function of acl_loader

Root cause:
SONiC will call cli() directly in acl-loader.
But it still exist potential risk when run main in acl-loader

Solution:
Remover main funcion which missing ctx object and remain cli() function for acl-loader call directly

Potential risk about cli() function without ctx in main function of acl_loader

Root cause:
SONiC will call cli() directly in acl-loader.
But it still exist potential risk when run main in acl-loader

Solution:
Remover main funcion which missing ctx object and remain cli() function for acl-loader call directly
@inspurSDN
Copy link
Author

@lguohan could you help to review it?

@lguohan
Copy link
Contributor

lguohan commented Apr 10, 2023

@qiluo-msft , can you check this pr?

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.

None yet

4 participants