Date: Mon, 9 Oct 2006 19:33:39 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 107563 for review Message-ID: <200610091933.k99JXdOs092226@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=107563 Change 107563 by millert@millert_g5tower on 2006/10/09 19:32:51 Must initialize buf_len before call to sysctlbyname(). Affected files ... .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libselinux/src/canonicalize_context.c#3 edit .. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libselinux/src/check_context.c#3 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libselinux/src/canonicalize_context.c#3 (text+ko) ==== @@ -16,6 +16,7 @@ ssize_t con_len; int ret = -1; + buf_len = sizeof(buf); con_len = strlen(con) + 1; ret = sysctlbyname("security.mac.sebsd.canon_context", buf, &buf_len, con, con_len); ==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/libselinux/src/check_context.c#3 (text+ko) ==== @@ -16,6 +16,7 @@ int ret; /* Just check validity, don't care about returned buffer. */ + buf_len = sizeof(buf); con_len = strlen(con) + 1; ret = sysctlbyname("security.mac.sebsd.canon_context", buf, &buf_len, con, con_len);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610091933.k99JXdOs092226>