Commit Graph

4 Commits

Author SHA1 Message Date
Steve Lawrence
21864a7ea6 Change extended avrules to be more similar to normal avrules
- 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>
2016-03-21 10:57:21 -04:00
Nicolas Iooss
6be638327f Cast the return value to non-const void in ebitmap_state_get_cur_polcap
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.
2014-11-02 13:02:59 -05:00
Nicolas Iooss
ce8323954d Remove unused-by-set variables
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;
                  ^
2014-11-02 13:02:58 -05:00
Chris PeBenito
8363f8edf7 Import libqpol from setools3.
Break setools3 dependence. Also fix SWIG wrapper to work with SWIG 2.x.
2014-10-24 21:00:24 -04:00