OwlCyberDefense / setools

setools has moved to https://github.com/SELinuxProject/setools
Other
91 stars 34 forks source link

libqpol runs into issue on Ubuntu 16.04 WSL #185

Closed Dum4G closed 6 years ago

Dum4G commented 6 years ago

Python 3.5 dev and even 2.7, each dependency has been installed and setup.py tweaked according to this guide https://github.com/TresysTechnology/setools/wiki/SETools-4-on-Ubuntu-16.10 Happens on branches 4.0 and 4.1 with both build_ext and just build commands

In file included from libqpol/avrule_query.c:26:0:
libqpol/iterator_internal.h:70:3: error: unknown type name ‘avtab_extended_perms_t’
   avtab_extended_perms_t *xperms;
   ^
libqpol/avrule_query.c: In function ‘qpol_avrule_get_xperm_iter’:
libqpol/avrule_query.c:199:2: error: unknown type name ‘avtab_extended_perms_t’
  avtab_extended_perms_t *xperms = NULL;
  ^
libqpol/avrule_query.c:218:24: error: ‘avtab_datum_t {aka struct avtab_datum}’ has no member named ‘xperms’
  xperms = avrule->datum.xperms;
                        ^
libqpol/avrule_query.c:232:15: error: request for member ‘perms’ in something not a structure or union
  if (!((xperms->perms[0] & 1) && ((xperms->specified & AVTAB_XPERMS_IOCTLDRIVER
               ^
libqpol/avrule_query.c:232:42: error: request for member ‘specified’ in something not a structure or union
  if (!((xperms->perms[0] & 1) && ((xperms->specified & AVTAB_XPERMS_IOCTLDRIVER
                                          ^
libqpol/avrule_query.c:232:56: error: ‘AVTAB_XPERMS_IOCTLDRIVER’ undeclared (first use in this function)
  if (!((xperms->perms[0] & 1) && ((xperms->specified & AVTAB_XPERMS_IOCTLDRIVER
                                                        ^
libqpol/avrule_query.c:232:56: note: each undeclared identifier is reported only once for each function it appears in
libqpol/avrule_query.c:232:91: error: request for member ‘driver’ in something not a structure or union
 0] & 1) && ((xperms->specified & AVTAB_XPERMS_IOCTLDRIVER) || xperms->driver ==
                                                                     ^
libqpol/avrule_query.c: In function ‘qpol_avrule_get_xperm_type’:
libqpol/avrule_query.c:241:2: error: unknown type name ‘avtab_extended_perms_t’
  avtab_extended_perms_t *xperms = NULL;
  ^
libqpol/avrule_query.c:260:24: error: ‘avtab_datum_t {aka struct avtab_datum}’ has no member named ‘xperms’
  xperms = avrule->datum.xperms;
                        ^
libqpol/avrule_query.c:261:12: error: request for member ‘specified’ in something not a structure or union
  if (xperms->specified & AVTAB_XPERMS_IOCTLFUNCTION ||
            ^
libqpol/avrule_query.c:261:26: error: ‘AVTAB_XPERMS_IOCTLFUNCTION’ undeclared (first use in this function)
  if (xperms->specified & AVTAB_XPERMS_IOCTLFUNCTION ||
                          ^
libqpol/avrule_query.c:262:9: error: request for member ‘specified’ in something not a structure or union
   xperms->specified & AVTAB_XPERMS_IOCTLDRIVER) {
         ^
libqpol/avrule_query.c:262:23: error: ‘AVTAB_XPERMS_IOCTLDRIVER’ undeclared (first use in this function)
   xperms->specified & AVTAB_XPERMS_IOCTLDRIVER) {
                       ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Dum4G commented 6 years ago

@pebenito

iamantony commented 6 years ago

See issue https://github.com/TresysTechnology/setools/issues/159. Maybe it will help you.