1selinux_binary_policy_path(3S)ELinux API Documentatisoenlinux_binary_policy_path(3)
2
3
4
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, selinux_bool‐
11 eans_path - These functions return the paths to the active SELinux pol‐
12 icy configuration directories and files
13
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
48 const char *selinux_booleans_path(void);
49
51 These functions return the paths to the active policy configuration
52 directories and files based on the settings in /etc/selinux/config.
53
54 selinux_path() returns the top-level SELinux configuration directory.
55
56 selinux_policy_root() returns the top-level policy directory.
57
58 selinux_binary_policy_path() returns the binary policy file loaded into
59 kernel.
60
61 selinux_current_policy_path() returns the currently loaded policy file
62 from the kernel.
63
64 selinux_default_type_path() returns the context file mapping roles to
65 default types.
66
67 selinux_failsafe_context_path() returns the failsafe context for emer‐
68 gency logins.
69
70 selinux_removable_context_path() returns the filesystem context for
71 removable media.
72
73 selinux_default_context_path() returns the system-wide default contexts
74 for user sessions.
75
76 selinux_user_contexts_path() returns the directory containing per-user
77 default contexts.
78
79 selinux_usersconf_path() returns the file containing mapping between
80 Linux Users and SELinux users.
81
82 selinux_x_context_path() returns the file containing configuration for
83 XSELinux extension.
84
85 selinux_sepgsql_context_path() returns the file containing configura‐
86 tion for SE-PostgreSQL.
87
88 selinux_netfilter_context_path() returns the default netfilter context.
89
90 selinux_file_context_path() returns the default system file contexts
91 configuration.
92
93 selinux_file_context_local_path() returns the local customization file
94 contexts configuration.
95
96 selinux_file_context_homedir_path() returns the home directory file
97 contexts configuration.
98
99 selinux_media_context_path() returns the file contexts for media device
100 nodes.
101
102 selinux_contexts_path() returns the directory containing all of the
103 context configuration files.
104
105 selinux_securetty_types_path() returns the defines tty types for new‐
106 role securettys.
107
108 selinux_booleans_path() returns the initial policy boolean settings.
109
111 This manual page was written by Dan Walsh <dwalsh@redhat.com>.
112
114 selinux(8)
115
116
117
118dwalsh@redhat.com 15 November 2004 selinux_binary_policy_path(3)