Restore selinux context after published files are moved. #2770
Conversation
|
This looks all correct to me. Thanks @jortel ! |
|
Here's a minor question: should the commit message say "context" instead of "content"? |
|
It should. I recommend: s/selinux content/SELinux file context/ On Fri, Sep 23, 2016 at 4:24 PM, Michael Hrivnak notifications@github.com
Brian Bouterse |
|
Seeing this problem while testing on f23: |
|
Updated as requested. Also, updated the pulp.spec and replaced macros with rules. @bmbouter, please re-review. |
|
I'm looking into the failure. |
|
The compilation failure is because this refpol statement takes 3 arguments not 2 like the upstream one I had looked at before. Here is a snippet from The
which does not have enough arguments. This works though:
Since refpol isn't saving us anything here in terms of line count and there may be argument signature incompatability between RHEL and Fedora, let's merge the allow statements you have in the PR currently. In other words, LGTM. Thanks for putting it together @jortel ! |
For both apply_async() and apply_async_with_reservation() if the task fails to dispatch due to an error the task status record is updated to show 'error'. https://pulp.plan.io/issues/2770 closes pulp#2770
For both apply_async() and apply_async_with_reservation() if the task fails to dispatch due to an error the task status record is updated to show 'error'. https://pulp.plan.io/issues/2770 closes pulp#2770
https://pulp.plan.io/issues/2277
Call
selinux.restorecon()after moving published files. The path passed torestorecon()cannot be unicode.The
Requires: libselinux-pythonneeds to be added to the .spec file but I have no idea which one is actually being used.