aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/man/man3
diff options
context:
space:
mode:
authorJoshua Brindle <method@manicmethod.com>2008-10-14 07:34:49 -0400
committerJoshua Brindle <method@manicmethod.com>2008-10-14 07:34:49 -0400
commit345fb4a99b7aa6442b2f9ead4cc391d031d4b6ba (patch)
tree0b677cd95618d9ea5a7f3d1f977bf44b1df7de68 /libselinux/man/man3
parent86562db50a328b82626f7db7a8bf8ff7f55ca045 (diff)
downloadandroid_external_selinux-345fb4a99b7aa6442b2f9ead4cc391d031d4b6ba.tar.gz
android_external_selinux-345fb4a99b7aa6442b2f9ead4cc391d031d4b6ba.tar.bz2
android_external_selinux-345fb4a99b7aa6442b2f9ead4cc391d031d4b6ba.zip
Author: Daniel J Walsh
Email: dwalsh@redhat.com Subject: Yet another man page patch Date: Tue, 30 Sep 2008 08:52:58 -0400 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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);" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkjiISoACgkQrlYvE4MpobPV9gCg0KZ+rsxGsIalBS1qvbObK7bA 0H8Anj8FnGzOnSjnOfbk+5R4Bf2OyxW+ =nJ7k -----END PGP SIGNATURE----- Signed-off-by: Joshua Brindle <method@manicmethod.com>
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