Skip to contentSkip to conversation

libselinux: Man pages cleanups and updates

PATCH In review Guillem Jover 2 participants 7 messages Nov 20, 2012 – Dec 4, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

cover libselinux: Man pages cleanups and updates

Hi!

While going through the SELinux documentation to improve its support in dpkg, I found some issues in the man pages. Here's some patches addressing them.

I'm not sure the typo fix in “libselinux: Fix typo in man page” is entirely correct, being non-native an all. The formatting fixes bring the man pages closer in line with the linux-man project's style; I didn't split that one into smaller changes, because it didn't seem worth it though.

Regards,
Guillem

Guillem Jover (4):
libselinux: Fix program synopsis and function prototypes in man pages
libselinux: Fix man pages formatting
libselinux: Fix typo in man page
libselinux: Add references and man page links to _raw function
variants

Signature · 8 lines
1.8.0



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw

PATCH 1/4 libselinux: Fix program synopsis and function prototypes in man pages

Fix typos, or wrong function prototypes.

---
 libselinux/man/man3/selabel_stats.3              |  2 +-
 libselinux/man/man3/selinux_binary_policy_path.3 | 30 ++++++++++++------------
 libselinux/man/man3/selinux_boolean_sub.3        | 10 ++++----
 libselinux/man/man3/selinux_getpolicytype.3      |  2 +-
 libselinux/man/man3/selinux_policy_root.3        |  2 +-
 libselinux/man/man3/selinux_status_open.3        |  2 +-
 libselinux/man/man5/selabel_db.5                 |  2 +-
 libselinux/man/man8/selinuxexeccon.8             |  2 +-
 8 files changed, 26 insertions(+), 26 deletions(-)
libselinux/man/man3/selabel_stats.3 +1 -1
index 441f422..d39accc 100644
@@ -9,7 +9,7 @@ selabel_stats \- obtain SELinux labeling statistics.
 
 .B #include <selinux/label.h>
 .sp
-.BI "void selabel_lookup(struct selabel_handle *" hnd ");"
+.BI "void selabel_stats(struct selabel_handle *" hnd ");"
 
 .SH "DESCRIPTION"
 .B selabel_stats
libselinux/man/man3/selinux_binary_policy_path.3 +15 -15
index 8ead1a4..b4f6590 100644
@@ -11,35 +11,35 @@ directories and files.
 .B #include <selinux/selinux.h>
 .sp
 
-extern const char *selinux_path(void);
+const char *selinux_path(void);
 
-extern const char *selinux_policy_root(void);
+const char *selinux_policy_root(void);
 
-extern const char *selinux_binary_policy_path(void);
+const char *selinux_binary_policy_path(void);
 
-extern const char *selinux_failsafe_context_path(void);
+const char *selinux_failsafe_context_path(void);
 
-extern const char *selinux_removable_context_path(void);
+const char *selinux_removable_context_path(void);
 
-extern const char *selinux_default_context_path(void);
+const char *selinux_default_context_path(void);
 
-extern const char *selinux_user_contexts_path(void);
+const char *selinux_user_contexts_path(void);
 
-extern const char *selinux_usersconf_path(void);
+const char *selinux_usersconf_path(void);
 
-extern const char *selinux_x_context_path(void);
+const char *selinux_x_context_path(void);
 
-extern const char *selinux_sepgsql_context_path(void);
+const char *selinux_sepgsql_context_path(void);
 
-extern const char *selinux_file_context_path(void);
+const char *selinux_file_context_path(void);
 
-extern const char *selinux_media_context_path(void);
+const char *selinux_media_context_path(void);
 
-extern const char *selinux_securetty_types_path(void);
+const char *selinux_securetty_types_path(void);
 
-extern const char *selinux_contexts_path(void);
+const char *selinux_contexts_path(void);
 
-extern const char *selinux_booleans_path(void);
+const char *selinux_booleans_path(void);
 
 
 .SH "DESCRIPTION"
