Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2008 16:22:00 -0700
From:      Tim Kientzle <kientzle@freebsd.org>
To:        Jerry Toung <jrytoung@gmail.com>
Cc:        freebsd-hackers@freebsd.org, Robert Watson <rwatson@freebsd.org>
Subject:   Re: pkg_add on 64bits kernel w/ options MAC
Message-ID:  <48AB5598.90404@freebsd.org>
In-Reply-To: <86068e730808191614m66b72cb1y8786b8a7b6510df2@mail.gmail.com>
References:  <86068e730808191315k2997c99bvbbc586e1173858f6@mail.gmail.com>	<alpine.BSF.1.10.0808192125020.62454@fledge.watson.org> <86068e730808191614m66b72cb1y8786b8a7b6510df2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jerry Toung wrote:
> On Tue, Aug 19, 2008 at 1:26 PM, Robert Watson <rwatson@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AB5598.90404>