Skip to content

Conversation

@skyler-ferrante
Copy link
Contributor

Adding function check_fds to new file fd.c. The function check_fds should be called in every setuid/setgid program. I also added sanitize_env to every setuid/setgid program.

@skyler-ferrante skyler-ferrante force-pushed the master branch 3 times, most recently from e740ca3 to 706f73a Compare March 9, 2024 01:21
@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Mar 9, 2024 via email

Adding function check_fds to new file fd.c. The function check_fds
should be called in every setuid/setgid program.

Co-developed-by: Alejandro Colomar <alx@kernel.org>
@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Mar 10, 2024

@hallyn , I'd merge this, but the master branch doesn't yet contain the 4.15.0 release tag (and thus still has the 4.14.0 version in configure.ac). Would you please fast-forward master before merging this?

@hallyn
Copy link
Member

hallyn commented Mar 11, 2024

@hallyn , I'd merge this, but the master branch doesn't yet contain the 4.15.0 release tag (and thus still has the 4.14.0 version in configure.ac). Would you please fast-forward master before merging this?

It doesn't? I did push it, and used it for making the release:

https://github.com/shadow-maint/shadow/releases/tag/4.15.0

What's missing?

@hallyn
Copy link
Member

hallyn commented Mar 11, 2024

Anyway +1 from me, I was about to merge when I noticed your comment.

@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Mar 11, 2024

@hallyn , I'd merge this, but the master branch doesn't yet contain the 4.15.0 release tag (and thus still has the 4.14.0 version in configure.ac). Would you please fast-forward master before merging this?

It doesn't? I did push it, and used it for making the release:

https://github.com/shadow-maint/shadow/releases/tag/4.15.0

What's missing?

I think the branch protection might have caused your push to (partially?) fail?

Now I see you've merged&pushed another branch:

* 5ce1b0a6 (shadow/master) tests/unit/test_zustr2stp.c: Test ZUSTR2STP()
* d3cf98ff lib/string/zustr2stp.[ch]: Remove zustr2stp(); keep ZUSTR2STP()
| * ba43b49a (tag: 4.15.0, stable/4.15.x, shadow/4.15.x, 4.15.x) configure.ac: Release 4.15.0
|/  
* 89c4da43 (HEAD -> master, stable/master, alx/master) src/vipw.c: Use string literals to initialize 'Prog'

The tag was correctly pushed, but the branch wasn't fast-forwarded to the tag.

@hallyn hallyn merged commit d2f2c18 into shadow-maint:master Mar 11, 2024
alejandro-colomar pushed a commit that referenced this pull request Mar 13, 2024
Adding function check_fds to new file fd.c. The function check_fds
should be called in every setuid/setgid program.

Co-developed-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: d2f2c18 ("Adding checks for fd omission")
Link: <#964>
Link: <https://inbox.sourceware.org/libc-alpha/ZeyujhVRsDTUNUtw@debian/T/>
[alx: It seems we shouldn't need this, as libc does it for us.  But it ]
[     shouldn't hurt either.  Let's be paranoic.                       ]
Cc: <Guillem Jover <guillem@hadrons.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: "Skyler Ferrante (RIT Student)" <sjf5462@rit.edu>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Christian Brauner <christian@brauner.io>
Cc: Rich Felker <dalias@libc.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Thorsten Glaser <tg@mirbsd.de>
Cc: NRK <nrk@disroot.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: enh <enh@google.com>
Cc: Laurent Bercot <ska-dietlibc@skarnet.org>
Cc: Gabriel Ravier <gabravier@gmail.com>
Cc: Zack Weinberg <zack@owlfolio.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
alejandro-colomar pushed a commit that referenced this pull request Mar 21, 2024
Adding function check_fds to new file fd.c.  The function check_fds
should be called in every setuid/setgid program.

Co-developed-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: d2f2c18 ("Adding checks for fd omission")
Link: <#964>
Link: <https://inbox.sourceware.org/libc-alpha/ZeyujhVRsDTUNUtw@debian/T/>
[alx: It seems we shouldn't need this, as libc does it for us.  But it ]
[     shouldn't hurt either.  Let's be paranoic.                       ]
Cc: <Guillem Jover <guillem@hadrons.org>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Cc: "Skyler Ferrante (RIT Student)" <sjf5462@rit.edu>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Cc: Christian Brauner <christian@brauner.io>
Cc: Rich Felker <dalias@libc.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Cc: Thorsten Glaser <tg@mirbsd.de>
Cc: NRK <nrk@disroot.org>
Cc: Florian Weimer <fweimer@redhat.com>
Cc: enh <enh@google.com>
Cc: Laurent Bercot <ska-dietlibc@skarnet.org>
Cc: Gabriel Ravier <gabravier@gmail.com>
Cc: Zack Weinberg <zack@owlfolio.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
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