1 #include <unistd.h> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <selinux/selinux.h> 5 main(int argc,char ** argv)6int 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(EXIT_SUCCESS); 18 } 19