Date: Fri, 19 Dec 2008 11:55:06 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 154990 for review Message-ID: <200812191155.mBJBt67V092285@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154990 Change 154990 by rwatson@rwatson_cinnamon_macosx on 2008/12/19 11:54:36 Only use ASL access control tags if they are defined in the build environment; arguably we should detect them with configure...? This allows OpenBSM to build on Leopard again. Affected files ... .. //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#2 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#2 (text+ko) ==== @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#1 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#2 $ */ #include <sys/types.h> @@ -103,6 +103,7 @@ au_aslclient = asl_open("auditd", "org.trustedbsd.auditd", opt); au_aslmsg = asl_new(ASL_TYPE_MSG); +#ifdef ASL_KEY_READ_UID /* * Make it only so the audit administrator and members of the audit * review group (if used) have access to the auditd system log messages. @@ -110,9 +111,12 @@ asl_set(au_aslmsg, ASL_KEY_READ_UID, "0"); asprintf(&cp, "%u", gid); if (cp != NULL) { +#ifdef ASL_KEY_READ_GID asl_set(au_aslmsg, ASL_KEY_READ_GID, cp); +#endif free(cp); } +#endif /* * Set the client-side system log filtering.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812191155.mBJBt67V092285>