mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
service: lift the limit of four supplementary groups
A service listing more than four supplementary groups, in extra-groups
or as @user:group,sup1,sup2,..., got only the first four:
too many supplementary groups, max 4
The names were stored in a fixed array of four. It was also only
reset when the new configuration listed groups, so groups dropped from
a service lingered until reboot.
Store the list as one string, split when the service starts, and set
it on every (re)registration. A list longer than 511 characters drops
the name it cuts off, which may otherwise match another group.
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
5 files changed
+76
-22
No files matched your search
@@ -143,6 +143,10 @@ All relevant changes are documented in this file.
|
||||
- Service `user:` and `group:` names, including supplementary groups, can
|
||||
now be up to 63 characters, up from 15. Longer names were silently
|
||||
truncated before the lookup, so the service never started. By Anees Rehman
|
||||
- A service can have more than four supplementary groups, `extra-groups` or
|
||||
`@user:group,sup1,sup2,...`. The list may now be up to 511 characters.
|
||||
Groups dropped from a service's configuration are now also dropped the
|
||||
next time it starts, before they lingered until reboot
|
||||
- `stop:` and `reload:` scripts take a timeout of their own, `stop:5,/path`,
|
||||
defaulting to the kill delay as before. Such a line used to crash Finit at
|
||||
config load
|
||||
|
||||
Reference in new issue
Block a user