Date: Wed, 18 Dec 2002 19:24:32 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 22499 for review Message-ID: <200212190324.gBJ3OWmv048936@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=22499 Change 22499 by rwatson@rwatson_paprika on 2002/12/18 19:23:40 Addition of ACL calls for symlinks: provide some symmetry with mode and ownship calls. Affected files ... .. //depot/projects/trustedbsd/acl/sys/kern/init_sysent.c#2 edit .. //depot/projects/trustedbsd/acl/sys/kern/syscalls.c#2 edit .. //depot/projects/trustedbsd/acl/sys/kern/syscalls.master#2 edit .. //depot/projects/trustedbsd/acl/sys/sys/syscall.h#2 edit .. //depot/projects/trustedbsd/acl/sys/sys/syscall.mk#2 edit .. //depot/projects/trustedbsd/acl/sys/sys/sysproto.h#2 edit Differences ... ==== //depot/projects/trustedbsd/acl/sys/kern/init_sysent.c#2 (text+ko) ==== @@ -2,7 +2,7 @@ * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/kern/init_sysent.c,v 1.144 2002/12/15 19:19:14 dillon Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.138 2002/12/15 19:17:56 dillon Exp */ @@ -453,4 +453,8 @@ { SYF_MPSAFE | AS(setcontext_args), (sy_call_t *)setcontext }, /* 422 = setcontext */ { SYF_MPSAFE | AS(swapcontext_args), (sy_call_t *)swapcontext }, /* 423 = swapcontext */ { SYF_MPSAFE | AS(swapoff_args), (sy_call_t *)swapoff }, /* 424 = swapoff */ + { SYF_MPSAFE | AS(__acl_get_link_args), (sy_call_t *)__acl_get_link }, /* 425 = __acl_get_link */ + { SYF_MPSAFE | AS(__acl_set_link_args), (sy_call_t *)__acl_set_link }, /* 426 = __acl_set_link */ + { SYF_MPSAFE | AS(__acl_delete_link_args), (sy_call_t *)__acl_delete_link }, /* 427 = __acl_delete_link */ + { SYF_MPSAFE | AS(__acl_aclcheck_link_args), (sy_call_t *)__acl_aclcheck_link }, /* 428 = __acl_aclcheck_link */ }; ==== //depot/projects/trustedbsd/acl/sys/kern/syscalls.c#2 (text+ko) ==== @@ -2,7 +2,7 @@ * System call names. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/kern/syscalls.c,v 1.130 2002/12/15 19:19:14 dillon Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.138 2002/12/15 19:17:56 dillon Exp */ @@ -432,4 +432,8 @@ "setcontext", /* 422 = setcontext */ "swapcontext", /* 423 = swapcontext */ "swapoff", /* 424 = swapoff */ + "__acl_get_link", /* 425 = __acl_get_link */ + "__acl_set_link", /* 426 = __acl_set_link */ + "__acl_delete_link", /* 427 = __acl_delete_link */ + "__acl_aclcheck_link", /* 428 = __acl_aclcheck_link */ }; ==== //depot/projects/trustedbsd/acl/sys/kern/syscalls.master#2 (text+ko) ==== @@ -613,6 +613,14 @@ 423 MSTD BSD { int swapcontext(struct __ucontext *oucp, \ const struct __ucontext *ucp); } 424 MSTD BSD { int swapoff(const char *name); } +425 MSTD BSD { int __acl_get_link(const char *path, \ + acl_type_t type, struct acl *aclp); } +426 MSTD BSD { int __acl_set_link(const char *path, \ + acl_type_t type, struct acl *aclp); } +427 MSTD BSD { int __acl_delete_link(const char *path, \ + acl_type_t type); } +428 MSTD BSD { int __acl_aclcheck_link(const char *path, \ + acl_type_t type, struct acl *aclp); } ; Please copy any additions and changes to the following compatability tables: ; sys/ia64/ia32/syscalls.master (take a best guess) ==== //depot/projects/trustedbsd/acl/sys/sys/syscall.h#2 (text+ko) ==== @@ -2,7 +2,7 @@ * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/sys/syscall.h,v 1.128 2002/12/15 19:19:15 dillon Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.138 2002/12/15 19:17:56 dillon Exp */ @@ -330,4 +330,8 @@ #define SYS_setcontext 422 #define SYS_swapcontext 423 #define SYS_swapoff 424 -#define SYS_MAXSYSCALL 425 +#define SYS___acl_get_link 425 +#define SYS___acl_set_link 426 +#define SYS___acl_delete_link 427 +#define SYS___acl_aclcheck_link 428 +#define SYS_MAXSYSCALL 429 ==== //depot/projects/trustedbsd/acl/sys/sys/syscall.mk#2 (text+ko) ==== @@ -1,6 +1,6 @@ # FreeBSD system call names. # DO NOT EDIT-- this file is automatically generated. -# $FreeBSD: src/sys/sys/syscall.mk,v 1.83 2002/12/15 19:19:15 dillon Exp $ +# $FreeBSD$ # created from FreeBSD: src/sys/kern/syscalls.master,v 1.138 2002/12/15 19:17:56 dillon Exp MIASM = \ syscall.o \ @@ -275,4 +275,8 @@ getcontext.o \ setcontext.o \ swapcontext.o \ - swapoff.o + swapoff.o \ + __acl_get_link.o \ + __acl_set_link.o \ + __acl_delete_link.o \ + __acl_aclcheck_link.o ==== //depot/projects/trustedbsd/acl/sys/sys/sysproto.h#2 (text+ko) ==== @@ -2,7 +2,7 @@ * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. - * $FreeBSD: src/sys/sys/sysproto.h,v 1.121 2002/12/15 19:19:15 dillon Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.138 2002/12/15 19:17:56 dillon Exp */ @@ -1204,6 +1204,25 @@ struct swapoff_args { char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; }; +struct __acl_get_link_args { + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; + char type_l_[PADL_(acl_type_t)]; acl_type_t type; char type_r_[PADR_(acl_type_t)]; + char aclp_l_[PADL_(struct acl *)]; struct acl * aclp; char aclp_r_[PADR_(struct acl *)]; +}; +struct __acl_set_link_args { + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; + char type_l_[PADL_(acl_type_t)]; acl_type_t type; char type_r_[PADR_(acl_type_t)]; + char aclp_l_[PADL_(struct acl *)]; struct acl * aclp; char aclp_r_[PADR_(struct acl *)]; +}; +struct __acl_delete_link_args { + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; + char type_l_[PADL_(acl_type_t)]; acl_type_t type; char type_r_[PADR_(acl_type_t)]; +}; +struct __acl_aclcheck_link_args { + char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)]; + char type_l_[PADL_(acl_type_t)]; acl_type_t type; char type_r_[PADR_(acl_type_t)]; + char aclp_l_[PADL_(struct acl *)]; struct acl * aclp; char aclp_r_[PADR_(struct acl *)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_exit(struct thread *, struct sys_exit_args *); int fork(struct thread *, struct fork_args *); @@ -1476,6 +1495,10 @@ int setcontext(struct thread *, struct setcontext_args *); int swapcontext(struct thread *, struct swapcontext_args *); int swapoff(struct thread *, struct swapoff_args *); +int __acl_get_link(struct thread *, struct __acl_get_link_args *); +int __acl_set_link(struct thread *, struct __acl_set_link_args *); +int __acl_delete_link(struct thread *, struct __acl_delete_link_args *); +int __acl_aclcheck_link(struct thread *, struct __acl_aclcheck_link_args *); #ifdef COMPAT_43 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212190324.gBJ3OWmv048936>