PERFORCE change 81699 for review
Wayne Salamon
wsalamon at FreeBSD.org
Tue Aug 9 01:05:06 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=81699
Change 81699 by wsalamon at gretsch on 2005/08/09 01:05:05
Add test cases for nstat(), nlstat(), and nfstat().
Affected files ...
.. //depot/projects/trustedbsd/audit3/tools/regression/audit/test/file/tfileaccess.c#4 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/tools/regression/audit/test/file/tfileaccess.c#4 (text+ko) ====
@@ -81,11 +81,26 @@
AUT_PERROR("lstat()");
aut_assert(AUE_LSTAT);
+ /* Generate a AUE_NSTAT audit record */
+ if ((nstat(tempname, &tstat)) < 0)
+ AUT_PERROR("nstat()");
+ aut_assert(AUE_NSTAT);
+
+ /* Generate a AUE_NLSTAT audit record */
+ if ((nlstat(tempname, &tstat)) < 0)
+ AUT_PERROR("nlstat()");
+ aut_assert(AUE_NLSTAT);
+
/* Generate a success AUE_FSTAT record */
if ((fstat(temp_fd, &tstat)) < 0)
AUT_PERROR("fstat()");
aut_assert(AUE_FSTAT);
+ /* Generate a success AUE_NFSTAT record */
+ if ((nfstat(temp_fd, &tstat)) < 0)
+ AUT_PERROR("nfstat()");
+ aut_assert(AUE_NFSTAT);
+
/* Generate a AUE_PATHCONF audit record */
if ((pathconf(tempname, _PC_NAME_MAX)) < 0)
AUT_PERROR("pathconf()");
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