-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
LGTM |
@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 |
Signed-off-by: Tobias Polley <[email protected]>
@thaJeztah PTAL |
There was a problem hiding this 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
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 <[email protected]>
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 <[email protected]>
Signed-off-by: Tobias Polley [email protected]