File: matchmediacon.3

package info (click to toggle)
libselinux 3.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,380 kB
  • sloc: ansic: 17,619; makefile: 416; sh: 48; python: 21
file content (30 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (11)
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
26
27
28
29
30
.TH "matchmediacon" "3" "15 November 2004" "dwalsh@redhat.com" "SELinux API documentation"
.SH "NAME"
matchmediacon \- get the default SELinux security context for the specified mediatype from the policy
.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.BI "int matchmediacon(const char *" media ", char **" con );
.
.SH "DESCRIPTION"
.BR matchmediacon ()
matches the specified media type with the media contexts configuration and
sets the security context
.I con
to refer to the resulting context.
.sp
.B Note:
Caller must free returned security context
.I con
using
.BR freecon (3).
.
.SH "RETURN VALUE"
Returns 0 on success or \-1 otherwise.
.
.SH Files
.I /etc/selinux/{POLICYTYPE}/contexts/files/media
.
.SH "SEE ALSO"
.BR selinux "(8), " freecon "(3)