MAN page from OpenSuSE libsepol-devel-2.1.9-51.40.x86_64.rpm
sepol_check_context
Section: SE Linux binary policy API documentation (3)
Updated: 15 March 2005
Index NAME
sepol_check_context - Check the validity of a security context against a binary policy.
SYNOPSIS
#include <sepol/sepol.h>int sepol_check_context(const char *context);
int sepol_set_policydb_from_file(FILE *fp);
DESCRIPTION
sepol_check_contextchecks the validity of a security context against a binary policypreviously loaded from a file via
sepol_set_policydb_from_file.It is used by
setfiles -cto validate a file contexts configuration against the binary policyupon policy builds. For validating a context against the activepolicy on a SELinux system, use
security_check_contextfrom libselinux instead.
RETURN VALUE
Returns 0 on success or -1 with errno set otherwise.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUE
This document was created byman2html,using the manual pages.