From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 19 23:32:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8BDE106564A for ; Tue, 19 Aug 2008 23:32:57 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id CE3C48FC1F for ; Tue, 19 Aug 2008 23:32:56 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.128] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id m7JNKxtv048971; Tue, 19 Aug 2008 16:20:59 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <48AB5598.90404@freebsd.org> Date: Tue, 19 Aug 2008 16:22:00 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jerry Toung References: <86068e730808191315k2997c99bvbbc586e1173858f6@mail.gmail.com> <86068e730808191614m66b72cb1y8786b8a7b6510df2@mail.gmail.com> In-Reply-To: <86068e730808191614m66b72cb1y8786b8a7b6510df2@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Robert Watson Subject: Re: pkg_add on 64bits kernel w/ options MAC X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Aug 2008 23:32:58 -0000 Jerry Toung wrote: > On Tue, Aug 19, 2008 at 1:26 PM, Robert Watson wrote: > >>Sounds like a bug of some sort. Could you send the output of "sysctl >>security.mac"? Also, if you could use ktrace to confirm which system calls >>are returning EACCES/EPERM leading to the warnings, that would also be >>helpful. > > bsd64-21# kdump -f ktrace.out > 1045 ktrace RET ktrace 0 > 1045 ktrace CALL execve(0x7fffffffe720,0x7fffffffec80,0x7fffffffec98) > 1045 ktrace RET execve -1 errno 2 No such file or directory > 1045 ktrace CALL execve(0x7fffffffe720,0x7fffffffec80,0x7fffffffec98) > 1045 ktrace RET execve -1 errno 2 No such file or directory > 1045 ktrace CALL execve(0x7fffffffe720,0x7fffffffec80,0x7fffffffec98) > 1045 pkg_add RET execve 0 > 1045 pkg_add CALL mmap(0,0x1e40,0x3,0x1000,0xffffffff,0,0) > 1045 pkg_add RET mmap 5443584/0x800531000 > 1045 pkg_add CALL munmap(0x800531000,0x1e40) > 1045 pkg_add RET munmap 0 Robert forgot to specify "ktrace -i" for this. Without the "-i" option, ktrace won't follow the tar command that gets run by pkg_add. It's actually the tar command that's running into problems. Tim