diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2014-07-09 13:25:56 -0400 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2014-07-09 13:49:18 -0400 |
commit | 76913d8adb61b5afe28fd3b4ce91feab29e284dd (patch) | |
tree | b7fe92298f867fe19414e5cbfd5fccfbe82b62f9 /libselinux/src/checkAccess.c | |
parent | ac33098a807671204720aae97d6bcf6429d3fa92 (diff) | |
download | android_external_selinux-76913d8adb61b5afe28fd3b4ce91feab29e284dd.tar.gz android_external_selinux-76913d8adb61b5afe28fd3b4ce91feab29e284dd.tar.bz2 android_external_selinux-76913d8adb61b5afe28fd3b4ce91feab29e284dd.zip |
Deprecate use of flask.h and av_permissions.h.
Also remove all internal uses by libselinux.
This requires deleting the old class/perm string lookup tables
and compatibility code for kernels that predate the /sys/fs/selinux/class
tree, i.e. Linux < 2.6.23.
This also fixes a longstanding bug in the stringrep code; it was allocating
NVECTORS (number of vectors in the legacy av_perm_to_string table, i.e.
the total number of legacy permissions) entries in the per-class perms array
rather than MAXVECTORS (the maximum number of permissions in any
access vector). Ho hum. I already fixed this in Android but forgot it
here.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'libselinux/src/checkAccess.c')
-rw-r--r-- | libselinux/src/checkAccess.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libselinux/src/checkAccess.c b/libselinux/src/checkAccess.c index cd2a8178..ee85ebc5 100644 --- a/libselinux/src/checkAccess.c +++ b/libselinux/src/checkAccess.c @@ -4,9 +4,7 @@ #include <stdlib.h> #include <errno.h> #include "selinux_internal.h" -#include <selinux/flask.h> #include <selinux/avc.h> -#include <selinux/av_permissions.h> #include "avc_internal.h" static pthread_once_t once = PTHREAD_ONCE_INIT; |