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

Use proper SELinux context with http.keytab #755

Closed
wants to merge 1 commit into from
Closed

Use proper SELinux context with http.keytab #755

wants to merge 1 commit into from

Conversation

MartinBasti
Copy link
Contributor

@MartinBasti MartinBasti commented May 3, 2017

During upgrade keytab is moved to a new location using "move" operation.
This commit replaces move operation with "copy" and "remove" that
ensures a proper selinux context.

https://pagure.io/freeipa/issue/6924

os.remove(paths.OLD_IPA_KEYTAB)
except OSError as e:
root_logger.error(
'Cannot remove file %s (%s). Please remove file manually.',
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpicky nit: there should be the before file.

During upgrade keytab is moved to a new location using "move" operation.
This commit replaces move operation with "copy" and "remove" that
ensures a proper selinux context.

https://pagure.io/freeipa/issue/6924
@martbab martbab added ack Pull Request approved, can be merged pushed Pull Request has already been pushed labels May 3, 2017
@martbab
Copy link
Contributor

martbab commented May 3, 2017

master:

  • 7f4c2fb Use proper SELinux context with http.keytab
    ipa-4-5:

  • bda733d Use proper SELinux context with http.keytab

@martbab martbab closed this May 3, 2017
@MartinBasti MartinBasti deleted the selinux-httpd branch May 3, 2017 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants