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

matchpathcon_checkmatches, matchpathcon_filespec_add, matchpathcon_filespec_destroy,

Description

matchpathcon_checkmatches()  checks  whether  any specification has no matches and reports them.  The str
       argument is used as a prefix for any warning messages.

       matchpathcon_filespec_add() maintains an association between an  inode  ino  and  a  specification  index
       specind,  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 file context configuration.  Returns the specification index used or -1 on error.

       matchpathcon_filespec_destroy()  destroys  any  inode associations that have been added, e.g., to restart
       for a new filesystem.

       matchpathcon_filespec_eval() displays statistics on the hash table usage for the inode associations.

Name

       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

Return Value

       Returns zero on success or -1 otherwise.

See Also

selinux(8), matchpathcon(3), matchpathcon_index(3), freecon(3), setfilecon(3), setfscreatecon(3)

stephen.smalley.work@gmail.com                  21 November 2009                    matchpathcon_checkmatches(3)

Synopsis

#include<selinux/selinux.h>voidmatchpathcon_checkmatches(char*str);intmatchpathcon_filespec_add(ino_tino,intspecind,constchar*file);voidmatchpathcon_filespec_destroy(void);voidmatchpathcon_filespec_eval(void);

See Also