Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jul 2007 13:52:52 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123895 for review
Message-ID:  <200707221352.l6MDqqsU086972@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123895

Change 123895 by rdivacky@rdivacky_witten on 2007/07/22 13:52:20

	Change audit events to *at ones.

Affected files ...

.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/init_sysent.c#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.c#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.master#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/systrace_args.c#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.h#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.mk#10 edit
.. //depot/projects/soc2007/rdivacky/linux_at/sys/sys/sysproto.h#10 edit

Differences ...

==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/init_sysent.c#10 (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.229 2007/07/04 22:49:54 peter Exp $
+ * $FreeBSD$
  * created from FreeBSD: src/sys/kern/syscalls.master,v 1.232 2007/07/04 22:47:37 peter Exp 
  */
 
@@ -510,4 +510,19 @@
 	{ AS(lseek_args), (sy_call_t *)lseek, AUE_LSEEK, NULL, 0, 0 },	/* 478 = lseek */
 	{ AS(truncate_args), (sy_call_t *)truncate, AUE_TRUNCATE, NULL, 0, 0 },	/* 479 = truncate */
 	{ AS(ftruncate_args), (sy_call_t *)ftruncate, AUE_FTRUNCATE, NULL, 0, 0 },	/* 480 = ftruncate */
+	{ AS(faccessat_args), (sy_call_t *)faccessat, AUE_FACCESSAT, NULL, 0, 0 },	/* 481 = faccessat */
+	{ AS(fchmodat_args), (sy_call_t *)fchmodat, AUE_FCHMODAT, NULL, 0, 0 },	/* 482 = fchmodat */
+	{ AS(fchownat_args), (sy_call_t *)fchownat, AUE_FCHOWNAT, NULL, 0, 0 },	/* 483 = fchownat */
+	{ AS(fexecve_args), (sy_call_t *)fexecve, AUE_FEXECVE, NULL, 0, 0 },	/* 484 = fexecve */
+	{ AS(fstatat_args), (sy_call_t *)fstatat, AUE_FSTATAT, NULL, 0, 0 },	/* 485 = fstatat */
+	{ AS(futimesat_args), (sy_call_t *)futimesat, AUE_FUTIMESAT, NULL, 0, 0 },	/* 486 = futimesat */
+	{ AS(linkat_args), (sy_call_t *)linkat, AUE_LINKAT, NULL, 0, 0 },	/* 487 = linkat */
+	{ AS(mkdirat_args), (sy_call_t *)mkdirat, AUE_MKDIRAT, NULL, 0, 0 },	/* 488 = mkdirat */
+	{ AS(mkfifoat_args), (sy_call_t *)mkfifoat, AUE_MKFIFOAT, NULL, 0, 0 },	/* 489 = mkfifoat */
+	{ AS(mknodat_args), (sy_call_t *)mknodat, AUE_MKNODAT, NULL, 0, 0 },	/* 490 = mknodat */
+	{ AS(openat_args), (sy_call_t *)openat, AUE_OPENAT_RWTC, NULL, 0, 0 },	/* 491 = openat */
+	{ AS(readlinkat_args), (sy_call_t *)readlinkat, AUE_READLINKAT, NULL, 0, 0 },	/* 492 = readlinkat */
+	{ AS(renameat_args), (sy_call_t *)renameat, AUE_RENAMEAT, NULL, 0, 0 },	/* 493 = renameat */
+	{ AS(symlinkat_args), (sy_call_t *)symlinkat, AUE_SYMLINKAT, NULL, 0, 0 },	/* 494 = symlinkat */
+	{ AS(unlinkat_args), (sy_call_t *)unlinkat, AUE_UNLINKAT, NULL, 0, 0 },	/* 495 = unlinkat */
 };

==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.c#10 (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.213 2007/07/04 22:49:55 peter Exp $
+ * $FreeBSD$
  * created from FreeBSD: src/sys/kern/syscalls.master,v 1.232 2007/07/04 22:47:37 peter Exp 
  */
 
@@ -488,4 +488,19 @@
 	"lseek",			/* 478 = lseek */
 	"truncate",			/* 479 = truncate */
 	"ftruncate",			/* 480 = ftruncate */
