1 #include <unistd.h> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <selinux/selinux.h> 5 6 int main(int argc __attribute__ ((unused)), char **argv) 7 { 8 int rc; 9 10 rc = security_policyvers(); 11 if (rc < 0) { 12 fprintf(stderr, "%s: policyvers() failed\n", argv[0]); 13 exit(2); 14 } 15 16 printf("%d\n", rc); 17 exit(0); 18 } 19