Page MenuHomeFreeBSD
Feed Advanced Search

Jun 19 2018

aniketp created D15893: Add tests for utimes(2), futimes(2), lutimes(2), futimesat(2), mprotect(2) and undelete(2).
Jun 19 2018, 12:49 AM

Jun 18 2018

aniketp updated the diff for D15872: Introduce test-program for ioctl(2) syscall.
  • Update the format specifier to %#lx instead of 0x%x
Jun 18 2018, 11:55 PM
aniketp updated the diff for D15869: Syscalls concerned with sending/receiving message via sockets.

Revert back to meta message

Jun 18 2018, 7:10 AM
aniketp added inline comments to D15869: Syscalls concerned with sending/receiving message via sockets.
Jun 18 2018, 7:07 AM
aniketp updated the diff for D15869: Syscalls concerned with sending/receiving message via sockets.

Lots of changes

  • Non-blocking sockets not needed anymore, make them all default
  • Remove check_readfs() functions [Since socket is blocking by default, read() will actually block till it receives a message]
  • Eliminate client from the whole test program, since I never actually need it.
  • Remove all unused, uninitialized variables, specially from failure test cases
  • Improvements in comments an formatting
  • Remove redundant header imports
Jun 18 2018, 7:00 AM
aniketp updated the diff for D15872: Introduce test-program for ioctl(2) syscall.

Verify the audit of hex(request) in the ioctl(2)'s audit record

Jun 18 2018, 5:24 AM
aniketp updated the diff for D15871: Add tests for {get/set}auid, {get/set}audit, {get/set}audit_addr.

Instead of passing allocated and unitialized memory as the length for {get/set}audit_addr, simply pass the sizeof(auditinfo) as it is supposed to be used.

Jun 18 2018, 5:02 AM
aniketp updated the diff for D15867: Syscalls concerned with modifying/deleting the extended attributes of a file.

Replace readbuff with retval since it is a simple return value instead of a buffer
i.e return value of extattr_delete_{file/fd/link}

Jun 18 2018, 4:52 AM

Jun 17 2018

aniketp created D15872: Introduce test-program for ioctl(2) syscall.
Jun 17 2018, 8:30 PM
aniketp created D15871: Add tests for {get/set}auid, {get/set}audit, {get/set}audit_addr.
Jun 17 2018, 8:03 PM
aniketp created D15869: Syscalls concerned with sending/receiving message via sockets.
Jun 17 2018, 7:29 PM
aniketp updated the diff for D15860: System V standardized IPC syscalls for manipulating shared memory segments.

Remove (int)addr from regex it is not required (We already have the shmid to match against)

Jun 17 2018, 6:04 PM
aniketp created D15867: Syscalls concerned with modifying/deleting the extended attributes of a file.
Jun 17 2018, 5:49 PM
aniketp updated the diff for D15860: System V standardized IPC syscalls for manipulating shared memory segments.

Replace int with intptr_t for ATF_REQUIRE statements of shmat(2) and shmdt(2)

Jun 17 2018, 5:16 PM
aniketp updated the diff for D15853: audit(4): Add tests for connect(2), connectat(2) and accept(2).

Changes as suggested in the review

Jun 17 2018, 5:01 PM
aniketp added a comment to D15861: Introduce test-program for administrative system calls.

@asomers It was passing for me.

Jun 17 2018, 8:33 AM
aniketp updated the diff for D15859: Syscalls concerned with retrieving/listing the extended attributes of a file.

Setting file attributes is not required for listin them

Jun 17 2018, 8:14 AM
aniketp updated the diff for D15861: Introduce test-program for administrative system calls.

Update the Makefile

Jun 17 2018, 1:10 AM
aniketp created D15861: Introduce test-program for administrative system calls.
Jun 17 2018, 1:08 AM
aniketp created D15860: System V standardized IPC syscalls for manipulating shared memory segments.
Jun 17 2018, 12:48 AM
aniketp updated the test plan for D15859: Syscalls concerned with retrieving/listing the extended attributes of a file.
Jun 17 2018, 12:06 AM
aniketp updated the summary of D15859: Syscalls concerned with retrieving/listing the extended attributes of a file.
Jun 17 2018, 12:05 AM
aniketp created D15859: Syscalls concerned with retrieving/listing the extended attributes of a file.
Jun 17 2018, 12:03 AM

Jun 16 2018

