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_failsafe_context_path, selinux_removable_context_path,
8 selinux_default_context_path, selinux_user_contexts_path,
9 selinux_file_context_path, selinux_media_context_path, selinux_con‐
10 texts_path, selinux_booleans_path - These functions return the paths to
11 the active SELinux policy configuration directories and files.
12
13
15 #include <selinux/selinux.h>
16
17
18 extern const char *selinux_path(void);
19
20 extern const char *selinux_policy_root(void);
21
22 extern const char *selinux_binary_policy_path(void);
23
24 extern const char *selinux_failsafe_context_path(void);
25
26 extern const char *selinux_removable_context_path(void);
27
28 extern const char *selinux_default_context_path(void);
29
30 extern const char *selinux_user_contexts_path(void);
31
32 extern const char *selinux_usersconf_path(void);
33
34 extern const char *selinux_x_context_path(void);
35
36 extern const char *selinux_sepgsql_context_path(void);
37
38 extern const char *selinux_file_context_path(void);
39
40 extern const char *selinux_media_context_path(void);
41
42 extern const char *selinux_securetty_types_path(void);
43
44 extern const char *selinux_contexts_path(void);
45
46 extern const char *selinux_booleans_path(void);
47
48
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
55 selinux_path() - top-level SELinux configuration directory
56
57 selinux_policy_root() - top-level policy directory
58
59 selinux_binary_policy_path() - binary policy file loaded into kernel
60
61 selinux_default_type_path - context file mapping roles to default
62 types.
63
64 selinux_failsafe_context_path() - failsafe context for emergency logins
65
66 selinux_removable_context_path() - filesystem context for removable
67 media
68
69 selinux_default_context_path() - system-wide default contexts for user
70 sessions
71
72 selinux_user_contexts_path() - directory containing per-user default
73 contexts
74
75 selinux_usersconf_path() - file containing mapping between Linux Users
76 and SELinux users
77
78 selinux_x_context_path() - file containing configuration for XSELinux
79 extension
80
81 selinux_sepgsql_context_path() - file containing configuration for SE-
82 PostgreSQL
83
84 selinux_netfilter_context_path - default netfilter context
85
86 selinux_file_context_path() - default system file contexts configura‐
87 tion
88
89 selinux_file_context_local_path() - local customization file contexts
90 configuration
91
92 selinux_file_context_homedir_path() - home directory file contexts con‐
93 figuration
94
95 selinux_media_context_path() - file contexts for media device nodes
96
97 selinux_contexts_path() - directory containing all of the context con‐
98 figuration files
99
100 selinux_securetty_types_path() - defines tty types for newrole securet‐
101 tys
102
103 selinux_booleans_path() - initial policy boolean settings
104
105
107 This manual page was written by Dan Walsh <dwalsh@redhat.com>.
108
109
111 selinux(8)
112
113
114
115dwalsh@redhat.com 15 November 2004 selinux_binary_policy_path(3)