From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 11 02:30:13 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D03216A4CF for ; Sun, 11 Jul 2004 02:30:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0967343D39 for ; Sun, 11 Jul 2004 02:30:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6B2UC5D034809 for ; Sun, 11 Jul 2004 02:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6B2UC4a034805; Sun, 11 Jul 2004 02:30:12 GMT (envelope-from gnats) Resent-Date: Sun, 11 Jul 2004 02:30:12 GMT Resent-Message-Id: <200407110230.i6B2UC4a034805@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, blake frantz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FFFE16A4CE for ; Sun, 11 Jul 2004 02:25:55 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4963043D2D for ; Sun, 11 Jul 2004 02:25:55 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6B2PsNE085131 for ; Sun, 11 Jul 2004 02:25:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i6B2Ps2x085130; Sun, 11 Jul 2004 02:25:54 GMT (envelope-from nobody) Message-Id: <200407110225.i6B2Ps2x085130@www.freebsd.org> Date: Sun, 11 Jul 2004 02:25:54 GMT From: blake frantz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/68905: core dump ownership issue X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 02:30:13 -0000 >Number: 68905 >Category: misc >Synopsis: core dump ownership issue >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 11 02:30:12 GMT 2004 >Closed-Date: >Last-Modified: >Originator: blake frantz >Release: 4.9-RC FreeBSD 4.9-RC >Organization: none >Environment: FreeBSD sbin.nologin.org 4.9-RC FreeBSD 4.9-RC #0: Thu Oct 16 21:45:02 PDT 2003 root@sbin.nologin.org:/usr/src/sys/compile/NOLOGIN i386 >Description: if a core file owned by a non root user exists and root runs a process that drops core in the same location, the original core file owned by the non root user is replaced with root's core dump, except the original owner maintains ownership of the core. linux 2.4, 2.6, and obsd operate in the same manner. i have not tested other platforms i do understand that mitigating factors, such as configuring where and how core's are created, but this doens't seem right. >How-To-Repeat: trew:~/tmp/q$ ./t Segmentation fault (core dumped) trew:~/tmp/q$ md5sum core 90b29a1012aa00c34a18947d98f1b1fb core trew:~/tmp/q$ ls -l core -rw------- 1 trew users 61440 Jul 10 19:13 core trew:~/tmp/q$ su Password: root:/home/trew/tmp/q# ./t Segmentation fault (core dumped) root:/home/trew/tmp/q# md5sum core 371c0748df009ed1da6f189cceff8aca core root:/home/trew/tmp/q# ls -l core -rw------- 1 trew users 61440 Jul 10 19:13 core >Fix: >Release-Note: >Audit-Trail: >Unformatted: