Skip to content

Conversation

@alejandro-colomar
Copy link
Collaborator

Fixes: c0c9485 (2025-10-07; "src/useradd.c: chroot or prefix SELinux file context")
Link: #1396
Cc: Iker Pedrosa ipedrosa@redhat.com

Copy link
Member

@hallyn hallyn left a comment

Choose a reason for hiding this comment

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

LGTM. Will leave it for Iker to approve and merge, in case I'm missing something.

Yeah, if they were in BSS they'd be 0/false, but these are not, so...

In all these functions, we were setting the flags to 'true' in
process_flags() if the appropriate command-line flag was specified.
However, they were never being defined to 'false', which should be the
default value.  Initialize these flags to false.

Fixes: c0c9485 (2025-10-07; "src/useradd.c: chroot or prefix SELinux file context")
Link: <shadow-maint#1396>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
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!

@ikerexxe ikerexxe merged commit dcc0db3 into shadow-maint:master Dec 5, 2025
11 checks passed
@alejandro-colomar alejandro-colomar deleted the flags branch December 5, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants