Pádraig Brady
e972be3c4b
chroot: improve --userspec and --groups look-up
...
- Support arbitrary numbers in --groups, consistent with
what is already done for --userspec
- Avoid look-ups entirely for --groups items with a leading '+'
- Support names that are actually numbers in --groups
- Ignore an empty --groups="" option for consistency with --userspec
- Look up both inside and outside the chroot with inside taking
precedence. The look-up outside may load required libraries
to complete the look-up inside the chroot. This can happen for
example with a 32 bit chroot on a 64 bit system, where the
32 bit NSS plugins within the chroot fail to load.
* src/chroot.c (parse_additional_groups): A new function refactored
from set_addition_groups(), to just do the parsing. The actual
setgroups() call is separated out for calling from the chroot later.
(main): Call parse_user_spec() and parse_additional_groups()
both outside and inside the chroot for the reasons outlined above.
* tests/misc/chroot-credentials.sh: Ensure arbitrary numeric IDs
can be specified without causing look-up errors.
* NEWS: Mention the improvements.
* THANKS.in: Add Norihiro Kamae who initially reported the issue
with a proposed patch.
Also thanks to Dmitry V. Levin for his diagnosis and sample patch.
2014-03-13 14:07:45 +00:00
..
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-03-13 14:07:45 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-02-27 23:56:28 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-03-05 19:02:20 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-02-09 20:22:33 +00:00
2014-01-02 22:19:59 +01:00
2014-02-09 21:37:24 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-03-05 19:02:20 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-03-05 18:08:17 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-02-09 11:29:24 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-03-05 19:02:20 +00:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-02-23 15:35:27 -08:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00
2014-01-02 22:19:59 +01:00