MCPcopy Create free account
hub / github.com/F-Stack/f-stack / audit_arg_upath

Function audit_arg_upath

freebsd/security/audit/audit_arg.c:735–742  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

733 * respect to the thread and directory descriptor passed.
734 */
735static void
736audit_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
744void
745audit_arg_upath1(struct thread *td, int dirfd, char *upath)

Callers 2

audit_arg_upath1Function · 0.85
audit_arg_upath2Function · 0.85

Calls 2

mallocFunction · 0.85
audit_canon_pathFunction · 0.85

Tested by

no test coverage detected