On Sun, Apr 08, 2001 at 01:24:24AM +0900, alexil@xxxxxx wrote:
> Hi.
>
> I have problem, chacl function don't work.
> (slackware libc-2.2.2 gcc-2.95.3 2.4.3-XFS)
It looks like you're kernel is missing the syscall, have you
configured the kernel for acl support ie. CONFIG_FS_POSIX_ACL=y?
>
> see
>
> darkstar:/# touch file
>
> darkstar:/# ls -l file
> -rw-r--r-- 1 root root 0 Apr 8 00:50 file
>
> darkstar:/# chacl -l file
> chacl: error getting ACL on "file": Function not implemented
>
>
> strace chacl -l file
>
> execve("/bin/chacl", ["chacl", "-l", "file"], [/* 41 vars */]) = 0
> brk(0) = 0x804bd7c
> open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> SYS_197(0x3, 0xbfffebec, 0x4001624c, 0x400164ac, 0x3) = 0
> mmap() = 0x40017000
> close(3) = 0
> open("/lib/libc.so.6", O_RDONLY) = 3
> read(3, 0xbfffed1c, 1024) = 1024
> SYS_197(0x3, 0xbfffec34, 0x4001624c, 0x400164ac, 0x3) = 0
> mmap() = 0x4001c000
> mprotect(0x40120000, 39204, PROT_NONE) = 0
> mmap() = 0x40120000
> mmap() = 0x40126000
> close(3) = 0
> munmap(0x40017000, 18931) = 0
> getpid() = 398
> brk(0) = 0x804bd7c
> brk(0x804bec4) = 0x804bec4
> brk(0x804c000) = 0x804c000
> shmat(3221224038, 0, SHM_REMAP|SHM_RDONLY|SHM_RND|0xffff8fff) = -1 ENOSYS
> (Function not implemented)
> write(2, 0xbfffd1bc, 61chacl: error getting ACL on "file": Function not
> implemented
> ) = 61
> _exit(1)
>
>
>
>
> darkstar:/# chacl u::rwx,g::r-x,o::r-- file
> chacl: error setting access acl on "file": Function not implemented
>
> strace chacl u::rwx,g::r-x,o::r-- file
>
> execve("/bin/chacl", ["chacl", "u::rwx,g::r-x,o::r--", "file"], [/* 41 vars
> */]) = 0
> brk(0) = 0x804bd7c
> open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/etc/ld.so.cache", O_RDONLY) = 3
> SYS_197(0x3, 0xbfffebdc, 0x4001624c, 0x400164ac, 0x3) = 0
> mmap() = 0x40017000
> close(3) = 0
> open("/lib/libc.so.6", O_RDONLY) = 3
> read(3, 0xbfffed0c, 1024) = 1024
> SYS_197(0x3, 0xbfffec24, 0x4001624c, 0x400164ac, 0x3) = 0
> mmap() = 0x4001c000
> mprotect(0x40120000, 39204, PROT_NONE) = 0
> mmap() = 0x40120000
> mmap() = 0x40126000
> close(3) = 0
> munmap(0x40017000, 18931) = 0
> getpid() = 388
> brk(0) = 0x804bd7c
> brk(0x804bdac) = 0x804bdac
> brk(0x804c000) = 0x804c000
> shmdt(0) = -1 ENOSYS (Function not implemented)
> write(2, 0xbfffd1dc, 68chacl: error setting access acl on "file": Function
> not implemented
> ) = 68
> _exit(1)
>
--
Andrew Gildfind - R&D Software Engineer - SGI Melbourne Australia
email: ajag@xxxxxxx - work: +61.3.9834.8200 mobile: 0412.834.183
|