dispol: add batch execution mode
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | dispol: extend usage() to take error code as an argumentcheckpolicy/ | +4 | 0 replies | |
| 1/5 | dispol: extend usage() to take exit statuscheckpolicy/ | +3 | 1 reply | |
| 2/5 | dispol: add an option for printing the command usagecheckpolicy/ | +6 | 1 reply | |
| 3/5 | dispol: introduce a local variable representing the input filecheckpolicy/ | +6 | 0 replies | |
| 4/5 | dispol: introduce -b option to run commands in batchcheckpolicy/ | +38 | 0 replies | |
| 5/5 | dispol: add the list of commands for batch mode to help messagecheckpolicy/ | +19 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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