Section: SELinux API documentation (3)Updated: 21 November 2009Local indexUp
matchpathcon_checkmatches, matchpathcon_filespec_add, matchpathcon_filespec_destroy, matchpathcon_filespec_eval - check and report whether any specification index has no matches with any inode. Maintenance and statistics on inode associations.
int matchpathcon_filespec_add(ino_t ino, int specind, const char *file);
checks whether any specification has no matches and reports them.
argument is used as a prefix for any warning messages.
maintains an association between an inode
and a specification index
and checks whether a conflicting specification is already associated
with the same inode (e.g. due to multiple hard links). If so, then
it uses the latter of the two specifications based on their order in the
context configuration. Returns the specification index used or -1 on
destroys any inode associations that have been added, e.g. to restart
for a new filesystem.
displays statistics on the hash table usage for the inode associations.