+	"faccessat",			/* 481 = faccessat */
+	"fchmodat",			/* 482 = fchmodat */
+	"fchownat",			/* 483 = fchownat */
+	"fexecve",			/* 484 = fexecve */
+	"fstatat",			/* 485 = fstatat */
+	"futimesat",			/* 486 = futimesat */
+	"linkat",			/* 487 = linkat */
+	"mkdirat",			/* 488 = mkdirat */
+	"mkfifoat",			/* 489 = mkfifoat */
+	"mknodat",			/* 490 = mknodat */
+	"openat",			/* 491 = openat */
+	"readlinkat",			/* 492 = readlinkat */
+	"renameat",			/* 493 = renameat */
+	"symlinkat",			/* 494 = symlinkat */
+	"unlinkat",			/* 495 = unlinkat */
 };

==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/syscalls.master#10 (text+ko) ====

@@ -846,21 +846,21 @@
 				    int whence); }
 479	AUE_TRUNCATE	STD	{ int truncate(char *path, off_t length); }
 480	AUE_FTRUNCATE	STD	{ int ftruncate(int fd, off_t length); }
-481	AUE_ACCESS	STD	{ int faccessat(int fd, const char *path, int mode, int flag); }
-482	AUE_CHMOD	STD	{ int fchmodat(int fd, const char *path, mode_t mode, int flag); }
-483	AUE_CHOWN	STD	{ int fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); }
-484	AUE_EXECVE	STD	{ int fexecve(int fd, char **argv, char **envv); }
-485	AUE_STAT	STD	{ int fstatat(int fd, const char *path, struct stat *buf, int flag); }
-486	AUE_UTIMES	STD	{ int futimesat(int fd, const char *path, const struct timeval *times); }
-487	AUE_LINK	STD	{ int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); }
-488	AUE_MKDIR	STD	{ int mkdirat(int fd, const char *path, mode_t mode); }
-489	AUE_MKFIFO	STD	{ int mkfifoat(int fd, const char *path, mode_t mode); }
-490	AUE_MKNOD	STD	{ int mknodat(int fd, const char *path, mode_t mode, dev_t dev); }
+481	AUE_FACCESSAT	STD	{ int faccessat(int fd, const char *path, int mode, int flag); }
+482	AUE_FCHMODAT	STD	{ int fchmodat(int fd, const char *path, mode_t mode, int flag); }
+483	AUE_FCHOWNAT	STD	{ int fchownat(int fd, const char *path, uid_t uid, gid_t gid, int flag); }
+484	AUE_FEXECVE	STD	{ int fexecve(int fd, char **argv, char **envv); }
+485	AUE_FSTATAT	STD	{ int fstatat(int fd, const char *path, struct stat *buf, int flag); }
+486	AUE_FUTIMESAT	STD	{ int futimesat(int fd, const char *path, const struct timeval *times); }
+487	AUE_LINKAT	STD	{ int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); }
+488	AUE_MKDIRAT	STD	{ int mkdirat(int fd, const char *path, mode_t mode); }
+489	AUE_MKFIFOAT	STD	{ int mkfifoat(int fd, const char *path, mode_t mode); }
+490	AUE_MKNODAT	STD	{ int mknodat(int fd, const char *path, mode_t mode, dev_t dev); }
 ; XXX: see the comment for open
-491	AUE_OPEN_RWTC	STD	{ int openat(int fd, const char *path, int flag, mode_t mode); }
-492	AUE_READLINK	STD	{ int readlinkat(int fd, const char *path, char *buf, size_t bufsize); }
-493	AUE_RENAME	STD	{ int renameat(int oldfd, const char *old, int newfd, const char *new); }
-494	AUE_SYMLINK	STD	{ int symlinkat(const char *path1, int fd, const char *path2); }
-495	AUE_UNLINK	STD	{ int unlinkat(int fd, const char *path, int flag); }
+491	AUE_OPENAT_RWTC	STD	{ int openat(int fd, const char *path, int flag, mode_t mode); }
+492	AUE_READLINKAT	STD	{ int readlinkat(int fd, const char *path, char *buf, size_t bufsize); }
+493	AUE_RENAMEAT	STD	{ int renameat(int oldfd, const char *old, int newfd, const char *new); }
+494	AUE_SYMLINKAT	STD	{ int symlinkat(const char *path1, int fd, const char *path2); }
+495	AUE_UNLINKAT	STD	{ int unlinkat(int fd, const char *path, int flag); }
 ; Please copy any additions and changes to the following compatability tables:
 ; sys/compat/freebsd32/syscalls.master

