platform_external_selinux/policycoreutils
Eric Paris 5c0d7113de policycoreutils: sestatus: rewrite to shut up coverity
The code did:

len = strlen(string);
new_string = malloc(len);
strncpy(new_string, string, len - 1)

Which is perfectly legal, but it pissed off coverity because 99/100
times if you do new_string = malloc(strlen(string)) you are doing it
wrong (you didn't leave room for the nul).  I rewrote that area to just
use strdup and then to blank out the last character with a nul.  It's
clear what's going on and nothing looks 'tricky'.  It does cost us 1
byte of heap allocation.  I think we can live with that to have safer
looking string handling code.

Signed-off-by: Eric Paris <eparis@redhat.com>
2013-02-05 20:21:51 -05:00
..
.tx policycoreutils: add po file configuration information 2013-02-05 20:14:38 -05:00
audit2allow policycoreutils: sepolgen: return and output constraint violation information 2012-09-12 15:08:56 -04:00
audit2why tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
gui policycoreutils: gui: If you are not able to read enforcemode set it to False 2013-02-05 20:14:47 -05:00
load_policy policycoreutils: load_policy: make link at the destination directory 2013-02-01 12:09:58 -05:00
man policycoreutils: add clean target to man Makefile 2011-12-05 16:11:21 -05:00
mcstrans policycoreutils: mcstrans: add -f to run in foreground 2012-06-28 13:29:23 -04:00
newrole policycoreutils: newrole: do not drop capabilities when newrole is run as root 2012-09-12 12:16:01 -04:00
po policycoreutils: po: update translations 2013-02-05 20:14:49 -05:00
restorecond policycoreutils: restorecond: Add /etc/udpatedb.conf to restorecond.conf 2013-02-05 20:14:48 -05:00
run_init policycoreutils: run_init: If open_init_pty is not available then just use exec 2012-09-12 12:16:01 -04:00
sandbox policycoreutils: seunshare: do checking on setfsuid 2013-02-05 20:14:51 -05:00
scripts policycoreutils: fixfiles: relabel only after specific date 2013-02-05 20:14:49 -05:00
secon policycoreutils: secon: add support for setrans color information in prompt output 2013-02-05 20:14:46 -05:00
semanage policycoreutils: semanage: good error message is sepolgen python module missing 2013-02-05 20:14:42 -05:00
semodule policycoreutils: genhomedircon: regenerate genhomedircon more often 2013-02-05 20:14:48 -05:00
semodule_deps tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_expand tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_link tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
semodule_package policycoreutils: semodule_package: remove semodule_unpackage on clean 2011-11-02 16:22:05 -04:00
sepolgen-ifgen tree: Makefiles: syntax, convert all ${VAR} to $(VAR) 2011-11-02 15:37:08 -04:00
sepolicy policycoreutils: sepolicy: new command to unite small utilities 2013-02-05 20:14:28 -05:00
sestatus policycoreutils: sestatus: rewrite to shut up coverity 2013-02-05 20:21:51 -05:00
setfiles policycoreutils: setfiles: print error if no default label found 2013-02-05 20:14:41 -05:00
setsebool polciycoreutils: setsebool: error when setting multiple options 2012-09-12 12:16:17 -04:00
.gitignore policycoreutils: add po file configuration information 2013-02-05 20:14:38 -05:00
ChangeLog Version bumps for upstream push 2012-09-13 10:33:58 -04:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile policycoreutils: sepolicy: Update Makefiles and po files 2013-02-05 20:14:37 -05:00
VERSION Version bumps for upstream push 2012-09-13 10:33:58 -04:00