USHIFT-1050: Set textrel_shlib_t SELinux context on hadolint static executable#1655
Conversation
|
@ggiguash: This pull request references USHIFT-1050 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
|
@ggiguash: This pull request references USHIFT-1050 which is a valid jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/cc @chiragkyal |
…the global scope and rename it to WORK_DIR
426f549 to
e3c0233
Compare
|
It's LGTM for me. Let's have someone more to review. |
| # that are not labeled textrel_shlib_t, then you must tell SELinux about this by enabling the | ||
| # 'selinuxuser_execmod' boolean. | ||
| if selinuxenabled ; then | ||
| chcon -t textrel_shlib_t "${DEST_DIR}/${filename}" |
There was a problem hiding this comment.
Why do we only need to do this for hadolint?
There was a problem hiding this comment.
Because, it's the "only" statically linked binary we have and loader / SELinux treat it differently.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dhellmann, ggiguash The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@ggiguash: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
textrel_shlib_tSELinux context to preventhadolintcrash.tmpvariable in the global scope and rename it toWORK_DIRCloses USHIFT-1050
Context
hadolintexecutable is statically linked and it causes the following errors on some systems when SELinux is enabled.