doc/website/static/security/patches/SA-02:23/stdio2.patch.v1.2
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

24 lines
804 B
Groff

Index: sys/kern/kern_exec.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_exec.c,v
retrieving revision 1.107.2.14
diff -u -r1.107.2.14 kern_exec.c
--- sys/kern/kern_exec.c 21 Apr 2002 13:06:23 -0000 1.107.2.14
+++ sys/kern/kern_exec.c 30 Jul 2002 02:45:30 -0000
@@ -328,6 +328,8 @@
vrele(vtmp);
}
}
+ /* Close any file descriptors 0..2 that reference procfs */
+ setugidsafety(p);
/* Make sure file descriptors 0..2 are in use. */
error = fdcheckstd(p);
if (error != 0)
@@ -340,7 +342,6 @@
change_euid(p, attr.va_uid);
if (attr.va_mode & VSGID)
p->p_ucred->cr_gid = attr.va_gid;
- setugidsafety(p);
} else {
if (p->p_ucred->cr_uid == p->p_cred->p_ruid &&
p->p_ucred->cr_gid == p->p_cred->p_rgid)