Research
Skip Research Menus
Research MenuSecurity Enhanced Linux What's New Frequently Asked Questions Background Documents License Download Participating Mail List Archives Remaining Work Contributors Related Work Press Releases Information Assurance Research NIARL In-house Research Areas Mathematical Sciences Program Sabbaticals Computer & Information Sciences Research Technology Transfer Advanced Computing Advanced Mathematics Communications & Networking Information Processing Microelectronics Other Technologies Technology Fact Sheets Publications Related Links |
SELinux Mailing ListRe: [PATCH 1/4] make newrole suid
From: Michael C Thompson <thompsmc_at_us.ibm.com>
Date: Tue, 10 Oct 2006 16:44:41 -0500
> On Tue, 2006-10-10 at 16:27 -0400, Stephen Smalley wrote: >> xstrdup by definition exits on OOM errors, so you don't have to re-test >> here, or alternatively you don't need to use xstrdup in the first place >> (vs. just plain strdup). > > Ok, I see that in patch 3, you drop the exit call from xstrdup. Which I > think is a mistake - xmalloc/xstrdup-style functions typically mean > "succeed or exit". Right, I can see that now. I'll admit ignorance: I wasn't aware that was what the x prefix meant - I've never used that naming style before. I would rather not exit mid-code, so I'll change the use to be strdup and perform the checks.
Thanks,
-- 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.Received on Tue 10 Oct 2006 - 17:44:46 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |