spiegel_podman/cmd/podman/shared
Ed Santiago 40f55ca3fe signal parsing - better input validation
The helper function we use for signal name mapping does not
check for negative numbers nor invalid (too-high) ones. This
can yield unexpected error messages:

   # podman kill -s -1 foo
   ERRO[0000] unknown signal "18446744073709551615"

This PR introduces a small wrapper for it that:

  1) Strips off a leading dash, allowing '-1' or '-HUP'
     as valid inputs; and
  2) Rejects numbers <1 or >64 (SIGRTMAX)

Also adds a test suite checking signal handling as well as
ensuring that invalid signals are rejected by the command line.

Fixes: #4746

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-12-26 16:50:21 -07:00
..
parse codespell: spelling corrections 2019-11-13 08:15:00 +11:00
container.go Merge pull request #4596 from kunalkushwaha/container-prune 2019-12-02 18:33:58 -08:00
create.go signal parsing - better input validation 2019-12-26 16:50:21 -07:00
create_cli.go libpod: drop arbitrary memory limit of 4M 2019-12-17 15:07:43 +01:00
create_cli_test.go preparation for remote-client create container 2019-03-11 09:42:22 -05:00
funcs.go fix bug check nonexist authfile 2019-11-05 21:32:18 -05:00
funcs_test.go Add variable for global flags to runlabel 2019-05-02 12:14:51 -04:00
intermediate.go pull/create: add --override-arch/--override-os flags 2019-10-29 13:35:19 -04:00
intermediate_novarlink.go podman-remote create|run 2019-04-08 09:05:31 -05:00
intermediate_varlink.go pull/create: add --override-arch/--override-os flags 2019-10-29 13:35:19 -04:00
parallel.go codespell: spelling corrections 2019-11-13 08:15:00 +11:00
pod.go libpod removal from main (phase 2) 2019-06-27 07:56:24 -05:00
volumes_shared.go Add parsing for UID, GID in volume "o" option 2019-10-22 14:32:54 -04:00
workers.go codespell: spelling corrections 2019-11-13 08:15:00 +11:00