libselinux/man/man3/selinux_boolean_sub.3 +5 -5
index 8d54c88..8693d57 100644
@@ -1,10 +1,10 @@
-.TH "selinux_boolean_subs" "3" "11 June 2012" "[email protected]" "SELinux API documentation"
+.TH "selinux_boolean_sub" "3" "11 June 2012" "[email protected]" "SELinux API documentation"
 .SH "NAME"
-selinux_boolean_subs
+selinux_boolean_sub
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.BI "char *selinux_boolean_subs(const char * " boolean_name, ");"
+.BI "char *selinux_boolean_sub(const char * " boolean_name ");"
 .sp
 .SH "DESCRIPTION"
 .B selinux_boolean_sub
@@ -14,12 +14,12 @@ for a maching boolean_name record.  If the record exists the boolean substitutio
 returns the original boolean_name.
 
 .SH "RETURN VALUE"
-.BR selinux_boolean_subs
+.BR selinux_boolean_sub
 returns the
 .I boolean_name
 or the substituted name on success.  The returned value must be freed with
 .BR free "(3)."
-.BR selinux_boolean_subs
+.BR selinux_boolean_sub
 returns NULL on error.
 .SH "SEE ALSO"
 security_get_boolean_names.3
libselinux/man/man3/selinux_getpolicytype.3 +1 -1
index 67f9518..b93e66e 100644
@@ -4,7 +4,7 @@ selinux_getpolicytype \- get the type of SELinux policy running on the system
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.B int selinux_getpolicytype();
+.BI "int selinux_getpolicytype(char **" policytype );
 
 
 .SH "DESCRIPTION"
libselinux/man/man3/selinux_policy_root.3 +1 -1
index 7499c75..c69e16e 100644
@@ -4,7 +4,7 @@ selinux_policy_root \- return the path of the SELinux policy files for this mach
 .SH "SYNOPSIS"
 .B #include <selinux/selinux.h>
 .sp
-.B char *selinux_policy_root();
+.B const char *selinux_policy_root(void);
 
 
 .SH "DESCRIPTION"
libselinux/man/man3/selinux_status_open.3 +1 -1
index e897939..9cb9249 100644
@@ -7,7 +7,7 @@ without invocation of system calls.
 .SH "SYNOPSIS"
 .B #include <selinux/avc.h>
 .sp
-.BI "int selinux_status_open(int " fallback, ");"
+.BI "int selinux_status_open(int " fallback ");"
 .sp
 .BI "void selinux_status_close(void);"
 .sp
libselinux/man/man5/selabel_db.5 +1 -1
index c809d18..6de8b5f 100644
@@ -5,7 +5,7 @@
 .SH "NAME"
 selabel_db \- userspace SELinux labeling interface and configuration file format for the RDBMS objects context backend.
 .SH "SYNOPSIS"
-..B #include <selinux/label.h>
+.B #include <selinux/label.h>
 .sp
 .BI "int selabel_lookup(struct selabel_handle *" hnd ,
 .in +\w'int selabel_lookup('u
libselinux/man/man8/selinuxexeccon.8 +1 -1
index 6482d74..ebc5f4a 100644
@@ -3,7 +3,7 @@
 selinuxexeccon \- report SELinux context used for this executable
 
 .SH "SYNOPSIS"
-.B selinuxexeccon command [ fromcon] o
+.B selinuxexeccon command [ fromcon]
 
 .SH "DESCRIPTION"
 .B selinuxexeccon
Signature · 7 lines
1.8.0


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

PATCH 3/4 libselinux: Fix typo in man page

In reply to Guillem Jover
---
 libselinux/man/man3/selinux_status_open.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libselinux/man/man3/selinux_status_open.3 +1 -1
index 014314e..f779dd9 100644
@@ -27,7 +27,7 @@ placed on
 entry. It enables userspace applications to mmap this page with read-only
 mode, then it informs some status without system call invocations.
 .sp
-In some cases that a userspace application tries to apply heavy frequest
+In some cases that a userspace application tries to apply heavy frequent
 access control; such as row-level security in databases, it will face
 unignorable cost to communicate with kernel space to check invalidation
 of userspace avc.
Signature · 7 lines
1.8.0


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw

PATCH 4/4 libselinux: Add references and man page links to _raw function variants

