checkmodule: allow building modules of a specific version
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | checkmodule: add support for specifying module policy versioncheckpolicy/ checkpolicy/ | +31 | 1 reply | |
| 2/2 | dismod: print policy version of loaded modulescheckpolicy/ | +2 | 1 reply |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | James Carter |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] checkmodule: allow building modules of a specific version
These changes come from a report by a user on the Freenode IRC channel that they were unable to build policies for a machine that has an older version of libsepol installed.
A new -c option that mirrors checkpolicy's own has been added to checkmodule, and the output of a simple test is shown below:
$ cat > test.te <<EOF module test 1.0;
require {
type domain;
type file_type;
class file { read write };
}allow domain file_type : file { read write };
EOF
$ obj/usr/bin/checkmodule -m -M -c 10 -o test.mod test.te $ checkpolicy/test/dismod test.mod Reading policy... ... snip ... Binary policy module file loaded. Module name: test Module version: 1.0 Policy version: 10
Worthy of note, however, is that these policy version numbers differ from those used by the kernel policy format.
Gary Tierney (2):
checkmodule: add support for specifying module policy version
dismod: print policy version of loaded modules
checkpolicy/checkmodule.8 | 5 ++++- checkpolicy/checkmodule.c | 29 +++++++++++++++++++++++++++-- checkpolicy/test/dismod.c | 4 ++-- 3 files changed, 33 insertions(+), 5 deletions(-)
Signature · 1 line
2.17.2