Commit Graph

10 Commits

Author SHA1 Message Date
Jiri Popelka
dd69faff4d Coverity: Check return value of getfilecon().
Error: CHECKED_RETURN:
patch-2.6.1/src/pch.c:736: check_return: Calling function "getfilecon" without checking return value (as is done elsewhere 4 out of 5 times).
patch-2.6.1/src/inp.c:158: example_checked: "getfilecon(inname, &incontext)" has its value checked in "getfilecon(inname, &incontext) == -1".
patch-2.6.1/src/patch.c:434: example_checked: "getfilecon(outname, &outcontext)" has its value checked in "getfilecon(outname, &outcontext) != -1".
patch-2.6.1/src/pch.c:292: example_checked: "getfilecon(inname, &incontext)" has its value checked in "getfilecon(inname, &incontext) == -1".
patch-2.6.1/src/util.c:603: example_checked: "getfilecon(filename, filecontext)" has its value checked in "getfilecon(filename, filecontext) == -1".
patch-2.6.1/src/pch.c:736: unchecked_value: No check of the return value of "getfilecon(inname, &incontext)".
2011-05-16 15:10:11 +01:00
Tim Waugh
68f90bed20 Applied upstream patch to fix CVE-2010-4651 (bug #667529). 2011-02-08 11:35:21 +00:00
Tim Waugh
1151a30aca Another fix for the selinux patch (bug #618215). 2010-08-16 17:44:01 +01:00
Tim Waugh
35f37f091c Fixed interpretation of return value from getfilecon(). 2010-08-06 17:14:38 +01:00
Tim Waugh
4c70b2adff - 2.6. No longer need stderr, suffix, stripcr, parse, allow-spaces, ifdef,
program_name, or posix-backup patches.
2009-11-16 17:08:44 +00:00
Tim Waugh
9389e191f1 - Fixed operation when SELinux is disabled (bug #498102). Patch from Jan
Kratochvil.
2009-04-29 16:39:13 +00:00
Tim Waugh
ffc4fff55b - Don't set SELinux file context if it is already correct. 2009-02-17 15:36:59 +00:00
Tim Waugh
b4bd8d00d9 - Don't fail if setfilecon() returns EPERM (bug #453365), although the
setfilecon man page suggests that ENOTSUP will be returned in this
    case.
2008-06-30 12:02:59 +00:00
Tim Waugh
638a40acb1 - Fix selinux patch and apply it. 2008-06-12 10:14:43 +00:00
Tim Waugh
3db410989d - Beginnings of an SELinux patch (bug #165799); not applied yet. 2007-10-04 16:05:37 +00:00