In reply to Guillem Jover
---
 libselinux/man/man3/fgetfilecon_raw.3              |  1 +
 libselinux/man/man3/fsetfilecon_raw.3              |  1 +
 libselinux/man/man3/getcon.3                       | 19 +++++++++++++++
 libselinux/man/man3/getcon_raw.3                   |  1 +
 libselinux/man/man3/getexeccon.3                   | 10 ++++++++
 libselinux/man/man3/getexeccon_raw.3               |  1 +
 libselinux/man/man3/getfilecon.3                   | 13 ++++++++++
 libselinux/man/man3/getfilecon_raw.3               |  1 +
 libselinux/man/man3/getfscreatecon.3               | 10 ++++++++
 libselinux/man/man3/getfscreatecon_raw.3           |  1 +
 libselinux/man/man3/getkeycreatecon.3              | 10 ++++++++
 libselinux/man/man3/getkeycreatecon_raw.3          |  1 +
 libselinux/man/man3/getpeercon_raw.3               |  1 +
 libselinux/man/man3/getpidcon_raw.3                |  1 +
 libselinux/man/man3/getprevcon_raw.3               |  1 +
 libselinux/man/man3/getsockcreatecon.3             | 10 ++++++++
 libselinux/man/man3/getsockcreatecon_raw.3         |  1 +
 libselinux/man/man3/lgetfilecon_raw.3              |  1 +
 libselinux/man/man3/lsetfilecon_raw.3              |  1 +
 libselinux/man/man3/security_check_context.3       |  7 ++++++
 libselinux/man/man3/security_check_context_raw.3   |  1 +
 libselinux/man/man3/security_compute_av.3          | 28 ++++++++++++++++++++++
 .../man/man3/security_compute_av_flags_raw.3       |  1 +
 libselinux/man/man3/security_compute_av_raw.3      |  1 +
 .../man/man3/security_compute_create_name_raw.3    |  1 +
 libselinux/man/man3/security_compute_create_raw.3  |  1 +
 libselinux/man/man3/security_compute_member_raw.3  |  1 +
 libselinux/man/man3/security_compute_relabel_raw.3 |  1 +
 libselinux/man/man3/security_compute_user_raw.3    |  1 +
 .../man/man3/security_get_initial_context_raw.3    |  1 +
 libselinux/man/man3/selabel_lookup_raw.3           |  1 +
 libselinux/man/man3/setcon_raw.3                   |  1 +
 libselinux/man/man3/setexeccon_raw.3               |  1 +
 libselinux/man/man3/setfilecon.3                   | 13 ++++++++++
 libselinux/man/man3/setfilecon_raw.3               |  1 +
 libselinux/man/man3/setfscreatecon_raw.3           |  1 +
 libselinux/man/man3/setkeycreatecon_raw.3          |  1 +
 libselinux/man/man3/setsockcreatecon_raw.3         |  1 +
 38 files changed, 149 insertions(+)
 create mode 100644 libselinux/man/man3/fgetfilecon_raw.3
 create mode 100644 libselinux/man/man3/fsetfilecon_raw.3
 create mode 100644 libselinux/man/man3/getcon_raw.3
 create mode 100644 libselinux/man/man3/getexeccon_raw.3
 create mode 100644 libselinux/man/man3/getfilecon_raw.3
 create mode 100644 libselinux/man/man3/getfscreatecon_raw.3
 create mode 100644 libselinux/man/man3/getkeycreatecon_raw.3
 create mode 100644 libselinux/man/man3/getpeercon_raw.3
 create mode 100644 libselinux/man/man3/getpidcon_raw.3
 create mode 100644 libselinux/man/man3/getprevcon_raw.3
 create mode 100644 libselinux/man/man3/getsockcreatecon_raw.3
 create mode 100644 libselinux/man/man3/lgetfilecon_raw.3
 create mode 100644 libselinux/man/man3/lsetfilecon_raw.3
 create mode 100644 libselinux/man/man3/security_check_context_raw.3
 create mode 100644 libselinux/man/man3/security_compute_av_flags_raw.3
 create mode 100644 libselinux/man/man3/security_compute_av_raw.3
 create mode 100644 libselinux/man/man3/security_compute_create_name_raw.3
 create mode 100644 libselinux/man/man3/security_compute_create_raw.3
 create mode 100644 libselinux/man/man3/security_compute_member_raw.3
 create mode 100644 libselinux/man/man3/security_compute_relabel_raw.3
 create mode 100644 libselinux/man/man3/security_compute_user_raw.3
 create mode 100644 libselinux/man/man3/security_get_initial_context_raw.3
 create mode 100644 libselinux/man/man3/selabel_lookup_raw.3
 create mode 100644 libselinux/man/man3/setcon_raw.3
 create mode 100644 libselinux/man/man3/setexeccon_raw.3
 create mode 100644 libselinux/man/man3/setfilecon_raw.3
 create mode 100644 libselinux/man/man3/setfscreatecon_raw.3
 create mode 100644 libselinux/man/man3/setkeycreatecon_raw.3
 create mode 100644 libselinux/man/man3/setsockcreatecon_raw.3