aniketp updated the diff for D15854: audit(4): Syscalls concerned with modifying file 'flags'.

Use UF_OFFLINE instead of SF_IMMUTABLE for easy cleanup

Jun 16 2018, 11:34 PM
aniketp updated the diff for D15854: audit(4): Syscalls concerned with modifying file 'flags'.

Add auclass in lchflags(2) test cases

Jun 16 2018, 5:16 PM
aniketp created D15854: audit(4): Syscalls concerned with modifying file 'flags'.
Jun 16 2018, 5:14 PM
aniketp created D15853: audit(4): Add tests for connect(2), connectat(2) and accept(2).
Jun 16 2018, 5:01 PM
aniketp updated the diff for D15848: Introduce test-program for System V standardized IPC syscalls.

Tweak in the msgstr_t variables' initialization

Jun 16 2018, 4:13 PM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.
  • Reduce the timeout to 2 seconds
Jun 16 2018, 3:47 PM
aniketp updated the diff for D15842: Add tests for syscalls concerned with retrieving configurable pathname variables.
  • s/maximun/maximum at 3 places
Jun 16 2018, 3:39 PM
aniketp updated the diff for D15848: Introduce test-program for System V standardized IPC syscalls.

Update the test-program to send only the initialized data using msgsnd(2)

Jun 16 2018, 3:33 PM
aniketp added a comment to D15751: Add a single test-program for praudit(1) utility.

No @asomers, praudit -p never spins the CPU in normal invocation. (Apologies if my earlier statement was unclear)
This is the observation:

Jun 16 2018, 3:02 PM
aniketp updated the summary of D15848: Introduce test-program for System V standardized IPC syscalls.
Jun 16 2018, 6:55 AM
aniketp updated the summary of D15848: Introduce test-program for System V standardized IPC syscalls.
Jun 16 2018, 6:53 AM
aniketp created D15848: Introduce test-program for System V standardized IPC syscalls.
Jun 16 2018, 6:52 AM
aniketp updated the diff for D15843: audit(4): Add tests for bind(2), bindat(2) and listen(2).

Correct the regex for socket_failure test-case

Jun 16 2018, 5:58 AM
aniketp created D15843: audit(4): Add tests for bind(2), bindat(2) and listen(2).
Jun 16 2018, 5:55 AM
aniketp created D15842: Add tests for syscalls concerned with retrieving configurable pathname variables.
Jun 16 2018, 4:42 AM
aniketp added a comment to D15751: Add a single test-program for praudit(1) utility.

No @asomers ,
In its current form it passes smoothly:

praudit_test:praudit_sync_to_next_record  ->  passed  [0.027s]
Jun 16 2018, 2:05 AM

Jun 15 2018

aniketp retitled D15751: Add a single test-program for praudit(1) utility from Add a single test-case for praudit(1) utility to Add a single test-program for praudit(1) utility.
Jun 15 2018, 4:44 PM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Update the test case description

Jun 15 2018, 4:42 PM
aniketp created D15825: Add tests for syscalls used for modifying the ownership of file.
Jun 15 2018, 4:38 PM
aniketp updated the diff for D15803: Introduce test-program for network socket system calls.

Update the tests with regards to above comments

Jun 15 2018, 4:20 PM

Jun 14 2018

aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Add a description on the intent of testing the -p option

Jun 14 2018, 4:29 PM
aniketp created D15808: audit(4): Syscalls to check the accessibility of a file.
Jun 14 2018, 4:23 PM
aniketp updated the diff for D15803: Introduce test-program for network socket system calls.

Add the network source file which was accidentally missed in previous revision

Jun 14 2018, 3:22 PM
aniketp updated the diff for D15803: Introduce test-program for network socket system calls.

Rebase after rS335145

Jun 14 2018, 3:20 PM
aniketp created D15805: audit(4): Syscalls dealing with change of a file-mode.
Jun 14 2018, 3:12 PM
aniketp updated the diff for D15803: Introduce test-program for network socket system calls.

Correct Makefile:

ATF_TESTS_C= file-attribute-modify   -> ATF_TESTS_C+= file-attribute-modify
Jun 14 2018, 2:52 PM
aniketp created D15803: Introduce test-program for network socket system calls.
Jun 14 2018, 2:41 PM
aniketp added a comment to D15798: audit(4): Syscalls dealing with file access via file-handles.

@asomers, I'm adding these tests on top of already existing tests in file-attribute-access. Why would updating the Makefile be necessary here?

