[Open-scap] system_info patch to run as 64-bit on solaris.

Jacob Varughese jacob.varughese at oracle.com
Thu Jun 25 22:33:21 UTC 2015


Modified the patch.

On 06/25/15 02:26 PM, Jan Ruzicka wrote:
> Invisible changes are in tab replacing spaces.
>
> Jan R.
>
> -----Original Message-----
> From: open-scap-list-bounces at redhat.com [mailto:open-scap-list-bounces at redhat.com] On Behalf Of Martin Preisler
> Sent: Thursday, June 25, 2015 3:25 PM
> To: Jacob Varughese
> Cc: open-scap-list at redhat.com
> Subject: Re: [Open-scap] system_info patch to run as 64-bit on solaris.
>
> ----- Original Message -----
>> From: "Jacob Varughese" <jacob.varughese at oracle.com>
>> To: open-scap-list at redhat.com
>> Sent: Thursday, June 25, 2015 8:08:25 PM
>> Subject: [Open-scap] system_info patch to run as 64-bit on solaris.
>>
>> Hi All,
>> Attached is a patch for systeminfo probe on solaris. Please review.
> It's a one-line change but the patch contains 2 hunks. The second hunk replaces text with identical text. The first hunk replaces 2 lines but only one line needs to be replaced.
>
> Or it's too late and I am missing something?
>
> --
> Martin Preisler
> Security Technologies | Red Hat, Inc.
>
> _______________________________________________
> Open-scap-list mailing list
> Open-scap-list at redhat.com
> https://www.redhat.com/mailman/listinfo/open-scap-list
>
> NOTICE TO RECIPIENT: This email, including attachments, may contain information which is confidential, proprietary, attorney-client privileged and/or controlled under U.S. export laws and regulations and may be restricted from disclosure by applicable State and Federal law. Nothing in this email shall create any legal binding agreement between the parties unless expressly stated herein and provided by an authorized representative of Comtech Telecommunications Corp. or its subsidiaries. If you are not the intended recipient of this message, be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify us immediately by return email and permanently delete all copies of the original email and any attached documentation from any computer or other media.

-------------- next part --------------
>From c830176ecbfa55a8091257e347578abbe2b5a096 Mon Sep 17 00:00:00 2001
From: Jacob Varughese <jacob.varughese at oracle.com>
Date: Thu, 25 Jun 2015 15:28:39 -0700
Subject: [PATCH] Fixed patch for system_info on solaris.

---
 src/OVAL/probes/independent/system_info.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/OVAL/probes/independent/system_info.c b/src/OVAL/probes/independent/system_info.c
index 1abb83d..e7ee11b 100644
--- a/src/OVAL/probes/independent/system_info.c
+++ b/src/OVAL/probes/independent/system_info.c
@@ -135,7 +135,7 @@ static int fd=-1;
 static char *get_mac(const struct ifaddrs *ifa)
 {
        struct lifreq lifr;
-	uint_t physaddrlen = DLPI_PHYSADDR_MAX;
+	size_t physaddrlen = DLPI_PHYSADDR_MAX;
 	uchar_t physaddr[DLPI_PHYSADDR_MAX];
 	static char mac_buf[DLPI_PHYSADDR_MAX];
 	char *str;
-- 
1.7.9.2



More information about the Open-scap-list mailing list