[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libacl.so.1 => not found dead, long live unimplemented getxattr



>>>>> "Jason" == Jason Ish <jason@codemonkey.net> writes:

    Jason> Here's a patch provided by michael@schubert.cx.

That certainly fixes the problem, thanks!

Not that it gets us too far:
% ktrace /emul/linux/bin/ls -l
zsh: 29758 invalid system call (core dumped)  ktrace /emul/linux/bin/ls -l
% kdump | tail                
 29758 ls       CALL  brk(0x805f000)
 29758 ls       RET   brk 134606848/0x805f000
 29758 ls       CALL  getdents64(0x3,0x805cfc0,0x2000)
 29758 ls       RET   getdents64 348/0x15c
 29758 ls       CALL  lstat64(0xcfbf2c38,0x805a08c)
 29758 ls       NAMI  "CVS"
 29758 ls       RET   lstat64 0
 29758 ls       CALL  #229 (unimplemented linux_sys_getxattr)
 29758 ls       PSIG  SIGSYS SIG_DFL code 0
 29758 ls       NAMI  "ls.core"

But I guess this is to be expected given that getxattr call is not
implemented. I should try my hand in stubbing getxattr with something
that returns ENOATTR, per Linux getxattr(2):

 If  the named attribute does not exist, or the process has no access to
 this attribute, errno is set to ENOATTR.