mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-12-14 23:18:38 +00:00
19 lines
319 B
C
19 lines
319 B
C
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <selinux/selinux.h>
|
|
|
|
int main(int argc __attribute__ ((unused)), char **argv)
|
|
{
|
|
int rc;
|
|
|
|
rc = security_policyvers();
|
|
if (rc < 0) {
|
|
fprintf(stderr, "%s: policyvers() failed\n", argv[0]);
|
|
exit(2);
|
|
}
|
|
|
|
printf("%d\n", rc);
|
|
exit(EXIT_SUCCESS);
|
|
}
|