selinux/libselinux
Stephen Smalley 914e591c41 libselinux: fix audit2why error handling if SELinux is disabled.
If SELinux is disabled, then selinux_current_policy_path() returns NULL.
At present, if you run audit2allow on a SELinux-disabled host without
the -p option, you get:
unable to open (null):  Bad address

We haven't seen this because most people running audit2allow are doing
it on SELinux-enabled hosts and using the host policy.  But for Android,
the build host OS often has SELinux disabled and we need to pass audit2allow
the path to the Android policy.  Handle this case and provide a hint to
the user.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2015-02-13 10:15:34 -05:00
..
include Deprecate use of flask.h and av_permissions.h. 2014-07-09 13:49:18 -04:00
man libselinux: man: Add missing manpage links to security_load_policy.3 2014-09-02 08:31:15 -04:00
src libselinux: fix audit2why error handling if SELinux is disabled. 2015-02-13 10:15:34 -05:00
utils libselinux: fix gcc -Wsign-compare warnings 2014-10-02 09:56:11 -04:00
ChangeLog Update libselinux and libsepol ChangeLogs. 2015-02-03 11:25:41 -05:00
LICENSE
Makefile libselinux: Refactor rpm_execcon() into a new setexecfilecon() 2014-01-06 14:06:03 -05:00
VERSION Bump to final release 2015-02-02 09:38:10 -05:00