pkg_add on 64bits kernel w/ options MAC

Tim Kientzle kientzle at freebsd.org
Tue Aug 19 23:32:58 UTC 2008


Jerry Toung wrote:
> On Tue, Aug 19, 2008 at 1:26 PM, Robert Watson <rwatson at 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


More information about the freebsd-hackers mailing list