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

selinux::login: Miscellaneous fixes #364

Merged
merged 8 commits into from Aug 18, 2023

Conversation

EmRowlands
Copy link
Contributor

Pull Request (PR) description

This PR provides a small number of fixes for the selinux::login defined resource, including:

  • A reference to Nil in the provider.prefetch method
  • Changing the resource's arguments correctly shows up as changing the mapping, not creating a new one and deleting the previous version
  • Additional error handling in the helper script

This Pull Request (PR) fixes the following issues

n/a

@EmRowlands
Copy link
Contributor Author

I'll mark this as WIP until I've fixed the CI issues

@EmRowlands EmRowlands marked this pull request as draft March 30, 2023 13:53
@EmRowlands EmRowlands force-pushed the selinux_login_fix branch 3 times, most recently from 27f22f5 to 30d5396 Compare March 30, 2023 14:09
@EmRowlands EmRowlands marked this pull request as ready for review March 30, 2023 14:12
Copy link
Member

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

looks good to me, but someone with more selinux knowledge should review this as well.

This commit adds the source of the login mapping to the helper script.
Helper script comments are also updated, as well as some additional
error checking added.
This commit will correctly set the "title" property. Without this, when
using the Resources resource as below, an error will occur due to title
being absent.

  resources {
    'selinux_login':

    purge => true
  }
This allows for resources to be named consistently when the properties
change.
This allows for the login configuration to be updated, and not just
created and removed.
@EmRowlands
Copy link
Contributor Author

This is now fully rebased onto master, and is ready for re-review.

@kenyon kenyon merged commit 1294668 into voxpupuli:master Aug 18, 2023
4 checks passed
@bastelfreak bastelfreak added the bug Something isn't working label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants