Skip to content

Conversation

@stoeckmann
Copy link
Contributor

@stoeckmann stoeckmann commented Jan 3, 2026

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_selinux flag (useradd set it to false, usermod set it to true)
06eb4e4 -- Made both tools set it to true
74c17c7 -- Introduced a false call in useradd
48aa12a -- Made both tools set it to true again

So, as long as @ikerexxe agrees, this disabled libattr support 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.

Copy link
Collaborator

@alejandro-colomar alejandro-colomar 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!

Reviewed-by: Alejandro Colomar <alx@kernel.org>

@alejandro-colomar
Copy link
Collaborator

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.

@stoeckmann
Copy link
Contributor Author

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.

Copy link
Collaborator

@ikerexxe ikerexxe left a 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>
@stoeckmann
Copy link
Contributor Author

I can still see three references to LIBATTR in Makefile.am files. Can you remove them?

Removed. Thanks for careful review! :)

Copy link
Collaborator

@ikerexxe ikerexxe left a 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

@ikerexxe ikerexxe merged commit 78120f1 into shadow-maint:master Jan 8, 2026
12 checks passed
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.

3 participants