[Bug 1420] BSM support on Mac OS X

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Dec 22 01:23:45 EST 2007


https://bugzilla.mindrot.org/show_bug.cgi?id=1420





--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  2007-12-22 01:23:43 ---
(From update of attachment 1417)

>+#if defined(__APPLE__)
>+	/* don't have a aug_get_machine */
>+	tid->at_addr[0] = inet_addr(host);
>+	tid->at_type = 0;
>+	snprintf(buf, sizeof(buf), "%08x", tid->at_addr[0]);
>+	debug3("BSM audit: machine ID %s", buf);

A cleaner way to do this is implement aug_get_machine as a static
function in this file, and activate it based on the presence (or not)
of aug_get_machine.  I believe FreeBSD would also benefit from this.

I will post an alternative patch.

>-		AC_CHECK_FUNCS(getaudit_addr)
>+		AC_CHECK_FUNCS(getaudit_addr,
>+				[
>+				case "$host" in
>+				*-*-darwin7* | *-*-darwin8*)
>+					AC_MSG_CHECKING(for getaudit_addr usability)
>+					AC_MSG_RESULT(no)
>+					;;
>+					*) AC_DEFINE(HAVE_GETAUDIT_ADDR,

Could you please explain why this is needed?  darwin7 and darwin8 have
a getaudit_addr but it doesn't work?

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list