-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat: New parser for systemd_perms #3339
Conversation
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
@xiangce Please have a review. |
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.
@TZ3070 - These two parsers are in fact Ls
like parsers, would you please rename them (includes the filename
) with a prefix Ls
like others, e.g.
insights-core/insights/parsers/ls_sys_firmware.py
Lines 45 to 46 in cc2e262
@parser(Specs.ls_sys_firmware) | |
class LsSysFirmware(CommandParser, FileListing): |
Signed-off-by: Xinting Li <[email protected]>
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.
@TZ3070 - Please check my new comments below
And 1) since this is a new parser file, please add doc entry for it in the docs/shared_parsers_catalog/
dir, so that its online document can be generated automatically. 2), for newly added specs parsers, please raise an MR to the insights-core-assets repo at first to make sure they can be added to the uploader.json.
insights/parsers/ls_systemd.py
Outdated
|
||
Parsers included in this module are: | ||
|
||
SystemdPerms - command ``/bin/ls -lanRL /etc/systemd`` |
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.
This should be modified too.
insights/parsers/ls_systemd.py
Outdated
SystemdPerms - command ``/bin/ls -lanRL /etc/systemd`` | ||
-------------------------------------------------------------- | ||
|
||
UsrLibSystemdPerms - command ``/bin/ls -lanRL /usr/lib/systemd`` |
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.
The same comment as above
insights/parsers/ls_systemd.py
Outdated
|
||
|
||
@parser(Specs.ls_etc_systemd) | ||
class LsEtcSystemdPermsParser(CommandParser, FileListing): |
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.
How above removing the part of PermsParser
?
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li <[email protected]>
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.
Approved pending the approval of Specs.
Signed-off-by: Xinting Li <[email protected]>
* feat: New parser for systemd_perms Signed-off-by: Xinting Li <[email protected]> * fix: fix ETC_SYSTEMD in test_systemd_perms.py Signed-off-by: Xinting Li <[email protected]> * fix: Fix file name and class name Signed-off-by: Xinting Li <[email protected]> * fix: add doc entry Signed-off-by: Xinting Li <[email protected]> * fix: update insights_archive Signed-off-by: Xinting Li <[email protected]> * fix: fix docs-test error Signed-off-by: Xinting Li <[email protected]> * fix: fix length of '-' Signed-off-by: Xinting Li <[email protected]> * fix: Updating test_etc_systemd() in test_ls_systemd.py Signed-off-by: Xinting Li <[email protected]> Co-authored-by: Xinting Li <[email protected]> (cherry picked from commit 92d671e)
* feat: New parser for systemd_perms Signed-off-by: Xinting Li <[email protected]> * fix: fix ETC_SYSTEMD in test_systemd_perms.py Signed-off-by: Xinting Li <[email protected]> * fix: Fix file name and class name Signed-off-by: Xinting Li <[email protected]> * fix: add doc entry Signed-off-by: Xinting Li <[email protected]> * fix: update insights_archive Signed-off-by: Xinting Li <[email protected]> * fix: fix docs-test error Signed-off-by: Xinting Li <[email protected]> * fix: fix length of '-' Signed-off-by: Xinting Li <[email protected]> * fix: Updating test_etc_systemd() in test_ls_systemd.py Signed-off-by: Xinting Li <[email protected]> Co-authored-by: Xinting Li <[email protected]>
Signed-off-by: Xinting Li [email protected]
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
Add your description here