libselinux/man/man3/fgetfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..ae6dfcf
@@ -0,0 +1 @@
+.so man3/getfilecon.3
libselinux/man/man3/fsetfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..33c321a
@@ -0,0 +1 @@
+.so man3/setfilecon.3
libselinux/man/man3/getcon.3 +19 -0
index f1d3a7f..239bb7d 100644
@@ -13,17 +13,27 @@ setcon \- set current security context of a process
 .sp
 .BI "int getcon(security_context_t *" context );
 .sp
+.BI "int getcon_raw(security_context_t *" context );
+.sp
 .BI "int getprevcon(security_context_t *" context );
 .sp
+.BI "int getprevcon_raw(security_context_t *" context );
+.sp
 .BI "int getpidcon(pid_t " pid ", security_context_t *" context );
 .sp
+.BI "int getpidcon_raw(pid_t " pid ", security_context_t *" context );
+.sp
 .BI "int getpeercon(int " fd ", security_context_t *" context );
 .sp
+.BI "int getpeercon_raw(int " fd ", security_context_t *" context );
+.sp
 .BI "void freecon(security_context_t "con );
 .sp
 .BI "void freeconary(security_context_t *" con );
 .sp
 .BI "int setcon(security_context_t " context );
+.sp
+.BI "int setcon_raw(security_context_t " context );
 .
 .SH "DESCRIPTION"
 .BR getcon ()
@@ -91,6 +101,15 @@ operation, ptrace permission will be revalidated against the new
 context and the
 .BR setcon ()
 will fail if it is not allowed by policy.
+
+.BR getcon_raw (),
+.BR getprevcon_raw (),
+.BR getpidcon_raw (),
+.BR getpeercon_raw ()
+and
+.BR setcon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
 .
 .SH "RETURN VALUE"
 On error \-1 is returned.  On success 0 is returned.
libselinux/man/man3/getcon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1210b5a
@@ -0,0 +1 @@
+.so man3/getcon.3
libselinux/man/man3/getexeccon.3 +10 -0
index 54fb873..c188a3a 100644
@@ -9,8 +9,12 @@ rpm_execcon \- run a helper for rpm in an appropriate security context
 .sp
 .BI "int getexeccon(security_context_t *" context );
 .sp
+.BI "int getexeccon_raw(security_context_t *" context );
+.sp
 .BI "int setexeccon(security_context_t "context );
 .sp
+.BI "int setexeccon_raw(security_context_t "context );
+.sp
 .BI "int rpm_execcon(unsigned int " verified ", const char *" filename ", char *const " argv "[] , char *const " envp "[]);
 .
 .SH "DESCRIPTION"
@@ -46,6 +50,12 @@ e.g.
 .BR popen (3),
 in order to set an exec context for that operation.  
 
+.BR getexeccon_raw ()
+and
+.BR setexeccon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 .B Note:
 Signal handlers that perform an
 .BR execve (2)
