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

Relabel: relabel links instead of their targets #173

Merged
merged 1 commit into from Mar 23, 2022

Conversation

rrayst
Copy link
Contributor

@rrayst rrayst commented Mar 17, 2022

Signed-off-by: Tobias Polley polley@predic8.de

@rhatdan
Copy link
Collaborator

rhatdan commented Mar 19, 2022

LGTM
@kolyshkin @thaJeztah PTAL

@thaJeztah
Copy link
Member

@rrayst could you perhaps amend the commit message to describe what's being fixed (so that git log itself provides those details, not having to resort to GitHub)? I see you wrote some bits in the related ticket that could be used for that; #172 (comment)

(FWIW, It's ok to remove the fixes xxx from the commit message itself: it's sufficient to mention it in the PR description on GitHub, and including it in the commit message often adds additional "noise" if the commit gets merged in other repositories 😅)

Signed-off-by: Tobias Polley <polley@predic8.de>
@rrayst rrayst changed the title Fixes #172. Relabel: relabel links instead of their targets Mar 21, 2022
@rrayst
Copy link
Contributor Author

rrayst commented Mar 21, 2022

@thaJeztah PTAL

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kolyshkin PTAL

@rhatdan rhatdan merged commit 7b9ea5e into opencontainers:main Mar 23, 2022
flouthoc added a commit to flouthoc/buildah that referenced this pull request Apr 1, 2022
lsetxattr always fails with ENOTSUP when it tries to relabel
/proc/self/fd/%d but in this case we are acutally intrested on the
actual file pointed by the `/proc/self/fd/%d` not in the `symlink` so use `Chcon` instead of
`Relabel` since `Relabel` was configured here opencontainers/selinux#173
to use `lsetxattr` instead of `setxattr`.

[ NO NEW TESTS NEEDED ]
[ NO TEST NEEDED ]

Signed-off-by: Aditya R <arajan@redhat.com>
flouthoc added a commit to flouthoc/buildah that referenced this pull request Apr 1, 2022
lsetxattr always fails with ENOTSUP when it tries to relabel
/proc/self/fd/%d but in this case we are acutally intrested on the
actual file pointed by the `/proc/self/fd/%d` not in the `symlink` so use `Chcon` instead of
`Relabel` since `Relabel` was configured here opencontainers/selinux#173
to use `lsetxattr` instead of `setxattr`.

[NO NEW TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants