libselinux: sefcontext_compile.8 updates
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 4 repliesIn review
- v13 patches 3 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | libselinux: add -r option to sefcontext_compile.8libselinux/ libselinux/ | +9 | 2 replies | |
| 2/3 | libselinux: add -i option to sefcontext_compile.8libselinux/ libselinux/ | +14 | 1 reply | |
| 3/3 | libselinux: add -V option to sefcontext_compile.8libselinux/ | +4 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Stephen Smalley |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] libselinux: sefcontext_compile.8 updates
I noticed a few missing entries in sefcontext_compile.8. They are included in the usage string. These patches add them to the documentation.
I believe I've fixed all the issues noted with v1, but we shall see. Others may turn up still too.
Todd Zullinger (3):
libselinux: add -r option to sefcontext_compile.8
libselinux: add -i option to sefcontext_compile.8
libselinux: add -V option to sefcontext_compile.8
libselinux/man/man8/sefcontext_compile.8 | 25 ++++++++++++++++++++++++ libselinux/utils/sefcontext_compile.c | 4 ++-- 2 files changed, 27 insertions(+), 2 deletions(-)
Range-diff against v1:
1: 2c228939 ! 1: f422645c libselinux: add -r option to sefcontext_compile.8
@@ Commit message
regular expressions.
The man page was not updated for either commit, leaving this option
- documented only the usage string.
+ documented only in the usage string.
+
+ Update the usage string to include "-r" as well.
## libselinux/man/man8/sefcontext_compile.8 ##
+@@ libselinux/man/man8/sefcontext_compile.8: sefcontext_compile \- compile file context regular expression files
+ .
+ .SH "SYNOPSIS"
+ .B sefcontext_compile
++.RB [ \-r ]
+ .RB [ \-o
+ .IR outputfile ]
+ .RB [ \-p
@@ libselinux/man/man8/sefcontext_compile.8: that will be used to validate the context entries in the
.br
If an invalid context is found the pcre formatted file will not be written and
@@ libselinux/man/man8/sefcontext_compile.8: that will be used to validate the cont
.SH "RETURN VALUE"
On error -1 is returned. On success 0 is returned.
+
+ ## libselinux/utils/sefcontext_compile.c ##
+@@ libselinux/utils/sefcontext_compile.c: err:
+ static __attribute__((__noreturn__)) void usage(const char *progname)
+ {
+ fprintf(stderr,
+- "usage: %s [-iV] [-o out_file] [-p policy_file] fc_file\n"
++ "usage: %s [-riV] [-o out_file] [-p policy_file] fc_file\n"
+ "Where:\n\t"
+ "-o Optional file name of the PCRE formatted binary\n\t"
+ " file to be output. If not specified the default\n\t"
2: fdce522e ! 2: b9797123 libselinux: add -i option to sefcontext_compile.8
@@ Commit message
The -i option was added in 487d652e (libselinux: sefcontext_compile: Add "-i" flag, 2016-09-28) but the man page was not updated accordingly.
+ Correct 'info end exit' to 'info and exit' in the usage string.
+
## libselinux/man/man8/sefcontext_compile.8 ##
+@@ libselinux/man/man8/sefcontext_compile.8: sefcontext_compile \- compile file context regular expression files
+ .SH "SYNOPSIS"
+ .B sefcontext_compile
+ .RB [ \-r ]
++.RB [ \-i ]
+ .RB [ \-o
+ .IR outputfile ]
+ .RB [ \-p
@@ libselinux/man/man8/sefcontext_compile.8: Omit precompiled regular expressions from the output.
(PCRE2 only. Compiled PCRE2 regular expressions are not portable across
architectures. Use this flag if you know that you build for an incompatible
architecture to save space. When linked against PCRE1 this flag is ignored.)
+.TP
+.B \-i
-+Print regular expression info end exit. That is, back end version and
++Print regular expression info and exit. That is, back end version and
+architecture identifier. Arch identifier format (PCRE2):
+.br
+.in +4n
@@ libselinux/man/man8/sefcontext_compile.8: Omit precompiled regular expressions f
.SH "RETURN VALUE"
On error -1 is returned. On success 0 is returned.
+
+ ## libselinux/utils/sefcontext_compile.c ##
+@@ libselinux/utils/sefcontext_compile.c: static __attribute__((__noreturn__)) void usage(const char *progname)
+ " if you know that you build for an incompatible\n\t"
+ " architecture to save space. When linked against\n\t"
+ " PCRE1 this flag is ignored.)\n\t"
+- "-i Print regular expression info end exit. That is, back\n\t"
++ "-i Print regular expression info and exit. That is, back\n\t"
+ " end version and architecture identifier.\n\t"
+ " Arch identifier format (PCRE2):\n\t"
+ " <pointer width>-<size type width>-<endianness>, e.g.,\n\t"
3: 738e1a7d ! 3: bbeecfb0 libselinux: add -V option to sefcontext_compile.8
@@ Commit message
libselinux: add -V option to sefcontext_compile.8
The -V option was added in 92306daf (libselinux: rework selabel_file(5)
- database, 2024-11-05), but the man page was not update accordingly.
+ database, 2024-11-05), but the man page was not updated accordingly.
## libselinux/man/man8/sefcontext_compile.8 ##
+@@ libselinux/man/man8/sefcontext_compile.8: sefcontext_compile \- compile file context regular expression files
+ .B sefcontext_compile
+ .RB [ \-r ]
+ .RB [ \-i ]
++.RB [ \-V ]
+ .RB [ \-o
+ .IR outputfile ]
+ .RB [ \-p
@@ libselinux/man/man8/sefcontext_compile.8: architecture identifier. Arch identifier format (PCRE2):
.br
.in
Signature · 1 line
2.56.0