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

Adding Posix - ACL Support for S/390



Hi there,

if tried to get acl's working on s390 plattform, and  i hope this is the 
right(?) place to post my experiance in this mailing-list.

The following have i done to get acl working, for my linux/390 system.:

i have add to "arch/s390/kernel/entry.S" to get posix-acl's work:

        .long  sys_getdents64            /* 220 */
        .long  sys_fcntl64
+       .long  sys_attrctl                  /* 222 - Attrctrl */
+       .long  sys_acl_get               /* 223 - ACL Syscall for get */
+       .long  sys_acl_set               /* 224 - ACL Syscall for set */
-       .rept  255-221
        .rept  255-224
        .long  sys_ni_syscall
        .endr                             

and in the "include/asm-s390/unistd.h":

#define __NR_getdents64         220
+#define __NR__attrctl           222
+#define __NR__acl_get           223
+#define __NR__acl_set           224        


In the "libacl/acl.c" the right syscall's for the kernel:

+#define HAVE_ACL_SYSCALL 1     
+#  ifndef SYS__acl_get
+#    define SYS__acl_get        223
+#  endif
+#  ifndef SYS__acl_set
+#    define SYS__acl_set        224
+#  endif

This is the first time, i try to but a patch(?) to something, and i dont know 
how i have to do this. 
Have i somewhere to ask to get offical SYSCALL Numbers for s/390, if yes, 
where?
have i post this, to this mailing-list or somewhere else (IBM?)

Thanks and i hope, i have done right, if not, tell me :-)

Christian Mueller