==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/systrace_args.c#10 (text+ko) ====

@@ -2,7 +2,7 @@
  * System call argument to DTrace register array converstion.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * $FreeBSD: src/sys/kern/systrace_args.c,v 1.13 2007/07/04 22:49:55 peter Exp $
+ * $FreeBSD$
  * This file is part of the DTrace syscall provider.
  */
 
@@ -2862,6 +2862,152 @@
 		*n_args = 2;
 		break;
 	}
+	/* faccessat */
+	case 481: {
+		struct faccessat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->mode; /* int */
+		iarg[3] = p->flag; /* int */
+		*n_args = 4;
+		break;
+	}
+	/* fchmodat */
+	case 482: {
+		struct fchmodat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->mode; /* mode_t */
+		iarg[3] = p->flag; /* int */
+		*n_args = 4;
+		break;
+	}
+	/* fchownat */
+	case 483: {
+		struct fchownat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		uarg[2] = p->uid; /* uid_t */
+		iarg[3] = p->gid; /* gid_t */
+		iarg[4] = p->flag; /* int */
+		*n_args = 5;
+		break;
+	}
+	/* fexecve */
+	case 484: {
+		struct fexecve_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->argv; /* char ** */
+		uarg[2] = (intptr_t) p->envv; /* char ** */
+		*n_args = 3;
+		break;
+	}
+	/* fstatat */
+	case 485: {
+		struct fstatat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		uarg[2] = (intptr_t) p->buf; /* struct stat * */
+		iarg[3] = p->flag; /* int */
+		*n_args = 4;
+		break;
+	}
+	/* futimesat */
+	case 486: {
+		struct futimesat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		uarg[2] = (intptr_t) p->times; /* const struct timeval * */
+		*n_args = 3;
+		break;
+	}
+	/* linkat */
+	case 487: {
+		struct linkat_args *p = params;
+		iarg[0] = p->fd1; /* int */
+		uarg[1] = (intptr_t) p->path1; /* const char * */
+		iarg[2] = p->fd2; /* int */
+		uarg[3] = (intptr_t) p->path2; /* const char * */
+		iarg[4] = p->flag; /* int */
+		*n_args = 5;
+		break;
+	}
+	/* mkdirat */
+	case 488: {
+		struct mkdirat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->mode; /* mode_t */
+		*n_args = 3;
+		break;
+	}
+	/* mkfifoat */
+	case 489: {
+		struct mkfifoat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->mode; /* mode_t */
+		*n_args = 3;
+		break;
+	}
+	/* mknodat */
+	case 490: {
+		struct mknodat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->mode; /* mode_t */
+		iarg[3] = p->dev; /* dev_t */
+		*n_args = 4;
+		break;
+	}
+	/* openat */
+	case 491: {
+		struct openat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->flag; /* int */
+		iarg[3] = p->mode; /* mode_t */
+		*n_args = 4;
+		break;
+	}
+	/* readlinkat */
+	case 492: {
+		struct readlinkat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		uarg[2] = (intptr_t) p->buf; /* char * */
+		uarg[3] = p->bufsize; /* size_t */
+		*n_args = 4;
+		break;
+	}
+	/* renameat */
+	case 493: {
+		struct renameat_args *p = params;
+		iarg[0] = p->oldfd; /* int */
+		uarg[1] = (intptr_t) p->old; /* const char * */
+		iarg[2] = p->newfd; /* int */
+		uarg[3] = (intptr_t) p->new; /* const char * */
+		*n_args = 4;
+		break;
+	}
+	/* symlinkat */
+	case 494: {
+		struct symlinkat_args *p = params;
+		uarg[0] = (intptr_t) p->path1; /* const char * */
+		iarg[1] = p->fd; /* int */
+		uarg[2] = (intptr_t) p->path2; /* const char * */
+		*n_args = 3;
+		break;
+	}
+	/* unlinkat */
+	case 495: {
+		struct unlinkat_args *p = params;
+		iarg[0] = p->fd; /* int */
+		uarg[1] = (intptr_t) p->path; /* const char * */
+		iarg[2] = p->flag; /* int */
+		*n_args = 3;
+		break;
+	}
 	default:
 		*n_args = 0;
 		break;

==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.h#10 (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.210 2007/07/04 22:49:55 peter Exp $
+ * $FreeBSD$
  * created from FreeBSD: src/sys/kern/syscalls.master,v 1.232 2007/07/04 22:47:37 peter Exp 
  */
 
