Your message dated Thu, 06 Feb 2025 09:08:49 +0000
with message-id <[email protected]>
and subject line Bug#1094861: fixed in libselinux 3.8-1
has caused the Debian Bug report #1094861,
regarding get_ordered_context_list.3: Some remarks and a patch with editorial 
changes for this man page
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1094861: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1094861
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libselinux1-dev
Version: 3.7-3+b1
Severity: minor
Tags: patch

   * What led up to the situation?

     Checking for defects with a new version

test-[g|n]roff -mandoc -t -K utf8 -rF0 -rHY=0 -rCHECKSTYLE=10 -ww -z < "man 
page"

  [Use "groff -e ' $' -e '\\~$' <file>" to find obvious trailing spaces.]

  ["test-groff" is a script in the repository for "groff"; is not shipped]
(local copy and "troff" slightly changed by me).

  [The fate of "test-nroff" was decided in groff bug #55941.]

   * What was the outcome of this action?


an.tmac:<stdin>:36: misuse, warning: .BR is for at least 2 arguments, got 1
        Use macro '.B' for one argument or split argument.
troff:<stdin>:54: warning: trailing space in the line


   * What outcome did you expect instead?

     No output (no warnings).

-.-

  General remarks and further material, if a diff-file exist, are in the
attachments.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.10-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libselinux1-dev depends on:
ii  libpcre2-dev  10.44-5
ii  libselinux1   3.7-3+b1
ii  libsepol-dev  3.7-1

libselinux1-dev recommends no packages.

libselinux1-dev suggests no packages.

-- no debconf information
Input file is get_ordered_context_list.3

Output from "mandoc -T lint  get_ordered_context_list.3": (shortened list)

      1 input text line longer than 80 bytes: get_ordered_context_...
      2 unterminated quoted argument
      1 whitespace at end of input line

-.-.

Output from "test-groff -mandoc -t -ww -z get_ordered_context_list.3": 
(shortened list)

      1         Use macro '.B' for one argument or split argument.
      1 .BR is for at least 2 arguments, got 1
      1 trailing space in the line

-.-.

Remove space characters (whitespace) at the end of lines.
Use "git apply ... --whitespace=fix" to fix extra space issues, or use
global configuration "core.whitespace".

Number of lines affected is

1

-.-.

Wrong distance between sentences in the input file.

  Separate the sentences and subordinate clauses; each begins on a new
line.  See man-pages(7) ("Conventions for source file layout") and
"info groff" ("Input Conventions").

  The best procedure is to always start a new sentence on a new line,
at least, if you are typing on a computer.

Remember coding: Only one command ("sentence") on each (logical) line.

E-mail: Easier to quote exactly the relevant lines.

Generally: Easier to edit the sentence.

Patches: Less unaffected text.

Search for two adjacent words is easier, when they belong to the same line,
and the same phrase.

  The amount of space between sentences in the output can then be
controlled with the ".ss" request.

Mark a final abbreviation point as such by suffixing it with "\&".

98:authorized contexts could not be obtained. Caller must free via

-.-.

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause; after punctuation marks.

Line 1, length 84

.TH "get_ordered_context_list" "3" "1 January 2004" "[email protected]" 
"SELinux"

Line 3, length 296

get_ordered_context_list, get_ordered_context_list_with_level, 
get_default_context, get_default_context_with_level, 
get_default_context_with_role, get_default_context_with_rolelevel, 
query_user_context, manual_user_enter_context, get_default_role \- determine 
SELinux context(s) for user sessions

Line 10, length 98

.BI "int get_ordered_context_list(const char *" user ", const char *" fromcon 
", char ***" list );

Line 12, length 132

.BI "int get_ordered_context_list_with_level(const char *" user ", const char 
*" level ", const char *" fromcon ", char ***" list );

Line 14, length 94

.BI "int get_default_context(const char *" user ", const char *" fromcon ", 
char **" newcon );

Line 16, length 128

.BI "int get_default_context_with_level(const char *" user ", const char *" 
level ", const char *" fromcon ", char **" newcon );

Line 18, length 127

.BI "int get_default_context_with_role(const char *" user ", const char *" role 
", const char *" fromcon ", char **" newcon ");

Line 20, length 155

.BI "int get_default_context_with_rolelevel(const char *" user ", const char *" 
role ", const char *" level ", const char *" fromcon ", char **" newcon ");


-.-.

The name of a man page is typeset in bold and the section in roman
(see man-pages(7)).

36:.BR getseuserbyname(3)

-.-.

Remove quotes when there is a printable
but no space character between them
and the quotes are not for emphasis (markup),
for example as an argument to a macro.

