2008-08-19 19:30:36 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2022-05-05 17:44:01 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
2008-08-19 19:30:36 +00:00
|
|
|
#include <selinux/selinux.h>
|
|
|
|
|
|
|
|
int main(int argc __attribute__ ((unused)), char **argv)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = security_policyvers();
|
|
|
|
if (rc < 0) {
|
2022-05-05 17:44:01 +00:00
|
|
|
fprintf(stderr, "%s: security_policyvers() failed: %s\n", argv[0], strerror(errno));
|
2008-08-19 19:30:36 +00:00
|
|
|
exit(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
printf("%d\n", rc);
|
2019-05-10 17:10:37 +00:00
|
|
|
exit(EXIT_SUCCESS);
|
2008-08-19 19:30:36 +00:00
|
|
|
}
|