File: selinux_file_context_cmp.3

package info (click to toggle)
libselinux 2.0.96-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,348 kB
  • ctags: 4,345
  • sloc: ansic: 24,218; python: 2,086; sh: 232; makefile: 219
file content (25 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.TH "selinux_file_context_cmp" "3" "21 November 2009" "sds@tycho.nsa.gov" "SELinux API documentation"
.SH "NAME"
selinux_file_context_cmp, selinux_file_context_verify \- comparison of two file contexts.

.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp

.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 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"
Returns zero on success or \-1 otherwise.

.SH "SEE ALSO"
.BR selinux "(8), " selinux_lsetfilecon "(3), " matchpathcon "(3), " freecon "(3), " setfilecon "(3), " setfscreatecon "(3)"