1:.TH "get_ordered_context_list" "3" "1 January 2004" "[email protected]" 
"SELinux"
2:.SH "NAME"
5:.SH "SYNOPSIS"
28:.SH "DESCRIPTION"

-.-.

Use ".na" (no adjustment) instead of ".ad l" and then ".ad" to begin the
same adjustment again as before

116:.ad l

-.-.

Output from "test-groff  -mandoc -t -K utf8 -rF0 -rHY=0 -rCHECKSTYLE=10 -ww -z 
":

an.tmac:<stdin>:36: misuse, warning: .BR is for at least 2 arguments, got 1
        Use macro '.B' for one argument or split argument.
troff:<stdin>:54: warning: trailing space in the line
--- get_ordered_context_list.3  2025-01-31 19:46:45.441603601 +0000
+++ get_ordered_context_list.3.new      2025-01-31 20:04:01.481292997 +0000
@@ -1,23 +1,34 @@
-.TH "get_ordered_context_list" "3" "1 January 2004" "[email protected]" 
"SELinux"
-.SH "NAME"
-get_ordered_context_list, get_ordered_context_list_with_level, 
get_default_context, get_default_context_with_level, 
get_default_context_with_role, get_default_context_with_rolelevel, 
query_user_context, manual_user_enter_context, get_default_role \- determine 
SELinux context(s) for user sessions
+.TH get_ordered_context_list 3 "1 January 2004" [email protected] SELinux
+.SH NAME
+get_ordered_context_list, get_ordered_context_list_with_level,
+get_default_context, get_default_context_with_level,
+get_default_context_with_role, get_default_context_with_rolelevel,
+query_user_context, manual_user_enter_context, get_default_role \- determine
+SELinux context(s) for user sessions
 .
-.SH "SYNOPSIS"
+.SH SYNOPSIS
 .B #include <selinux/selinux.h>
 .br
 .B #include <selinux/get_context_list.h>
 .sp
-.BI "int get_ordered_context_list(const char *" user ", const char *" fromcon 
", char ***" list );
+.BI "int get_ordered_context_list(const char *" user ", const char *" \
+fromcon ", char ***" list );
 .sp
-.BI "int get_ordered_context_list_with_level(const char *" user ", const char 
*" level ", const char *" fromcon ", char ***" list );
+.BI "int get_ordered_context_list_with_level(const char *" user \
+", const char *" level ", const char *" fromcon ", char ***" list );
 .sp
-.BI "int get_default_context(const char *" user ", const char *" fromcon ", 
char **" newcon );
+.BI "int get_default_context(const char *" user ", const char *" fromcon \
+", char **" newcon );
 .sp
-.BI "int get_default_context_with_level(const char *" user ", const char *" 
level ", const char *" fromcon ", char **" newcon );
+.BI "int get_default_context_with_level(const char *" user ", const char *" \
+level ", const char *" fromcon ", char **" newcon );
 .sp
-.BI "int get_default_context_with_role(const char *" user ", const char *" 
role ", const char *" fromcon ", char **" newcon ");
+.BI "int get_default_context_with_role(const char *" user ", const char *" \
+role ", const char *" fromcon ", char **" newcon );
 .sp
-.BI "int get_default_context_with_rolelevel(const char *" user ", const char 
*" role ", const char *" level ", const char *" fromcon ", char **" newcon ");
+.BI "int get_default_context_with_rolelevel(const char *" user \
+", const char *" role ", const char *" level ", const char *" fromcon \
+", char **" newcon );
 .sp
 .BI "int query_user_context(char **" list ", char **" newcon );
 .sp
@@ -25,15 +36,17 @@ get_ordered_context_list, get_ordered_co
 .sp
 .BI "int get_default_type(const char *" role ", char **" type );
 .
-.SH "DESCRIPTION"
+.SH DESCRIPTION
 
 This family of functions can be used to obtain either a prioritized list of
 all reachable security contexts for a given SELinux user or a single default
 (highest priority) context for a given SELinux user for use by login-like
-programs.  These functions takes a SELinux user identity that must
-be defined in the SELinux policy as their input, not a Linux username.
+programs.
+These functions takes a SELinux user identity that must
+be defined in the SELinux policy as their input,
+not a Linux username.
 Most callers should typically first call
-.BR getseuserbyname(3)
+.BR getseuserbyname (3)
 to look up the SELinux user identity and level for a given
 Linux username and then invoke one of
 .BR get_ordered_context_list_with_level ()
@@ -51,11 +64,14 @@ context based on the global
 .I \%/etc/selinux/{SELINUXTYPE}/contexts/default_contexts
 file and the per-user
 .I \%/etc/selinux/{SELINUXTYPE}/contexts/users/<username>