Jun 14 2018, 2:33 PM
aniketp updated the diff for D15798: audit(4): Syscalls dealing with file access via file-handles.

Replace uninitialized buffers with NULL for the failure cases

Jun 14 2018, 2:06 PM
aniketp added inline comments to D15798: audit(4): Syscalls dealing with file access via file-handles.
Jun 14 2018, 1:50 PM
aniketp created D15798: audit(4): Syscalls dealing with file access via file-handles.
Jun 14 2018, 4:54 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Remove the normal praudit atf_check assertion in the praudit_sync_to_next_record test-case

Jun 14 2018, 3:19 AM
aniketp retitled D15797: Correct formatting of open(2) test-case generator macro from Close file descriptors for statfs(2) and fstatfs(2) success case to Correct formatting of open(2) test-case generator macro.
Jun 14 2018, 3:01 AM
aniketp updated the diff for D15795: Initialize file-attribute-modify audit class.

Replace F_DUPFD with F_GETFL as the cmd
Note: This eliminates the need of LOWEST_FD

Jun 14 2018, 3:01 AM
aniketp updated the diff for D15797: Correct formatting of open(2) test-case generator macro.

Correct formatting of open(2) test-case generator macro

Jun 14 2018, 2:47 AM
aniketp abandoned D15797: Correct formatting of open(2) test-case generator macro.
Jun 14 2018, 2:44 AM
aniketp created D15797: Correct formatting of open(2) test-case generator macro.
Jun 14 2018, 2:42 AM
aniketp updated the summary of D15795: Initialize file-attribute-modify audit class.
Jun 14 2018, 2:29 AM
aniketp created D15795: Initialize file-attribute-modify audit class.
Jun 14 2018, 2:09 AM

Jun 13 2018

aniketp updated the diff for D15750: audit(4): Syscalls dealing with {mounted/unmounted} file system statistics.

Include missing headers and struct statfs declaration

Jun 13 2018, 11:12 PM
aniketp updated the diff for D15750: audit(4): Syscalls dealing with {mounted/unmounted} file system statistics.

Close file descriptor for statfs(2) and fstatfs(2) success case

Jun 13 2018, 10:57 PM
aniketp added inline comments to D15751: Add a single test-program for praudit(1) utility.
Jun 13 2018, 3:40 PM
aniketp updated the diff for D15782: Fix the file-descriptor resource leakage as reported by Coverty.

Invert the closing of file descriptors for open and openat following LIFO rule

Jun 13 2018, 3:31 PM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Update praudit_sync_to_next_record test case

Jun 13 2018, 6:56 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Update praudit's flag '-p': Earlier the tests were failing

Jun 13 2018, 6:48 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Add a test case for -p option which is used with tail(1)

  • I had missed the corrupted record earlier
Jun 13 2018, 6:09 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Add a test case for -p option which is used with tail(1)

Jun 13 2018, 6:07 AM
aniketp updated the diff for D15782: Fix the file-descriptor resource leakage as reported by Coverty.

Remove backslash formatting from open(2)'s test program macro
[Unrelated to this revision]

Jun 13 2018, 5:20 AM
aniketp added a comment to D15702: Correct the bit-value of ARG_TERMID_ADDR in sys/security/audit/audit-private.h.

@asomers can this be landed? I've confirmed the successful regression test for ptrace(2) after changing the bit value and rebuilding the kernel. (Rest of the syscalls you mentioned are not auditable in FreeBSD)

Jun 13 2018, 3:47 AM
aniketp added a comment to D15750: audit(4): Syscalls dealing with {mounted/unmounted} file system statistics.

@asomers I'll rebase this file after D15782 is committed. Since both revisions change the file: file-attribute-access.

Jun 13 2018, 3:39 AM
aniketp added inline comments to D15782: Fix the file-descriptor resource leakage as reported by Coverty.
Jun 13 2018, 3:32 AM
aniketp updated the diff for D15782: Fix the file-descriptor resource leakage as reported by Coverty.

Remove ATF_REQUIRE_EQ assertion from close() statements (and the comments)

Jun 13 2018, 3:26 AM

Jun 12 2018

aniketp updated the summary of D15782: Fix the file-descriptor resource leakage as reported by Coverty.
Jun 12 2018, 8:01 PM
aniketp created D15782: Fix the file-descriptor resource leakage as reported by Coverty.
Jun 12 2018, 8:00 PM