@@ -400,4 +400,19 @@
 #define	SYS_lseek	478
 #define	SYS_truncate	479
 #define	SYS_ftruncate	480
-#define	SYS_MAXSYSCALL	481
+#define	SYS_faccessat	481
+#define	SYS_fchmodat	482
+#define	SYS_fchownat	483
+#define	SYS_fexecve	484
+#define	SYS_fstatat	485
+#define	SYS_futimesat	486
+#define	SYS_linkat	487
+#define	SYS_mkdirat	488
+#define	SYS_mkfifoat	489
+#define	SYS_mknodat	490
+#define	SYS_openat	491
+#define	SYS_readlinkat	492
+#define	SYS_renameat	493
+#define	SYS_symlinkat	494
+#define	SYS_unlinkat	495
+#define	SYS_MAXSYSCALL	496

==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/syscall.mk#10 (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.165 2007/07/04 22:49:55 peter Exp $
+# $FreeBSD$
 # created from FreeBSD: src/sys/kern/syscalls.master,v 1.232 2007/07/04 22:47:37 peter Exp 
 MIASM =  \
 	syscall.o \
@@ -348,4 +348,19 @@
 	mmap.o \
 	lseek.o \
 	truncate.o \
-	ftruncate.o
+	ftruncate.o \
+	faccessat.o \
+	fchmodat.o \
+	fchownat.o \
+	fexecve.o \
+	fstatat.o \
+	futimesat.o \
+	linkat.o \
+	mkdirat.o \
+	mkfifoat.o \
+	mknodat.o \
+	openat.o \
+	readlinkat.o \
+	renameat.o \
+	symlinkat.o \
+	unlinkat.o

==== //depot/projects/soc2007/rdivacky/linux_at/sys/sys/sysproto.h#10 (text+ko) ====

@@ -2517,21 +2517,21 @@
 #define	SYS_AUE_lseek	AUE_LSEEK
 #define	SYS_AUE_truncate	AUE_TRUNCATE
 #define	SYS_AUE_ftruncate	AUE_FTRUNCATE
-#define	SYS_AUE_faccessat	AUE_ACCESS
-#define	SYS_AUE_fchmodat	AUE_CHMOD
-#define	SYS_AUE_fchownat	AUE_CHOWN
-#define	SYS_AUE_fexecve	AUE_EXECVE
-#define	SYS_AUE_fstatat	AUE_STAT
-#define	SYS_AUE_futimesat	AUE_UTIMES
-#define	SYS_AUE_linkat	AUE_LINK
-#define	SYS_AUE_mkdirat	AUE_MKDIR
-#define	SYS_AUE_mkfifoat	AUE_MKFIFO
-#define	SYS_AUE_mknodat	AUE_MKNOD
-#define	SYS_AUE_openat	AUE_OPEN_RWTC
-#define	SYS_AUE_readlinkat	AUE_READLINK
-#define	SYS_AUE_renameat	AUE_RENAME
-#define	SYS_AUE_symlinkat	AUE_SYMLINK
-#define	SYS_AUE_unlinkat	AUE_UNLINK
+#define	SYS_AUE_faccessat	AUE_FACCESSAT
+#define	SYS_AUE_fchmodat	AUE_FCHMODAT
+#define	SYS_AUE_fchownat	AUE_FCHOWNAT
+#define	SYS_AUE_fexecve	AUE_FEXECVE
+#define	SYS_AUE_fstatat	AUE_FSTATAT
+#define	SYS_AUE_futimesat	AUE_FUTIMESAT
+#define	SYS_AUE_linkat	AUE_LINKAT
+#define	SYS_AUE_mkdirat	AUE_MKDIRAT
+#define	SYS_AUE_mkfifoat	AUE_MKFIFOAT
+#define	SYS_AUE_mknodat	AUE_MKNODAT
+#define	SYS_AUE_openat	AUE_OPENAT_RWTC
+#define	SYS_AUE_readlinkat	AUE_READLINKAT
+#define	SYS_AUE_renameat	AUE_RENAMEAT
+#define	SYS_AUE_symlinkat	AUE_SYMLINKAT
+#define	SYS_AUE_unlinkat	AUE_UNLINKAT
 
 #undef PAD_
 #undef PADL_



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707221352.l6MDqqsU086972>