Date: Sat, 10 Jan 2004 20:36:48 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 45102 for review Message-ID: <200401110436.i0B4amvG047996@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=45102 Change 45102 by rwatson@rwatson_paprika on 2004/01/10 20:36:10 Audit-related system calls. Affected files ... .. //depot/projects/trustedbsd/audit2/sys/kern/init_sysent.c#2 edit .. //depot/projects/trustedbsd/audit2/sys/kern/syscalls.c#2 edit .. //depot/projects/trustedbsd/audit2/sys/kern/syscalls.master#2 edit .. //depot/projects/trustedbsd/audit2/sys/sys/syscall.h#2 edit .. //depot/projects/trustedbsd/audit2/sys/sys/syscall.mk#2 edit .. //depot/projects/trustedbsd/audit2/sys/sys/sysproto.h#2 edit Differences ... ==== //depot/projects/trustedbsd/audit2/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.161 2003/11/14 03:49:41 jeff Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.158 2003/11/14 03:48:37 jeff Exp */ @@ -468,4 +468,14 @@ { AS(extattr_list_fd_args), (sy_call_t *)extattr_list_fd }, /* 437 = extattr_list_fd */ { AS(extattr_list_file_args), (sy_call_t *)extattr_list_file }, /* 438 = extattr_list_file */ { AS(extattr_list_link_args), (sy_call_t *)extattr_list_link }, /* 439 = extattr_list_link */ + { SYF_MPSAFE | AS(audit_args), (sy_call_t *)audit }, /* 440 = audit */ + { SYF_MPSAFE | AS(auditon_args), (sy_call_t *)auditon }, /* 441 = auditon */ + { SYF_MPSAFE | AS(auditsvc_args), (sy_call_t *)auditsvc }, /* 442 = auditsvc */ + { SYF_MPSAFE | AS(getauid_args), (sy_call_t *)getauid }, /* 443 = getauid */ + { SYF_MPSAFE | AS(setauid_args), (sy_call_t *)setauid }, /* 444 = setauid */ + { SYF_MPSAFE | AS(getaudit_args), (sy_call_t *)getaudit }, /* 445 = getaudit */ + { SYF_MPSAFE | AS(setaudit_args), (sy_call_t *)setaudit }, /* 446 = setaudit */ + { SYF_MPSAFE | AS(getaudit_addr_args), (sy_call_t *)getaudit_addr }, /* 447 = getaudit_addr */ + { SYF_MPSAFE | AS(setaudit_addr_args), (sy_call_t *)setaudit_addr }, /* 448 = setaudit_addr */ + { SYF_MPSAFE | AS(auditctl_args), (sy_call_t *)auditctl }, /* 449 = auditctl */ }; ==== //depot/projects/trustedbsd/audit2/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.147 2003/11/14 03:49:41 jeff Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.158 2003/11/14 03:48:37 jeff Exp */ @@ -447,4 +447,14 @@ "extattr_list_fd", /* 437 = extattr_list_fd */ "extattr_list_file", /* 438 = extattr_list_file */ "extattr_list_link", /* 439 = extattr_list_link */ + "audit", /* 440 = audit */ + "auditon", /* 441 = auditon */ + "auditsvc", /* 442 = auditsvc */ + "getauid", /* 443 = getauid */ + "setauid", /* 444 = setauid */ + "getaudit", /* 445 = getaudit */ + "setaudit", /* 446 = setaudit */ + "getaudit_addr", /* 447 = getaudit_addr */ + "setaudit_addr", /* 448 = setaudit_addr */ + "auditctl", /* 449 = auditctl */ }; ==== //depot/projects/trustedbsd/audit2/sys/kern/syscalls.master#2 (text+ko) ==== @@ -639,6 +639,18 @@ int attrnamespace, void *data, size_t nbytes); } 439 STD BSD { ssize_t extattr_list_link(const char *path, \ int attrnamespace, void *data, size_t nbytes); } +440 MSTD BSD { int audit(const void *ar, int len); } +441 MSTD BSD { int auditon(int cmd, void *data, int len); } +442 MSTD BSD { int auditsvc(int fd, int limit); } +443 MSTD BSD { int getauid(uid_t *auid); } +444 MSTD BSD { int setauid(uid_t *auid); } +445 MSTD BSD { int getaudit(struct auditinfo *auditinfo); } +446 MSTD BSD { int setaudit(struct auditinfo *auditinfo); } +447 MSTD BSD { int getaudit_addr(struct auditinfo_addr \ + *auditinfo_addr, int len); } +448 MSTD BSD { int setaudit_addr(struct auditinfo_addr \ + *auditinfo_addr, int len); } +449 MSTD BSD { int auditctl(char *path); } ; Please copy any additions and changes to the following compatability tables: ; sys/ia64/ia32/syscalls.master (take a best guess) ==== //depot/projects/trustedbsd/audit2/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.145 2003/11/14 03:49:41 jeff Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.158 2003/11/14 03:48:37 jeff Exp */ @@ -351,4 +351,14 @@ #define SYS_extattr_list_fd 437 #define SYS_extattr_list_file 438 #define SYS_extattr_list_link 439 -#define SYS_MAXSYSCALL 440 +#define SYS_audit 440 +#define SYS_auditon 441 +#define SYS_auditsvc 442 +#define SYS_getauid 443 +#define SYS_setauid 444 +#define SYS_getaudit 445 +#define SYS_setaudit 446 +#define SYS_getaudit_addr 447 +#define SYS_setaudit_addr 448 +#define SYS_auditctl 449 +#define SYS_MAXSYSCALL 450 ==== //depot/projects/trustedbsd/audit2/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.100 2003/11/14 03:49:41 jeff Exp $ +# $FreeBSD$ # created from FreeBSD: src/sys/kern/syscalls.master,v 1.158 2003/11/14 03:48:37 jeff Exp MIASM = \ syscall.o \ @@ -292,4 +292,14 @@ jail_attach.o \ extattr_list_fd.o \ extattr_list_file.o \ - extattr_list_link.o + extattr_list_link.o \ + audit.o \ + auditon.o \ + auditsvc.o \ + getauid.o \ + setauid.o \ + getaudit.o \ + setaudit.o \ + getaudit_addr.o \ + setaudit_addr.o \ + auditctl.o ==== //depot/projects/trustedbsd/audit2/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.141 2003/11/14 03:49:41 jeff Exp $ + * $FreeBSD$ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.158 2003/11/14 03:48:37 jeff Exp */ @@ -1284,6 +1284,42 @@ char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)]; }; +struct audit_args { + char ar_l_[PADL_(const void *)]; const void * ar; char ar_r_[PADR_(const void *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct auditon_args { + char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; + char data_l_[PADL_(void *)]; void * data; char data_r_[PADR_(void *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct auditsvc_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char limit_l_[PADL_(int)]; int limit; char limit_r_[PADR_(int)]; +}; +struct getauid_args { + char auid_l_[PADL_(uid_t *)]; uid_t * auid; char auid_r_[PADR_(uid_t *)]; +}; +struct setauid_args { + char auid_l_[PADL_(uid_t *)]; uid_t * auid; char auid_r_[PADR_(uid_t *)]; +}; +struct getaudit_args { + char auditinfo_l_[PADL_(struct auditinfo *)]; struct auditinfo * auditinfo; char auditinfo_r_[PADR_(struct auditinfo *)]; +}; +struct setaudit_args { + char auditinfo_l_[PADL_(struct auditinfo *)]; struct auditinfo * auditinfo; char auditinfo_r_[PADR_(struct auditinfo *)]; +}; +struct getaudit_addr_args { + char auditinfo_addr_l_[PADL_(struct auditinfo_addr *)]; struct auditinfo_addr * auditinfo_addr; char auditinfo_addr_r_[PADR_(struct auditinfo_addr *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct setaudit_addr_args { + char auditinfo_addr_l_[PADL_(struct auditinfo_addr *)]; struct auditinfo_addr * auditinfo_addr; char auditinfo_addr_r_[PADR_(struct auditinfo_addr *)]; + char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)]; +}; +struct auditctl_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_exit(struct thread *, struct sys_exit_args *); int fork(struct thread *, struct fork_args *); @@ -1573,6 +1609,16 @@ int extattr_list_fd(struct thread *, struct extattr_list_fd_args *); int extattr_list_file(struct thread *, struct extattr_list_file_args *); int extattr_list_link(struct thread *, struct extattr_list_link_args *); +int audit(struct thread *, struct audit_args *); +int auditon(struct thread *, struct auditon_args *); +int auditsvc(struct thread *, struct auditsvc_args *); +int getauid(struct thread *, struct getauid_args *); +int setauid(struct thread *, struct setauid_args *); +int getaudit(struct thread *, struct getaudit_args *); +int setaudit(struct thread *, struct setaudit_args *); +int getaudit_addr(struct thread *, struct getaudit_addr_args *); +int setaudit_addr(struct thread *, struct setaudit_addr_args *); +int auditctl(struct thread *, struct auditctl_args *); #ifdef COMPAT_43
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401110436.i0B4amvG047996>