Blame libselinux-rhat.patch
Branch: 6df57245c3ba4c4edbce3695fc8404f391f16926
cvsdist
6df5724
--- libselinux-1.17.2/man/man3/matchpathcon.3.rhat 2004-08-26 08:37:17.533537517 -0400
cvsdist
6df5724
+++ libselinux-1.17.2/man/man3/matchpathcon.3 2004-08-26 08:36:21.061471154 -0400
cvsdist
6df5724
@@ -0,0 +1,26 @@
cvsdist
6df5724
+.TH "matchpathcon" "3" "1 August 2004" "dwalsh@redhat.com" "SE Linux API documentation"
cvsdist
6df5724
+.SH "NAME"
cvsdist
6df5724
+matchpathcon \- get the default security context for the specified file from the policy.
cvsdist
6df5724
+
cvsdist
6df5724
+.SH "SYNOPSIS"
cvsdist
6df5724
+.B #include <selinux/selinux.h>
cvsdist
6df5724
+.sp
cvsdist
6df5724
+.BI "int matchpathcon(const char *" path ", mode_t " mode ", security_context_t *" con);"
cvsdist
6df5724
+.br
cvsdist
6df5724
+
cvsdist
6df5724
+.SH "DESCRIPTION"
cvsdist
6df5724
+.br
cvsdist
6df5724
+.B matchpathcon
cvsdist
6df5724
+matches the specified pathname and mode against the file contexts configuration and set the security context "con" to refer to the resulting context. "mode" can be 0 to disable mode matching.
cvsdist
6df5724
+.sp
cvsdist
6df5724
+.br
cvsdist
6df5724
+.B Note:
cvsdist
6df5724
+ Caller must free returned security context "con" using freecon.
cvsdist
6df5724
+.SH "RETURN VALUE"
cvsdist
6df5724
+On error -1 is returned.
cvsdist
6df5724
+
cvsdist
6df5724
+On success matchpathcon returns the length of the context (not including
cvsdist
6df5724
+the trailing zero byte).
cvsdist
6df5724
+
cvsdist
6df5724
+.SH "SEE ALSO"
cvsdist
6df5724
+.BR freecon "(3), " setfilecon "(3), " setfscreatecon "(3)"