Debian Codegraph @

libselinux/man/man3/matchpathcon_checkmatches.3

raw
1 .TH "matchpathcon_checkmatches" "3" "21 November 2009" "[email protected]" "SELinux API documentation"
2 .SH "NAME"
3 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
4 .
5 .SH "SYNOPSIS"
6 .B #include <selinux/selinux.h>
7 .sp
8 .BI "void matchpathcon_checkmatches(char *" str ");"
9 .sp
10 .BI "int matchpathcon_filespec_add(ino_t " ino ", int " specind ", const char *" file ");"
11 .sp
12 .BI "void matchpathcon_filespec_destroy(void);"
13 .sp
14 .BI "void matchpathcon_filespec_eval(void);"
15 .
16 .SH "DESCRIPTION"
17 .BR matchpathcon_checkmatches ()
18 checks whether any specification has no matches and reports them.
19 The
20 .I str
21 argument is used as a prefix for any warning messages.
22 .sp
23 .BR matchpathcon_filespec_add ()
24 maintains an association between an inode
25 .I ino
26 and a specification index
27 .IR specind ,
28 and checks whether a conflicting specification is already associated
29 with the same inode (e.g. due to multiple hard links). If so, then
30 it uses the latter of the two specifications based on their order in the
31 .I file
32 context configuration. Returns the specification index used or \-1 on
33 error.
34 .sp
35 .BR matchpathcon_filespec_destroy ()
36 destroys any inode associations that have been added, e.g. to restart
37 for a new filesystem.
38 .sp
39 .BR matchpathcon_filespec_eval ()
40 displays statistics on the hash table usage for the inode associations.
41 .
42 .SH "RETURN VALUE"
43 Returns zero on success or \-1 otherwise.
44 .
45 .SH "SEE ALSO"
46 .ad l
47 .nh
48 .BR selinux "(8), " matchpathcon "(3), " matchpathcon_index "(3), " freecon "(3), " setfilecon "(3), " setfscreatecon "(3)"