commit | e4725c1a9e1bc7b72e56bd8251ae4058d15a5e28 | [log] [tgz] |
---|---|---|
author | Andrew G. Morgan <morgan@kernel.org> | Fri Oct 22 20:50:43 2021 -0700 |
committer | Andrew G. Morgan <morgan@kernel.org> | Fri Oct 22 20:51:02 2021 -0700 |
tree | 978f7a5ad817505958bf63a73b5e5c8616899314 | |
parent | 687dc0b8fea42dd58a1b6ca8f50b28fe049bb2a7 [diff] |
Add --quiet and cap_launch() support to capsh. The flag --quiet causes capsh to suppress its startup check that the linked libcap has support for all of the named capabilities of the hosting kernel. The cap_launch() support is via "-+" and "=+" arguments. These use cap_launch() to fork() before exec*()ing the corresponding command but are otherwise equivalent to "--" and "==" respectively. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>