Jun 11 2018

aniketp abandoned D15681: Initialize "ar_errno" and "ar_retval" fields of struct audit_record to 0.
Jun 11 2018, 1:36 PM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.
  • Replace the audit startup trail with socket(2) trail
  • Improvements in the raw_short_exclusive description
Jun 11 2018, 10:32 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.

Update the praudit_raw_short_exclusive's description

Jun 11 2018, 2:29 AM
aniketp updated the diff for D15751: Add a single test-program for praudit(1) utility.
  • Add a test for praudit exclusivity for 'r' and 's' arguments
  • Separate the test cases from one another
Jun 11 2018, 2:25 AM
aniketp updated the diff for D15750: audit(4): Syscalls dealing with {mounted/unmounted} file system statistics.

Replace regex with extregex

Jun 11 2018, 12:09 AM

Jun 10 2018

aniketp created D15751: Add a single test-program for praudit(1) utility.
Jun 10 2018, 11:36 PM
aniketp created D15750: audit(4): Syscalls dealing with {mounted/unmounted} file system statistics.
Jun 10 2018, 10:50 PM
aniketp added a comment to D15709: Add tests for stat(2), fstat(2), lstat(2), fstatat(2) of "fa" audit class.

I was thinking of adding these system calls in batches. Currently there are about 25 system calls in this class, so as to ease the process of reviewing, I included only the stat family to get the process started.

Jun 10 2018, 5:00 PM

Jun 9 2018

aniketp created D15709: Add tests for stat(2), fstat(2), lstat(2), fstatat(2) of "fa" audit class.
Jun 9 2018, 12:22 AM

Jun 8 2018

aniketp updated the diff for D15702: Correct the bit-value of ARG_TERMID_ADDR in sys/security/audit/audit-private.h.

Remove the typo corrections from this review.

Jun 8 2018, 6:34 PM
aniketp retitled D15681: Initialize "ar_errno" and "ar_retval" fields of struct audit_record to 0 from Set ar_errno as BSM_ERRNO_ESUCCESS for execve(2) and fexecve(2) on success to Initialize "ar_errno" and "ar_retval" fields of struct audit_record to 0.
Jun 8 2018, 4:06 AM
aniketp updated the diff for D15681: Initialize "ar_errno" and "ar_retval" fields of struct audit_record to 0.

Place the initialisation of ar_errno and ar_retval in audit.c instead of audit_bsm.c
Also, move the typo corrections to D15702

Jun 8 2018, 4:04 AM
aniketp updated the diff for D15702: Correct the bit-value of ARG_TERMID_ADDR in sys/security/audit/audit-private.h.

Typo correction in audit.c: covert -> convert

Jun 8 2018, 3:56 AM
aniketp created D15702: Correct the bit-value of ARG_TERMID_ADDR in sys/security/audit/audit-private.h.
Jun 8 2018, 3:50 AM

Jun 6 2018

aniketp created D15681: Initialize "ar_errno" and "ar_retval" fields of struct audit_record to 0.
Jun 6 2018, 10:01 PM
aniketp added inline comments to D15669: Add tests for execve(2) and fexecve(2) in "ex" audit class.
Jun 6 2018, 5:20 PM

Jun 5 2018

aniketp updated the summary of D15669: Add tests for execve(2) and fexecve(2) in "ex" audit class.
Jun 5 2018, 9:12 PM
aniketp created D15669: Add tests for execve(2) and fexecve(2) in "ex" audit class.
Jun 5 2018, 8:49 PM
aniketp updated the diff for D15657: audit(4): Add tests for all audit events of open(2) and openat(2).

Update the test case description format

Jun 5 2018, 7:39 PM
aniketp updated the diff for D15657: audit(4): Add tests for all audit events of open(2) and openat(2).

Stringify the 'flag' macro argument using # preprocessing operator

Jun 5 2018, 6:49 PM
aniketp updated the diff for D15657: audit(4): Add tests for all audit events of open(2) and openat(2).
  • Correct the format specifier of flag in test case description

No functional change

Jun 5 2018, 1:57 AM
aniketp updated the diff for D15657: audit(4): Add tests for all audit events of open(2) and openat(2).
  • Formatting corrections
Jun 5 2018, 1:48 AM
aniketp updated the diff for D15657: audit(4): Add tests for all audit events of open(2) and openat(2).
  • Include the specific regexes for individual audit events
Jun 5 2018, 1:46 AM