All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] libsepol: fix segfault for missing initial sid context
@ 2012-06-12 14:16 Christopher J. PeBenito
  0 siblings, 0 replies; only message in thread
From: Christopher J. PeBenito @ 2012-06-12 14:16 UTC (permalink / raw)
  To: SELinux Mail List

In working with the seandroid policy, I found that if you are missing an initial sid labeling statement, e.g.

sid devnull u:object_r:null_device:s0

the compiler will segfault during expand in context_copy().  This patch set moves the context_copy() to after the switch block in ocontext_copy_*(), and then adds a check in the initial sid case of the switch.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com


--
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] only message in thread

only message in thread, other threads:[~2012-06-12 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-12 14:16 [PATCH 0/2] libsepol: fix segfault for missing initial sid context Christopher J. PeBenito

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.