On 5/25/2017 2:52 PM, Stephen Smalley wrote: > On Wed, 2017-05-24 at 17:18 +0300, Dan Jurgens wrote: >> From: Daniel Jurgens <danielj@xxxxxxxxxxxx> >> >> +corenet_ib_pkey(test_ibpkey_t) >> +corenet_ib_access_unlabeled_pkeys(test_ibpkey_access_t) > This will break the build on current Fedora and RHEL. > So, you can either conditionalize inclusion of test_ibpkey.te in the > Makefile (see other examples already there) so that it is omitted > entirely if refpolicy lacks the requisite support, or wrap these > interface calls with suitable ifdefs, e.g. > ifdef(`corenet_ib_pkey', ` > corenet_ib_pkey(test_ibpkey_t) > ') > ... > > Probably the latter is best so that we get at least some build testing. Done, with ifdefs. >> + >> >> +TARGETS=create_modify_qp >> + >> +LDLIBS+= -libverbs > This is a new build dependency (libibverbs-devel), which should be > listed in the README. Done > >> +int init_ib_rsrc(char* deviceName) >> +{ >> + int ndev = 0; >> + struct ibv_device **dlist = ibv_get_device_list(&ndev); >> + struct ibv_device *device = NULL;; >> + struct ibv_srq_init_attr srqiattr; >> + struct ibv_qp_init_attr qpiattr; >> + int i; >> + >> + if (!ndev) >> + { > Can you run these test programs through > astyle --options=none --lineend=linux --mode=c --style=linux -- > indent=force-tab=8 --indent-preprocessor --indent-col1-comments --min- > conditional-indent=0 --max-instatement-indent=80 --pad-oper --align- > pointer=name --align-reference=name --max-code-length=80 --break-after- > logical Done.