Skip to content

dispol: add batch execution mode

Masatake YAMATO selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dispol: extend usage() to take error code as an argumentcheckpolicy/test/dispol.c+4 -30 replies
1/5dispol: extend usage() to take exit statuscheckpolicy/test/dispol.c+3 -31 reply
2/5dispol: add an option for printing the command usagecheckpolicy/test/dispol.c+6 -21 reply
3/5dispol: introduce a local variable representing the input filecheckpolicy/test/dispol.c+6 -40 replies
4/5dispol: introduce -b option to run commands in batchcheckpolicy/test/dispol.c+38 -110 replies
5/5dispol: add the list of commands for batch mode to help messagecheckpolicy/test/dispol.c+19 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] dispol: add batch execution mode

dispol command requires interaction, and is not suitable for using in a script. This patch set introduces -b that is for running dispol in non-interactively.

An example:

    $ ./dispol -b 1 /sys/fs/selinux/policy
    allow deltacloudd_log_t tmp_t : filesystem { associate };
    allow kern_unconfined sysctl_type : lnk_file { ioctl read ...
    ...

Masatake YAMATO (5):
dispol: extend usage() to take exit status
dispol: add an option for printing the command usage
dispol: introduce a local variable representing the input file
dispol: introduce -b option to run commands in batch
dispol: add the list of commands for batch mode to help message

 checkpolicy/test/dispol.c | 96 ++++++++++++++++++++++++++++-----------
 1 file changed, 69 insertions(+), 27 deletions(-)
Signature · 1 line
2.21.0