GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       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


       #include <selinux/selinux.h>

       void matchpathcon_checkmatches(char *str);

       int  matchpathcon_filespec_add(ino_t  ino,  int  specind,  const   char

       void matchpathcon_filespec_destroy(void);

       void matchpathcon_filespec_eval(void);


       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.


       Returns zero on success or -1 otherwise.


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

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.151 seconds. Last modified: November 04 2018 12:49:43.