* Store a path as given by the user process for auditing into the audit * record stored on the user thread. This function will allocate the memory * to store the path info if not already available. This memory will be * freed when the audit record is freed. The path is canonlicalised with * respect to the thread and directory descriptor passed. */
| 733 | * respect to the thread and directory descriptor passed. |
| 734 | */ |
| 735 | static void |
| 736 | audit_arg_upath(struct thread *td, int dirfd, char *upath, char **pathp) |
| 737 | { |
| 738 | |
| 739 | if (*pathp == NULL) |
| 740 | *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); |
| 741 | audit_canon_path(td, dirfd, upath, *pathp); |
| 742 | } |
| 743 | |
| 744 | void |
| 745 | audit_arg_upath1(struct thread *td, int dirfd, char *upath) |
no test coverage detected