libselinux/man/man3/getexeccon_raw.3 new file +1 -0
new file mode 100644
index 0000000..b2e6ab8
@@ -0,0 +1 @@
+.so man3/getexeccon.3
libselinux/man/man3/getfilecon.3 +13 -0
index 8605a0c..ea79b31 100644
@@ -7,9 +7,15 @@ getfilecon, fgetfilecon, lgetfilecon \- get SELinux security context of a file
 .sp
 .BI "int getfilecon(const char *" path ", security_context_t *" con );
 .sp
+.BI "int getfilecon_raw(const char *" path ", security_context_t *" con );
+.sp
 .BI "int lgetfilecon(const char *" path ", security_context_t *" con );
 .sp
+.BI "int lgetfilecon_raw(const char *" path ", security_context_t *" con );
+.sp
 .BI "int fgetfilecon(int "fd ", security_context_t *" con );
+.sp
+.BI "int fgetfilecon_raw(int "fd ", security_context_t *" con );
 .
 .SH "DESCRIPTION"
 .BR getfilecon ()
@@ -29,6 +35,13 @@ only the open file pointed to by filedes (as returned by
 .BR open (2))
 is interrogated in place of path.
 
+.BR getfilecon_raw (),
+.BR lgetfilecon_raw ()
+and
+.BR fgetfilecon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 The returned context should be freed with
 .BR freecon (3)
 if non-NULL.
libselinux/man/man3/getfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..ae6dfcf
@@ -0,0 +1 @@
+.so man3/getfilecon.3
libselinux/man/man3/getfscreatecon.3 +10 -0
index 1b0f3d1..c7675be 100644
@@ -7,7 +7,11 @@ getfscreatecon, setfscreatecon \- get or set the SELinux security context used f
 .sp
 .BI "int getfscreatecon(security_context_t *" con );
 .sp
+.BI "int getfscreatecon_raw(security_context_t *" con );
+.sp
 .BI "int setfscreatecon(security_context_t "context );
+.sp
+.BI "int setfscreatecon_raw(security_context_t "context );
 .
 .SH "DESCRIPTION"
 .BR getfscreatecon ()
@@ -33,6 +37,12 @@ can be applied prior to library
 functions that internally perform an file creation,
 in order to set an file context on the objects.
 
+.BR getfscreatecon_raw ()
+and
+.BR setfscreatecon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 .B Note:
 Signal handlers that perform a
 .BR setfscreatecon ()
libselinux/man/man3/getfscreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..21aeebd
@@ -0,0 +1 @@
+.so man3/getfscreatecon.3
libselinux/man/man3/getkeycreatecon.3 +10 -0
index 709be51..d6a118c 100644
@@ -7,7 +7,11 @@ getkeycreatecon, setkeycreatecon \- get or set the SELinux security context used
 .sp
 .BI "int getkeycreatecon(security_context_t *" con );
 .sp
+.BI "int getkeycreatecon_raw(security_context_t *" con );
+.sp
 .BI "int setkeycreatecon(security_context_t "context );
+.sp
+.BI "int setkeycreatecon_raw(security_context_t "context );
 .
 .SH "DESCRIPTION"
 .BR getkeycreatecon ()
@@ -33,6 +37,12 @@ can be applied prior to library
 functions that internally perform an file creation,
 in order to set an file context on the objects.
 
+.BR getkeycreatecon_raw ()
+and
+.BR setkeycreatecon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 .B Note:
 Signal handlers that perform a
 .BR setkeycreatecon ()
libselinux/man/man3/getkeycreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1e0ec5f
@@ -0,0 +1 @@
+.so man3/getkeycreatecon.3
libselinux/man/man3/getpeercon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1210b5a
@@ -0,0 +1 @@
+.so man3/getcon.3
libselinux/man/man3/getpidcon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1210b5a
@@ -0,0 +1 @@
+.so man3/getcon.3
libselinux/man/man3/getprevcon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1210b5a
@@ -0,0 +1 @@
+.so man3/getcon.3
libselinux/man/man3/getsockcreatecon.3 +10 -0
index 8fb2061..99e9436 100644
@@ -7,7 +7,11 @@ getsockcreatecon, setsockcreatecon \- get or set the SELinux security context us
 .sp
 .BI "int getsockcreatecon(security_context_t *" con );
 .sp
+.BI "int getsockcreatecon_raw(security_context_t *" con );
+.sp
 .BI "int setsockcreatecon(security_context_t "context );
+.sp
+.BI "int setsockcreatecon_raw(security_context_t "context );
 .
 .SH "DESCRIPTION"
 .BR getsockcreatecon ()
@@ -33,6 +37,12 @@ can be applied prior to library
 functions that internally perform an file creation,
 in order to set an file context on the objects.
 
+.BR getsockcreatecon_raw ()
+and
+.BR setsockcreatecon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 .B Note:
 Signal handlers that perform a
 .BR setsockcreatecon ()
libselinux/man/man3/getsockcreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..ed1a371
@@ -0,0 +1 @@
+.so man3/getsockcreatecon.3
libselinux/man/man3/lgetfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..ae6dfcf
@@ -0,0 +1 @@
+.so man3/getfilecon.3
libselinux/man/man3/lsetfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..33c321a
@@ -0,0 +1 @@
+.so man3/setfilecon.3
libselinux/man/man3/security_check_context.3 +7 -0
index 60d571d..7ba4ead 100644
@@ -6,11 +6,18 @@ security_check_context \- check the validity of a SELinux context
 .B #include <selinux/selinux.h>
 .sp
 .BI "int security_check_context(security_context_t "con );
+.sp
+.BI "int security_check_context_raw(security_context_t "con );
 .
 .SH "DESCRIPTION"
 .BR security_check_context ()
 returns 0 if SELinux is running and the context is valid, otherwise it
 returns \-1.
+
+.BR security_check_context_raw ()
+behaves identically to
+.BR \%security_check_context ()
+but does not perform context translation.
 .
 .SH "SEE ALSO"
 .BR selinux "(8)"
libselinux/man/man3/security_check_context_raw.3 new file +1 -0
new file mode 100644
index 0000000..ee93986
@@ -0,0 +1 @@
+.so man3/security_check_context.3
libselinux/man/man3/security_compute_av.3 +28 -0
index 6034019..c6837fc 100644
@@ -11,20 +11,36 @@ the SELinux policy database in the kernel
 .sp
 .BI "int security_compute_av(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
 .sp
+.BI "int security_compute_av_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
+.sp
 .BI "int security_compute_av_flags(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
 .sp
+.BI "int security_compute_av_flags_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", access_vector_t "requested ", struct av_decision *" avd );
+.sp
 .BI "int security_compute_create(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
 .sp
+.BI "int security_compute_create_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
+.sp
 .BI "int security_compute_create_name(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", const char *"objname ", security_context_t *" newcon );
 .sp
+.BI "int security_compute_create_name_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", const char *"objname ", security_context_t *" newcon );
+.sp
 .BI "int security_compute_relabel(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
 .sp
+.BI "int security_compute_relabel_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
+.sp
 .BI "int security_compute_member(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
 .sp
+.BI "int security_compute_member_raw(security_context_t "scon ", security_context_t "tcon ", security_class_t "tclass ", security_context_t *" newcon );
+.sp
 .BI "int security_compute_user(security_context_t "scon ", const char *" username ", security_context_t **" con );
 .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 );
 .sp
+.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
 .BI "int selinux_check_passwd_access(access_vector_t " requested );
@@ -90,6 +106,18 @@ source context. It is mainly used by
 is used to get the context of a kernel initial security identifier specified by 
 .I name
 
+.BR security_compute_av_raw (),
+.BR security_compute_av_flags_raw (),
+.BR \%security_compute_create_raw (),
+.BR \%security_compute_create_name_raw (),
+.BR \%security_compute_relabel_raw (),
+.BR \%security_compute_member_raw (),
+.BR \%security_compute_user_raw ()
+and
+.BR \%security_get_initial_context_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
+
 .BR selinux_check_access ()
 is used to check if the source context has the access permission for the specified class on the target context.
 
