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
Don't operate firewall when system role is Common Criteria #13625
Conversation
205a315
to
2884e44
Compare
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.
It might be better to check for firewall presence using systemctl list-unit-files --all $firewall*
instead of hardcoding SYSTEM_ROLE condition. Note that the asterisk at the end is required, otherwise it won't find anything.
2884e44
to
22dbf94
Compare
Thanks. Modified. |
|
22dbf94
to
9cbbfc6
Compare
Good suggestions. Thanks. |
The library function should go into lib/Utils/Systemd.pm |
When system role is Common Criteria, the firewall is not installed in the system by default. Then it will report `Unit file firewalld.service does not exist` when disabling it in setup_multimachine.pm. Related: https://progress.opensuse.org/issues/102116
fcacba7
to
c6c9a96
Compare
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.
LGTM
Thanks for your help and reviewing. |
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.
LGTM
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.
LGTM
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.
LGTM
LGTM |
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.
LGTM
When system role is Common Criteria, the firewall is not installed in
the system by default. Then it will report
Unit file firewalld.service does not exist
when disabling it in setup_multimachine.pm.https://openqa.suse.de/tests/7642614#