On Thu, Jul 23, 2020 at 6:41 PM Mike Palmiotto <mike.palmiotto@xxxxxxxxxxxxxxx> wrote: > > On Thu, Jul 23, 2020 at 6:38 PM Mike Palmiotto > <mike.palmiotto@xxxxxxxxxxxxxxx> wrote: > > diff --git a/libselinux/src/sestatus.c b/libselinux/src/sestatus.c > > index 86267ff8..cbc7dbbe 100644 > > --- a/libselinux/src/sestatus.c > > +++ b/libselinux/src/sestatus.c > > @@ -316,6 +326,23 @@ error: > > return -1; > > } > > > > +/* > > + * selinux_status_loop > > + * > > + * Run routine for checking kernel status page in a listening thread. > > + * Falls back on netlink socket in the event of failure to open status page. > > + */ > > +void selinux_status_loop(void) > > +{ > > + /* Check kernel status page until error occurs */ > > + while (selinux_status_updated() >= 0) > > + ; Also please fix the indentation before the semicolon above.