selinux/libselinux/utils
Richard Haines bc1a8e2a4a libselinux: selinux_file_context_verify function returns wrong value.
selinux_file_context_verify(3) should now return the correct codes and
matchpathcon(8) has been modified to handle them.

The selinux_file_context_verify(3)and selinux_file_context_cmp(3) man pages
have also been updated (re-written really) to correct return codes.

I found that selabel_open left errno set to ENOENT because a
file_contexts.subs file did not exist on my system, but left selabel_open
alone and set errno = 0 before calling selinux_filecontext_cmp.

[fix uninitialize init variable in matchpathcon.c::main - eparis]
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2011-08-26 14:27:51 -04:00
..
.gitignore libselinux: move .gitignore into utils 2011-08-02 13:33:52 -04:00
Makefile Author: Daniel J Walsh 2009-05-07 16:05:05 -04:00
avcstat.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_av.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_create.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_member.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_relabel.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
compute_user.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getconlist.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getdefaultcon.c Author: Daniel J Walsh 2009-05-14 15:43:18 -04:00
getenforce.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getfilecon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getpidcon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getsebool.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
getseuser.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
matchpathcon.c libselinux: selinux_file_context_verify function returns wrong value. 2011-08-26 14:27:51 -04:00
policyvers.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinux_check_securetty_context.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinuxenabled.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
selinuxexeccon.c libselinux: new setexecon utility 2011-08-02 13:33:35 -04:00
setenforce.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
setfilecon.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
togglesebool.c initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00