-file if it exists.  The 
+file if it exists.
+The
 .I fromcon
 parameter may be NULL to indicate that the current context should
-be used.  The function returns the number of contexts in the
-list, or \-1 upon errors.  The list must be freed using the
+be used.
+The function returns the number of contexts in the list,
+or \-1 upon errors.
+The list must be freed using the
 .BR freeconary (3)
 function.
 
@@ -79,8 +95,9 @@ function and applies the specified level
 .BR get_default_context_with_role ()
 is the same as
 .BR get_default_context ()
-but only returns a context with the specified role, returning \-1 if no
-such context is reachable for the user.
+but only returns a context with the specified role,
+returning \-1
+if no such context is reachable for the user.
 
 .BR get_default_context_with_rolelevel ()
 invokes the
@@ -88,14 +105,16 @@ invokes the
 function and applies the specified level.
 
 .BR query_user_context ()
-takes a list of contexts, queries the user via stdin/stdout as to which context
-they want, and returns a new context as selected by the user (which has to be
-freed with
+takes a list of contexts,
+queries the user via stdin/stdout as to which context they want,
+and returns a new context as selected by the user
+(which has to be freed with
 .BR freecon (3)).
 
 .BR manual_user_enter_context ()
 allows the user to manually enter a context as a fallback if a list of
-authorized contexts could not be obtained. Caller must free via
+authorized contexts could not be obtained.
+Caller must free via
 .BR freecon (3).
 
 .BR get_default_type ()
@@ -103,7 +122,8 @@ Get the default type (domain) for
 .I role
 and set
 .I type
-to refer to it, which has to be freed with free.
+to refer to it,
+which has to be freed with free.
 .
 .SH "RETURN VALUE"
 .BR get_ordered_context_list ()
@@ -113,7 +133,7 @@ return the number of contexts in the lis
 The other functions return 0 for success or \-1 for errors.
 .
 .SH "SEE ALSO"
-.ad l
+.na
 .nh
 .BR selinux (8),
 .BR freeconary (3),
  Any program (person), that produces man pages, should check the output
for defects by using (both groff and nroff)

[gn]roff -mandoc -t -ww -b -z -K utf8  <man page>

  The same goes for man pages that are used as an input.

  For a style guide use

  mandoc -T lint

-.-

  Any "autogenerator" should check its products with the above mentioned
'groff', 'mandoc', and additionally with 'nroff ...'.

  It should also check its input files for too long (> 80) lines.

  This is just a simple quality control measure.

  The "autogenerator" may have to be corrected to get a better man page,
the source file may, and any additional file may.

  Common defects:

  Not removing trailing spaces (in in- and output).
  The reason for these trailing spaces should be found and eliminated.

  Not beginning each input sentence on a new line.
Line length should thus be reduced.

  The script "reportbug" uses 'quoted-printable' encoding when a line is
longer than 1024 characters in an 'ascii' file.

  See man-pages(7), item "semantic newline".

-.-

The difference between the formatted output of the original and patched file
can be seen with:

  nroff -mandoc <file1> > <out1>
  nroff -mandoc <file2> > <out2>
  diff -u <out1> <out2>

and for groff, using

\"printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -mandoc -Z - \"

instead of 'nroff -mandoc'

  Add the option '-t', if the file contains a table.

  Read the output from 'diff -u ...' with 'less -R' or similar.

-.-.

  If 'man' (man-db) is used to check the manual for warnings,
the following must be set:

  The option \"-warnings=w\"

  The environmental variable:

export MAN_KEEP_STDERR=yes (or any non-empty value)

  or

  (produce only warnings):

export MANROFFOPT=\"-ww -b -z\"

export MAN_KEEP_STDERR=yes (or any non-empty value)

-.-

--- End Message ---
--- Begin Message ---
Source: libselinux
Source-Version: 3.8-1
Done: Russell Coker <[email protected]>

We believe that the bug you reported is fixed in the latest version of
libselinux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Russell Coker <[email protected]> (supplier of updated libselinux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 06 Feb 2025 15:01:30 +1100
Source: libselinux
Architecture: source
Version: 3.8-1
Distribution: unstable
Urgency: medium
Maintainer: Debian SELinux maintainers <[email protected]>
Changed-By: Russell Coker <[email protected]>
Closes: 1094854 1094856 1094861 1094865 1094886 1094888 1095045 1095046
Changes:
 libselinux (3.8-1) unstable; urgency=medium
 .
   * Added man page cleanups from Bjarni Ingi Gislason:
     getcon(3) Closes: #1094854 getexeccon(3) Closes: #1094856
     get_ordered_context_list(3) Closes: #1094861
     getseuserbyname(3) Closes: #1094865 init_selinuxmnt(3) Closes: #1094886
     is_selinux_enabled(3) Closes: #1094888 matchpathcon(3) Closes: #1095045
     matchpathcon_checkmatches(3) Closes: #1095046
   * Removed patches for the selabel_open() SEGV and the SWIG support as they
     were merged upstream
Checksums-Sha1:
 bc0642b5411a151b1ccc7826f5b5451a440c2ad7 2990 libselinux_3.8-1.dsc
 dd7528224a118c95356c228ad1c8bf86b3a15673 204389 libselinux_3.8.orig.tar.gz
 e0fdf1285ac2c8a4ca8e3036eaed46a8d9c84f42 833 libselinux_3.8.orig.tar.gz.asc
 28f09d90bf366f636307141d2ed9d7fb30b3578b 47892 libselinux_3.8-1.debian.tar.xz
 d326f7bdd8fddfc94a1d14b010c4bcbb4b4c233d 17052 libselinux_3.8-1_amd64.buildinfo
Checksums-Sha256:
 71e03585381c56c9d87c9e1d8b3ecf264c9a2a7e0af168ea35061f6d971663ce 2990 
libselinux_3.8-1.dsc
 0c3756bca047c9270281d7c4dcdecd000b72e38a183c930661eba9690839b541 204389 
libselinux_3.8.orig.tar.gz
 7f33102d9602cf9b52ee8fdadc76c279abad39d4ac81aebd23564cc52a8a6c36 833 
libselinux_3.8.orig.tar.gz.asc
 08aa33ad05c74104b42764966e69a94b0d424335634aa717f4b958f61d12ca68 47892 
libselinux_3.8-1.debian.tar.xz
 d8418edaa305a35f40af6382d37eea8524eaa407c323e9d9bdfb33a230ebe7bf 17052 
libselinux_3.8-1_amd64.buildinfo
Files:
 cf24df287cf8009f374dc69a5713b539 2990 libs optional libselinux_3.8-1.dsc
 af4b7d1b3b2d32d4c1397604d66de76f 204389 libs optional 
libselinux_3.8.orig.tar.gz
 bcc36dd468d655a38188a19109a441be 833 libs optional 
libselinux_3.8.orig.tar.gz.asc
 d8d855d3c7a30258e98b5afd1d154364 47892 libs optional 
libselinux_3.8-1.debian.tar.xz
 d0c5df75a7f1cb06625cef53a515e946 17052 libs optional 
libselinux_3.8-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn31hncwG9XwCqmbH0UHNMPxLj3kFAmekeJAACgkQ0UHNMPxL
j3kWDA/+JiNgL2fbLtdY1yRcTRwVx1wVK0HNfuPHHVOy/RkDlgYHDN32VQcMwATM
34YQKE1RodTSL0giEqJgVRBrldDK6Cdo4JMIHzbvehKBSW2FGTs9UTPgJLJhtcSh
0vfrarAkjGi0QrOu2S/kYqdJsSIEQt3l3imkRzpg8dn7k7NqiX6pBizIzsvPQ4Qb
Hg+/6x+4KxuLuI83j+UypDH5MQErlBfTER7GXhDxDh2/oJAfLez57pyqwSb/0Q4p
pZQVEOch1gBA+Ll3VVwfDK0RZUTdJS0cavZIMu4DzhePU83ddxtsMgQjPPA+M0CZ
UHNnFMauOrc7JW7HviQl9VvdWNl7sYuVATsLkJJDXzW8xYrSHqhl4zAX8y/ySpPo
NHVC/cQISS5rTIXFGChWr2KvlzjUp8tO/dB/AoAWv2msjR49J3q7SMj/bi5gY413
bxS4ZcpXcHOJKpTNyrqXi5lCThcM0M/1a3x29GhdT18ujzKj8kCBUAz1E3Gg2Cs7
M5FBD+wsGMjOB4jKOdDCszYXo9GCMpjV4xWJF7tUnguSBykO6umLjsZTqzQfCv04
OytEpGYYXNDlYT1VmUg7HuReizzo3CT7aqM/HRA+Sg8OK2lVNHFLxW9lJ7De/wLn
c67P4EsS8vtewc7P1D0f61w1Z06BFwF2tt3NURmWLFIDql25NME=
=hjsb
-----END PGP SIGNATURE-----

Attachment: pgpTY_UM6gGUm.pgp
Description: PGP signature


--- End Message ---

Reply via email to