logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sepol_check_context - Check the validity of a security context against a binary policy.

Description

sepol_check_context  checks  the validity of a security context against a binary policy previously loaded
       from a file via sepol_set_policydb_from_file.  It is used by setfiles-c  to  validate  a  file  contexts
       configuration  against the binary policy upon policy builds.  For validating a context against the active
       policy on a SELinux system, use security_check_context from libselinux instead.

Name

       sepol_check_context - Check the validity of a security context against a binary policy.

Return Value

       Returns 0 on success or -1 with errno set otherwise.

stephen.smalley.work@gmail.com                    15 March 2005                           sepol_check_context(3)

Synopsis

#include<sepol/sepol.h>intsepol_check_context(constchar*context);intsepol_set_policydb_from_file(FILE*fp);

See Also