aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/man/man3
diff options
context:
space:
mode:
Diffstat (limited to 'libselinux/man/man3')
-rw-r--r--libselinux/man/man3/matchpathcon.311
-rw-r--r--libselinux/man/man3/selinux_file_context_cmp.31
-rw-r--r--libselinux/man/man3/selinux_file_context_verify.31
3 files changed, 13 insertions, 0 deletions
diff --git a/libselinux/man/man3/matchpathcon.3 b/libselinux/man/man3/matchpathcon.3
index 2b1471c8..3d09d1ae 100644
--- a/libselinux/man/man3/matchpathcon.3
+++ b/libselinux/man/man3/matchpathcon.3
@@ -18,6 +18,11 @@ matchpathcon \- get the default SELinux security context for the specified path
.BI "void set_matchpathcon_flags(unsigned int " flags ");"
+.BI "int selinux_file_context_cmp(const security_context_t a,
+ const security_context_t b);"
+
+.BI "int selinux_file_context_verify(const char *path, mode_t mode);"
+
.SH "DESCRIPTION"
.B matchpathcon_init
loads the file contexts configuration specified by
@@ -111,6 +116,12 @@ If the
.B MATCHPATHCON_BASEONLY
flag is set, then only the base file contexts configuration file
will be processed, not any dynamically generated entries or local customizations.
+.sp
+.B selinux_file_context_cmp
+compares two file contexts to see if their differences are "significant", the function runs the strcmp function ignoring the user componant of the file context.
+.sp
+.B selinux_file_context_verify
+compares the file context on disk to the system default.
.sp
.SH "RETURN VALUE"
diff --git a/libselinux/man/man3/selinux_file_context_cmp.3 b/libselinux/man/man3/selinux_file_context_cmp.3
new file mode 100644
index 00000000..cd5df2e1
--- /dev/null
+++ b/libselinux/man/man3/selinux_file_context_cmp.3
@@ -0,0 +1 @@
+.so man3/matchpathcon.3
diff --git a/libselinux/man/man3/selinux_file_context_verify.3 b/libselinux/man/man3/selinux_file_context_verify.3
new file mode 100644
index 00000000..cd5df2e1
--- /dev/null
+++ b/libselinux/man/man3/selinux_file_context_verify.3
@@ -0,0 +1 @@
+.so man3/matchpathcon.3