Files
podman/pkg
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
..
2019-07-21 14:22:39 -05:00
2019-07-23 15:43:40 -04:00
2019-11-13 08:15:00 +11:00
2019-06-03 15:54:53 -04:00
2018-03-27 21:55:33 +00:00
2019-12-09 08:40:40 -06:00
2019-12-12 19:53:46 -03:00
2019-11-13 08:15:00 +11:00
2019-07-03 15:41:33 -05:00
2019-11-13 08:15:00 +11:00