* fix for segfault in getconlist of libselinux-1.22
@ 2005-04-03 17:36 Andreas Steinmetz
2005-04-04 15:30 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Steinmetz @ 2005-04-03 17:36 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 132 bytes --]
fix for segfault in case of non-exisiting user attached.
--
Andreas Steinmetz SPAMmers use robotrap@domdv.de
[-- Attachment #2: libselinux-1.22.diff --]
[-- Type: text/plain, Size: 551 bytes --]
diff -rNu libselinux-1.22.orig/utils/getconlist.c libselinux-1.22/utils/getconlist.c
--- libselinux-1.22.orig/utils/getconlist.c 2004-11-01 15:21:46.000000000 +0100
+++ libselinux-1.22/utils/getconlist.c 2005-03-29 13:13:13.000000000 +0200
@@ -38,10 +38,12 @@
/* Get the list and print it */
ret = get_ordered_context_list(argv[1], cur_context, &list);
- for (i = 0; list[i]; i++)
- puts (list[i]);
+ if(ret != -1) {
+ for (i = 0; list[i]; i++)
+ puts (list[i]);
+ freeconary(list);
+ }
- freeconary(list);
free(usercon);
return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fix for segfault in getconlist of libselinux-1.22
2005-04-03 17:36 fix for segfault in getconlist of libselinux-1.22 Andreas Steinmetz
@ 2005-04-04 15:30 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2005-04-04 15:30 UTC (permalink / raw)
To: Andreas Steinmetz; +Cc: selinux
On Sun, 2005-04-03 at 19:36 +0200, Andreas Steinmetz wrote:
> fix for segfault in case of non-exisiting user attached.
Thanks, merged as of libselinux 1.23.4.
--
Stephen Smalley <sds@tycho.nsa.gov>
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-04 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-03 17:36 fix for segfault in getconlist of libselinux-1.22 Andreas Steinmetz
2005-04-04 15:30 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.