aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/man/man3
diff options
context:
space:
mode:
authorDan Walsh <dwalsh@redhat.com>2013-10-09 16:18:15 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2013-10-24 13:58:38 -0400
commit7eec00a5be8b5cebcbbc9a30b42b34f4a623c587 (patch)
treec0c37c75984694fbfb0b13dcc8e9cc5a1259b001 /libselinux/man/man3
parent403f2cfeb808d3b3420050434763d9a7689d8388 (diff)
downloadandroid_external_selinux-7eec00a5be8b5cebcbbc9a30b42b34f4a623c587.tar.gz
android_external_selinux-7eec00a5be8b5cebcbbc9a30b42b34f4a623c587.tar.bz2
android_external_selinux-7eec00a5be8b5cebcbbc9a30b42b34f4a623c587.zip
Add selinux_current_policy_path, which returns the a pointer to the loaded policy
Also change audit2why to look at the loaded policy rather then searching on disk for the policy file. It is more likely that you are examining the running policy.
Diffstat (limited to 'libselinux/man/man3')
-rw-r--r--libselinux/man/man3/selinux_binary_policy_path.37
-rw-r--r--libselinux/man/man3/selinux_current_policy_path.31
2 files changed, 7 insertions, 1 deletions
diff --git a/libselinux/man/man3/selinux_binary_policy_path.3 b/libselinux/man/man3/selinux_binary_policy_path.3
index ec97dcf8..503c52c7 100644
--- a/libselinux/man/man3/selinux_binary_policy_path.3
+++ b/libselinux/man/man3/selinux_binary_policy_path.3
@@ -1,6 +1,6 @@
.TH "selinux_binary_policy_path" "3" "15 November 2004" "dwalsh@redhat.com" "SELinux API Documentation"
.SH "NAME"
-selinux_path, selinux_policy_root, selinux_binary_policy_path,
+selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path,
selinux_failsafe_context_path, selinux_removable_context_path,
selinux_default_context_path, selinux_user_contexts_path,
selinux_file_context_path, selinux_media_context_path,
@@ -17,6 +17,8 @@ directories and files
.sp
.B const char *selinux_binary_policy_path(void);
.sp
+.B const char *selinux_current_policy_path(void);
+.sp
.B const char *selinux_failsafe_context_path(void);
.sp
.B const char *selinux_removable_context_path(void);
@@ -55,6 +57,9 @@ returns the top-level policy directory.
.BR selinux_binary_policy_path ()
returns the binary policy file loaded into kernel.
.sp
+.BR selinux_current_policy_path ()
+returns the currently loaded policy file from the kernel.
+.sp
.BR selinux_default_type_path ()
returns the context file mapping roles to default types.
.sp
diff --git a/libselinux/man/man3/selinux_current_policy_path.3 b/libselinux/man/man3/selinux_current_policy_path.3
new file mode 100644
index 00000000..175a611a
--- /dev/null
+++ b/libselinux/man/man3/selinux_current_policy_path.3
@@ -0,0 +1 @@
+.so man3/selinux_binary_policy_path.3