Re: PATCH: pre-2.1.126-2 core dump as root and O_NOFOLLOW (was "Linux 2.1.125 doesn't dump core on S

Kev (klmitch@mit.edu)
Wed, 21 Oct 1998 14:12:00 EDT


these numbers are octal; 8 doesn't make sense :) (Relevant hunks
attached below; my apologies for not generating an appropriate patch)

> --- linux/include/asm-arm/fcntl.h Wed Oct 21 13:26:56 1998
> +++ /usr/src/linux-2.1.x/include/asm-arm/fcntl.h Wed Oct 21 13:31:07 199
> 8
> @@ -17,6 +17,7 @@
> #define O_SYNC 010000
> #define FASYNC 020000 /* fcntl, for BSD compatibility */
> #define O_DIRECTORY 040000 /* must be a directory */
> +#define O_NOFOLLOW 080000 /* don't follow links */
>
> #define F_DUPFD 0 /* dup */
> #define F_GETFD 1 /* get f_flags */

> diff -ur linux/include/asm-m68k/fcntl.h /usr/src/linux-2.1.x/include/asm-m68k
> /fcntl.h
> --- linux/include/asm-m68k/fcntl.h Wed Oct 21 13:26:56 1998
> +++ /usr/src/linux-2.1.x/include/asm-m68k/fcntl.h Wed Oct 21 13:31:17 199
> 8
> @@ -17,6 +17,7 @@
> #define O_SYNC 010000
> #define FASYNC 020000 /* fcntl, for BSD compatibility */
> #define O_DIRECTORY 040000 /* must be a directory */
> +#define O_NOFOLLOW 080000 /* don't follow links */
>
> #define F_DUPFD 0 /* dup */
> #define F_GETFD 1 /* get f_flags */

> diff -ur linux/include/asm-ppc/fcntl.h /usr/src/linux-2.1.x/include/asm-ppc/f
> cntl.h
> --- linux/include/asm-ppc/fcntl.h Wed Oct 21 13:26:56 1998
> +++ /usr/src/linux-2.1.x/include/asm-ppc/fcntl.h Wed Oct 21 13:32:06 199
> 8
> @@ -17,6 +17,7 @@
> #define O_SYNC 010000
> #define FASYNC 020000 /* fcntl, for BSD compatibility */
> #define O_DIRECTORY 040000 /* must be a directory */
> +#define O_NOFOLLOW 080000 /* don't follow links */
>
> #define F_DUPFD 0 /* dup */
> #define F_GETFD 1 /* get f_flags */

-- 
Kevin L. Mitchell <klmitch@mit.edu>
-------------------------  -. .---- --.. ..- -..-  --------------------------
http://web.mit.edu/klmitch/www/              (PGP5 keys availiable from here)
   DSS Key ID ED0DB34E: D9BF 0E74 FDCB 43F5 C597  878F 9455 EC24 ED0D B34E
   DH  Key ID 2A2C31D4: 1A77 4BA5 9E32 14AE 87DA  9FEC 7106 FC62 2A2C 31D4

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/