History log of /external/selinux/policycoreutils/sestatus/sestatus.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5c0d7113de359a362792801463918c406f4a6210 05-Feb-2013 Eric Paris <eparis@redhat.com> 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>
/external/selinux/policycoreutils/sestatus/sestatus.c
3e870d7c9b4c5ff90e42f0ecb5b250452499547c 28-Nov-2011 Richard Haines <richard_c_haines@btinternet.com> policycoreutils: sestatus: Updated sestatus and man pages.

sestatus has been modified to present additional information: SELinux root
directory, MLS flag and the deny_unknow flag. The man page has been updated
to reflect these changes and an sestatus.conf(5) man page has also been added.

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
/external/selinux/policycoreutils/sestatus/sestatus.c
13cd4c8960688af11ad23b4c946149015c80d549 19-Aug-2008 Joshua Brindle <method@manicmethod.com> initial import from svn trunk revision 2950
/external/selinux/policycoreutils/sestatus/sestatus.c