PERFORCE change 87672 for review
Wayne Salamon
wsalamon at FreeBSD.org
Sat Dec 3 01:06:09 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=87672
Change 87672 by wsalamon at gretsch on 2005/12/03 01:05:55
Complete the auditing for fchdir(), fchown(), mknod(), and fsync()
system calls.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/kern/vfs_syscalls.c#19 edit
.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#32 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/kern/vfs_syscalls.c#19 (text+ko) ====
@@ -688,6 +688,7 @@
int vfslocked;
int error;
+ AUDIT_ARG(fd, uap->fd);
if ((error = getvnode(fdp, uap->fd, &fp)) != 0)
return (error);
vp = fp->f_vnode;
@@ -1186,6 +1187,7 @@
int vfslocked;
AUDIT_ARG(mode, mode);
+ AUDIT_ARG(dev, dev);
switch (mode & S_IFMT) {
case S_IFCHR:
@@ -2756,6 +2758,7 @@
int vfslocked;
int error;
+ AUDIT_ARG(fd, uap->fd);
AUDIT_ARG(owner, uap->uid, uap->gid);
if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0)
return (error);
@@ -3185,10 +3188,12 @@
int vfslocked;
int error;
+ AUDIT_ARG(fd, uap->fd);;
if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0)
return (error);
vp = fp->f_vnode;
vfslocked = VFS_LOCK_GIANT(vp->v_mount);
+ AUDIT_ARG(vnode, vp, ARG_VNODE1);
if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0)
goto drop;
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_bsm_audit.c#32 (text+ko) ====
@@ -614,6 +614,7 @@
case AUE_FPATHCONF:
case AUE_FSTAT: /* XXX Need to handle sockets and shm */
case AUE_FSTATFS:
+ case AUE_FSYNC:
case AUE_FTRUNCATE:
case AUE_FUTIMES:
case AUE_GETDIRENTRIES:
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list