diff options
author | Dan Walsh <dwalsh@redhat.com> | 2013-10-09 14:37:31 -0400 |
---|---|---|
committer | Stephen Smalley <sds@tycho.nsa.gov> | 2013-10-24 13:58:37 -0400 |
commit | 2540b20096bed9a4f2581548ad37c3dae8654512 (patch) | |
tree | 59c44f0baec9af783014c7fae7e9cc9bd5f0c258 /libselinux/man/man3 | |
parent | 4d2dd334114d12623c1249fc07463714b6151873 (diff) | |
download | android_external_selinux-2540b20096bed9a4f2581548ad37c3dae8654512.tar.gz android_external_selinux-2540b20096bed9a4f2581548ad37c3dae8654512.tar.bz2 android_external_selinux-2540b20096bed9a4f2581548ad37c3dae8654512.zip |
Laurent Bigonville patch to fix various minor manpage issues and correct section numbering.
Diffstat (limited to 'libselinux/man/man3')
-rw-r--r-- | libselinux/man/man3/security_compute_av.3 | 4 | ||||
-rw-r--r-- | libselinux/man/man3/security_disable.3 | 4 | ||||
-rw-r--r-- | libselinux/man/man3/security_load_policy.3 | 4 | ||||
-rw-r--r-- | libselinux/man/man3/selinux_policy_root.3 | 17 |
4 files changed, 21 insertions, 8 deletions
diff --git a/libselinux/man/man3/security_compute_av.3 b/libselinux/man/man3/security_compute_av.3 index c6837fc3..de62d264 100644 --- a/libselinux/man/man3/security_compute_av.3 +++ b/libselinux/man/man3/security_compute_av.3 @@ -37,9 +37,9 @@ the SELinux policy database in the kernel .sp .BI "int security_compute_user_raw(security_context_t "scon ", const char *" username ", security_context_t **" con ); .sp -.BI "int security_get_initial_context(const char *" name ", security_context_t " con ); +.BI "int security_get_initial_context(const char *" name ", security_context_t *" con ); .sp -.BI "int security_get_initial_context_raw(const char *" name ", security_context_t " con ); +.BI "int security_get_initial_context_raw(const char *" name ", security_context_t *" con ); .sp .BI "int selinux_check_access(const security_context_t " scon ", const security_context_t " tcon ", const char *" class ", const char *" perm ", void *" auditdata); .sp diff --git a/libselinux/man/man3/security_disable.3 b/libselinux/man/man3/security_disable.3 index aeb78da2..c75ce0d9 100644 --- a/libselinux/man/man3/security_disable.3 +++ b/libselinux/man/man3/security_disable.3 @@ -17,7 +17,7 @@ and then unmounts This function can only be called at runtime and prior to the initial policy load. After the initial policy load, the SELinux kernel code cannot be disabled, but only placed in "permissive" mode by using -.BR setenforce (1). +.BR security_setenforce(3). . .SH "RETURN VALUE" .BR security_disable () @@ -27,4 +27,4 @@ returns zero on success or \-1 on error. This manual page has been written by Guido Trentalancia <guido@trentalancia.com> . .SH "SEE ALSO" -.BR selinux (8), " setenforce "(3) +.BR selinux (8), " setenforce "(8) diff --git a/libselinux/man/man3/security_load_policy.3 b/libselinux/man/man3/security_load_policy.3 index c4439bfe..af561636 100644 --- a/libselinux/man/man3/security_load_policy.3 +++ b/libselinux/man/man3/security_load_policy.3 @@ -43,7 +43,7 @@ unmounted using a call to .BR security_disable (3). Therefore, after the initial policy load, the only operational changes are those permitted by -.BR setenforce (3) +.BR security_setenforce (3) (i.e. eventually setting the framework in permissive mode rather than in enforcing one). . @@ -54,4 +54,4 @@ Returns zero on success or \-1 on error. This manual page has been written by Guido Trentalancia <guido@trentalancia.com> . .SH "SEE ALSO" -.BR selinux "(8), " security_disable "(3), " setenforce "(1) +.BR selinux "(8), " security_disable "(3), " setenforce "(8) diff --git a/libselinux/man/man3/selinux_policy_root.3 b/libselinux/man/man3/selinux_policy_root.3 index a6ccf866..63dc9010 100644 --- a/libselinux/man/man3/selinux_policy_root.3 +++ b/libselinux/man/man3/selinux_policy_root.3 @@ -1,21 +1,34 @@ .TH "selinux_policy_root" "3" "25 May 2004" "dwalsh@redhat.com" "SELinux API documentation" .SH "NAME" selinux_policy_root \- return the path of the SELinux policy files for this machine +selinux_set_policy_root \- Set an alternate SELinux root path for the SELinux policy files for this machine. . .SH "SYNOPSIS" .B #include <selinux/selinux.h> .sp .B const char *selinux_policy_root(void); . +.sp +.B int selinux_set_policy_root(const char *policypath); +. .SH "DESCRIPTION" .BR selinux_policy_root () reads the contents of the .I /etc/selinux/config file to determine which policy files should be used for this machine. . +.BR selinux_set_policy_root () +sets up all all policy paths based on the alternate root + +.I /etc/selinux/config +file to determine which policy files should be used for this machine. +. .SH "RETURN VALUE" -On success, returns a directory path containing the SELinux policy files. -On failure, NULL is returned. +On success, selinux_policy_root returns a directory path containing the SELinux policy files. +On failure, selinux_policy_root returns NULL. + +On success, selinux_set_policy_root returns 0 on success -1 on failure. + . .SH "SEE ALSO" .BR selinux "(8)" |