| 1 |
.TH "selinux_binary_policy_path" "3" "15 November 2004" "[email protected]" "SELinux API Documentation" |
| 2 |
.SH "NAME" |
| 3 |
selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path, |
| 4 |
selinux_failsafe_context_path, selinux_removable_context_path, |
| 5 |
selinux_default_context_path, selinux_user_contexts_path, |
| 6 |
selinux_file_context_path, selinux_media_context_path, |
| 7 |
selinux_contexts_path, selinux_booleans_path \- These functions return the paths to the active SELinux policy configuration |
| 8 |
directories and files |
| 9 |
. |
| 10 |
.SH "SYNOPSIS" |
| 11 |
.B #include <selinux/selinux.h> |
| 12 |
.sp |
| 13 |
|
| 14 |
.B const char *selinux_path(void); |
| 15 |
.sp |
| 16 |
.B const char *selinux_policy_root(void); |
| 17 |
.sp |
| 18 |
.B const char *selinux_binary_policy_path(void); |
| 19 |
.sp |
| 20 |
.B const char *selinux_current_policy_path(void); |
| 21 |
.sp |
| 22 |
.B const char *selinux_failsafe_context_path(void); |
| 23 |
.sp |
| 24 |
.B const char *selinux_removable_context_path(void); |
| 25 |
.sp |
| 26 |
.B const char *selinux_default_context_path(void); |
| 27 |
.sp |
| 28 |
.B const char *selinux_user_contexts_path(void); |
| 29 |
.sp |
| 30 |
.B const char *selinux_usersconf_path(void); |
| 31 |
.sp |
| 32 |
.B const char *selinux_x_context_path(void); |
| 33 |
.sp |
| 34 |
.B const char *selinux_sepgsql_context_path(void); |
| 35 |
.sp |
| 36 |
.B const char *selinux_file_context_path(void); |
| 37 |
.sp |
| 38 |
.B const char *selinux_media_context_path(void); |
| 39 |
.sp |
| 40 |
.B const char *selinux_securetty_types_path(void); |
| 41 |
.sp |
| 42 |
.B const char *selinux_contexts_path(void); |
| 43 |
.sp |
| 44 |
.B const char *selinux_booleans_path(void); |
| 45 |
. |
| 46 |
.SH "DESCRIPTION" |
| 47 |
These functions return the paths to the active policy configuration |
| 48 |
directories and files based on the settings in |
| 49 |
.IR /etc/selinux/config . |
| 50 |
.sp |
| 51 |
.BR selinux_path () |
| 52 |
returns the top-level SELinux configuration directory. |
| 53 |
.sp |
| 54 |
.BR selinux_policy_root () |
| 55 |
returns the top-level policy directory. |
| 56 |
.sp |
| 57 |
.BR selinux_binary_policy_path () |
| 58 |
returns the binary policy file loaded into kernel. |
| 59 |
.sp |
| 60 |
.BR selinux_current_policy_path () |
| 61 |
returns the currently loaded policy file from the kernel. |
| 62 |
.sp |
| 63 |
.BR selinux_default_type_path () |
| 64 |
returns the context file mapping roles to default types. |
| 65 |
.sp |
| 66 |
.BR selinux_failsafe_context_path () |
| 67 |
returns the failsafe context for emergency logins. |
| 68 |
.sp |
| 69 |
.BR selinux_removable_context_path () |
| 70 |
returns the filesystem context for removable media. |
| 71 |
.sp |
| 72 |
.BR selinux_default_context_path () |
| 73 |
returns the system-wide default contexts for user sessions. |
| 74 |
.sp |
| 75 |
.BR selinux_user_contexts_path () |
| 76 |
returns the directory containing per-user default contexts. |
| 77 |
.sp |
| 78 |
.BR selinux_usersconf_path () |
| 79 |
returns the file containing mapping between Linux Users and SELinux users. |
| 80 |
.sp |
| 81 |
.BR selinux_x_context_path () |
| 82 |
returns the file containing configuration for XSELinux extension. |
| 83 |
.sp |
| 84 |
.BR selinux_sepgsql_context_path () |
| 85 |
returns the file containing configuration for SE-PostgreSQL. |
| 86 |
.sp |
| 87 |
.BR selinux_netfilter_context_path () |
| 88 |
returns the default netfilter context. |
| 89 |
.sp |
| 90 |
.BR selinux_file_context_path () |
| 91 |
returns the default system file contexts configuration. |
| 92 |
.sp |
| 93 |
.BR selinux_file_context_local_path () |
| 94 |
returns the local customization file contexts configuration. |
| 95 |
.sp |
| 96 |
.BR selinux_file_context_homedir_path () |
| 97 |
returns the home directory file contexts configuration. |
| 98 |
.sp |
| 99 |
.BR selinux_media_context_path () |
| 100 |
returns the file contexts for media device nodes. |
| 101 |
.sp |
| 102 |
.BR selinux_contexts_path () |
| 103 |
returns the directory containing all of the context configuration files. |
| 104 |
.sp |
| 105 |
.BR selinux_securetty_types_path () |
| 106 |
returns the defines tty types for newrole securettys. |
| 107 |
.sp |
| 108 |
.BR selinux_booleans_path () |
| 109 |
returns the initial policy boolean settings. |
| 110 |
. |
| 111 |
.SH AUTHOR |
| 112 |
This manual page was written by Dan Walsh <[email protected]>. |
| 113 |
. |
| 114 |
.SH "SEE ALSO" |
| 115 |
.BR selinux "(8)" |