1matchmediacon(3)          SE Linux API documentation          matchmediacon(3)
2
3
4

NAME

6       matchmediacon - get the default SELinux security context for the speciā€
7       fied mediatype from the policy.
8
9

SYNOPSIS

11       #include <selinux/selinux.h>
12
13       int matchmediacon(const char *media, security_context_t *con);"
14
15
16

DESCRIPTION

18       matchmediacon matches the specified media type with the media  contexts
19       configuration  and  sets  the  security  context  "con" to refer to the
20       resulting context.
21
22
23       Note:
24          Caller must free returned security context "con" using freecon.
25

RETURN VALUE

27       Returns 0 on success or -1 otherwise.
28
29

Files

31       /etc/selinux/POLICYTYPE/contexts/files/media
32
33

SEE ALSO

35       selinux(8), freecon(3)
36
37
38
39dwalsh@redhat.com              15 November 2004               matchmediacon(3)
Impressum