Chris PeBenito 473ea7
#include <unistd.h>
Chris PeBenito 473ea7
#include <stdio.h>
Chris PeBenito 473ea7
#include <stdlib.h>
Chris PeBenito 473ea7
#include <selinux/selinux.h>
Chris PeBenito 473ea7
Chris PeBenito 473ea7
int main(int argc __attribute__((unused)), char **argv) 
Chris PeBenito 473ea7
{
Chris PeBenito 473ea7
	int rc;
Chris PeBenito 473ea7
Chris PeBenito 473ea7
	rc = security_policyvers();
Chris PeBenito 473ea7
	if (rc < 0) {
Chris PeBenito 473ea7
		fprintf(stderr, "%s:  policyvers() failed\n", argv[0]);
Chris PeBenito 473ea7
		exit(2);
Chris PeBenito 473ea7
	}
Chris PeBenito 473ea7
Chris PeBenito 473ea7
	printf("%d\n", rc);
Chris PeBenito 473ea7
	exit(0);
Chris PeBenito 473ea7
}