1selinux_binary_policy_path(3S)ELinux API Documentatisoenlinux_binary_policy_path(3)
2
3
4

NAME

6       selinux_path,      selinux_policy_root,     selinux_binary_policy_path,
7       selinux_current_policy_path,             selinux_failsafe_context_path,
8       selinux_removable_context_path,           selinux_default_context_path,
9       selinux_user_contexts_path,                  selinux_file_context_path,
10       selinux_media_context_path,  selinux_contexts_path  -  These  functions
11       return the paths to the active SELinux policy configuration directories
12       and files
13

SYNOPSIS

15       #include <selinux/selinux.h>
16
17
18       const char *selinux_path(void);
19
20       const char *selinux_policy_root(void);
21
22       const char *selinux_binary_policy_path(void);
23
24       const char *selinux_current_policy_path(void);
25
26       const char *selinux_failsafe_context_path(void);
27
28       const char *selinux_removable_context_path(void);
29
30       const char *selinux_default_context_path(void);
31
32       const char *selinux_user_contexts_path(void);
33
34       const char *selinux_usersconf_path(void);
35
36       const char *selinux_x_context_path(void);
37
38       const char *selinux_sepgsql_context_path(void);
39
40       const char *selinux_file_context_path(void);
41
42       const char *selinux_media_context_path(void);
43
44       const char *selinux_securetty_types_path(void);
45
46       const char *selinux_contexts_path(void);
47

DESCRIPTION

49       These  functions  return  the  paths to the active policy configuration
50       directories and files based on the settings in /etc/selinux/config.
51
52       selinux_path() returns the top-level SELinux configuration directory.
53
54       selinux_policy_root() returns the top-level policy directory.
55
56       selinux_binary_policy_path() returns the binary policy file loaded into
57       kernel.
58
59       selinux_current_policy_path()  returns the currently loaded policy file
60       from the kernel.
61
62       selinux_default_type_path() returns the context file mapping  roles  to
63       default types.
64
65       selinux_failsafe_context_path()  returns the failsafe context for emer‐
66       gency logins.
67
68       selinux_removable_context_path() returns  the  filesystem  context  for
69       removable media.
70
71       selinux_default_context_path() returns the system-wide default contexts
72       for user sessions.
73
74       selinux_user_contexts_path() returns the directory containing  per-user
75       default contexts.
76
77       selinux_usersconf_path()  returns  the  file containing mapping between
78       Linux Users and SELinux users.
79
80       selinux_x_context_path() returns the file containing configuration  for
81       XSELinux extension.
82
83       selinux_sepgsql_context_path()  returns  the file containing configura‐
84       tion for SE-PostgreSQL.
85
86       selinux_netfilter_context_path() returns the default netfilter context.
87
88       selinux_file_context_path() returns the default  system  file  contexts
89       configuration.
90
91       selinux_file_context_local_path()  returns the local customization file
92       contexts configuration.
93
94       selinux_file_context_homedir_path() returns  the  home  directory  file
95       contexts configuration.
96
97       selinux_media_context_path() returns the file contexts for media device
98       nodes.
99
100       selinux_contexts_path() returns the directory  containing  all  of  the
101       context configuration files.
102
103       selinux_securetty_types_path()  returns  the defines tty types for new‐
104       role securettys.
105

AUTHOR

107       This manual page was written by Dan Walsh <dwalsh@redhat.com>.
108

SEE ALSO

110       selinux(8)
111
112
113
114dwalsh@redhat.com              15 November 2004  selinux_binary_policy_path(3)
Impressum