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

SSSCTL: don't require 'root' for "analyze" cmd -- 2.7 #6445

Closed
wants to merge 3 commits into from

Conversation

alexey-tikhonov
Copy link
Member

Backport of #6426

Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@justin-stephenson
Copy link
Contributor

It looks like ab89455 needs to be backported to sssd-2-7 branch

@justin-stephenson
Copy link
Contributor

justin-stephenson commented Nov 18, 2022

It looks like ab89455 needs to be backported to sssd-2-7 branch

PR is #6447

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 6ef3aad)
Before execution of `tool_cmd_init()` `init_err` wasn't set,
so `sss_tools_handles_init_error()` check was a no-op.

Consequently, a proper check after `tool_cmd_init()` was missing.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 7af46ba)
:relnote: `sssctl analyze` tool doesn't require anymore to be run under root.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 9979140)
@alexey-tikhonov
Copy link
Member Author

It looks like ab89455 needs to be backported to sssd-2-7 branch

PR is #6447

Thanks, rebased.

@alexey-tikhonov
Copy link
Member Author

Pushed PR: #6445

  • sssd-2-7
    • 66c318d - SSSCTL: don't require 'root' for "analyze" cmd
    • bd16242 - TOOLS: fixed handling of init error
    • 7e23e63 - TOOLS: don't export internal helpers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants