-
Notifications
You must be signed in to change notification settings - Fork 254
Drop libattr dependency #1473
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
Drop libattr dependency #1473
Conversation
alejandro-colomar
left a comment
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!
Reviewed-by: Alejandro Colomar <alx@kernel.org>
|
It LGTM. Do you want to wait for @ikerexxe 's review? I'd be happy to merge now and expand later if appropriate; the current patch makes sense to me. |
|
I'd prefer to wait. I wonder if this actually reveals a bug or a feature that was missed. If it's 100 % sure that we really don't want libattr, then we can merge. |
ikerexxe
left a comment
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.
I can still see three references to LIBATTR in Makefile.am files. Can you remove them?
The reset_selinux flag is always true, so it can be removed. Remove all functions which are not used anymore as well. Reviewed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
The libattr dependency is no longer needed. Reviewed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Removed. Thanks for careful review! :) |
ikerexxe
left a comment
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! Thank you for taking care of that too
Spotted this while rebuilding the Arch Linux shadow package, which gave me the warning that libattr is not needed (even though referred to by PKGBUILD file).
Turns out: It's absolutely correct!
And here's the history of the whole thing:
791ebc5 -- Added
reset_selinuxflag (useraddset it tofalse,usermodset it totrue)06eb4e4 -- Made both tools set it to
true74c17c7 -- Introduced a
falsecall inuseradd48aa12a -- Made both tools set it to
trueagainSo, as long as @ikerexxe agrees, this disabled
libattrsupport for a few years and nobody complained. In fact, people complained when it was enabled.I keep 786e44f as it is, unless @ikerexxe says that it can be removed now.