- Add an iterator to extract the extended permissions rather than
returning only a string
- Add queries for determining if an avrule is extended, and what its
type the extended avrule is (e.g. ioctl)
- Removed tests, but should probably revert that change and make sure
they still work
- Fixed some warnings about unsigned/signed comparisons with ebitmaps
- Updates seinfo and sesearch to support new extended avrule changes
Signed-off-by: Steve Lawrence <slawrence@tresys.com>
libqpol' hashtable iterator uses non-const data, so
ebitmap_state_get_cur_polcap needs to return a "void *" out of a "const
char *".
This fixes the following gcc warning:
libqpol/iterator.c: In function 'ebitmap_state_get_cur_polcap':
libqpol/iterator.c:653:2: warning: return discards 'const' qualifier
from pointer target type
return sepol_polcap_getname(es->cur);
^
This also adds a warning from "gcc -Wcast-qual" but compiling with this
switch leads to way more warnings.
This fixes gcc warnings like:
libqpol/avrule_query.c: In function 'qpol_avrule_get_perm_iter':
libqpol/avrule_query.c:159:14: warning: variable 'db' set but not used
[-Wunused-but-set-variable]
policydb_t *db = NULL;
^