libselinux/man/man3/security_compute_av_flags_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_av_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_create_name_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_create_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_member_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_relabel_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_compute_user_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/security_get_initial_context_raw.3 new file +1 -0
new file mode 100644
index 0000000..a60bca4
@@ -0,0 +1 @@
+.so man3/security_compute_av.3
libselinux/man/man3/selabel_lookup_raw.3 new file +1 -0
new file mode 100644
index 0000000..64e003e
@@ -0,0 +1 @@
+.so man3/selabel_lookup.3
libselinux/man/man3/setcon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1210b5a
@@ -0,0 +1 @@
+.so man3/getcon.3
libselinux/man/man3/setexeccon_raw.3 new file +1 -0
new file mode 100644
index 0000000..b2e6ab8
@@ -0,0 +1 @@
+.so man3/getexeccon.3
libselinux/man/man3/setfilecon.3 +13 -0
index 7da024b..5acc9bb 100644
@@ -7,9 +7,15 @@ setfilecon, fsetfilecon, lsetfilecon \- set SELinux security context of a file
 .sp
 .BI "int setfilecon(const char *" path ", security_context_t "con );
 .sp
+.BI "int setfilecon_raw(const char *" path ", security_context_t "con );
+.sp
 .BI "int lsetfilecon(const char *" path ", security_context_t "con );
 .sp
+.BI "int lsetfilecon_raw(const char *" path ", security_context_t "con );
+.sp
 .BI "int fsetfilecon(int "fd ", security_context_t "con );
+.sp
+.BI "int fsetfilecon_raw(int "fd ", security_context_t "con );
 .
 .SH "DESCRIPTION"
 .BR setfilecon ()
@@ -24,6 +30,13 @@ is identical to setfilecon, only the open file pointed to by filedes (as
 returned by
 .BR open (2))
 has it's context set in place of path.
+
+.BR setfilecon_raw (),
+.BR lsetfilecon_raw (),
+and
+.BR fsetfilecon_raw ()
+behave identically to their non-raw counterparts but do not perform context
+translation.
 .
 .SH "RETURN VALUE"
 On success, zero is returned. On failure, \-1 is returned and
libselinux/man/man3/setfilecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..33c321a
@@ -0,0 +1 @@
+.so man3/setfilecon.3
libselinux/man/man3/setfscreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..21aeebd
@@ -0,0 +1 @@
+.so man3/getfscreatecon.3
libselinux/man/man3/setkeycreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..1e0ec5f
@@ -0,0 +1 @@
+.so man3/getkeycreatecon.3
libselinux/man/man3/setsockcreatecon_raw.3 new file +1 -0
new file mode 100644
index 0000000..ed1a371
@@ -0,0 +1 @@
+.so man3/getsockcreatecon.3
Signature · 7 lines
1.8.0


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
In reply to Guillem Jover

I do not see patch 2/4. Can you resend?

Quoted 26 lines · Guillem Jover

Hi!

While going through the SELinux documentation to improve its support in dpkg, I found some issues in the man pages. Here's some patches addressing them.

I'm not sure the typo fix in “libselinux: Fix typo in man page” is entirely correct, being non-native an all. The formatting fixes bring the man pages closer in line with the linux-man project's style; I didn't split that one into smaller changes, because it didn't seem worth it though.

Regards,
Guillem

Guillem Jover (4):
libselinux: Fix program synopsis and function prototypes in man pages
libselinux: Fix man pages formatting
libselinux: Fix typo in man page
libselinux: Add references and man page links to _raw function
variants
--
1.8.0

Quoted 4 lines

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#5 lore raw
Quoted 1 line · Eric Paris

I do not see patch 2/4. Can you resend?

Sure, I'm resending it now, but just in case it gets stuck somewhere again (mailing list size limits?), here's a git tree with those patches:

git://git.hadrons.org/git/sys/selinux.git

Thanks,
Guillem

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#6 lore raw

Didn't come through again, but I got it from the repo. thanks.

Quoted 11 lines · Guillem Jover
Quoted 1 line · Eric Paris

I do not see patch 2/4. Can you resend?

Sure, I'm resending it now, but just in case it gets stuck somewhere again (mailing list size limits?), here's a git tree with those patches:

git://git.hadrons.org/git/sys/selinux.git

Thanks,
Guillem

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.