1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
patchback[bot] 5da6dc7d72
[PR #5943/53f72973 backport][stable-5] zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#6085)
zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#5943)

When setting allow permissions for particular users or groups
there will be circumstances when that user is not known to the
host system.

In that case the output of `zfs allow <pool/dataset>`
looks similar to this:

  $ sudo zfs allow tank/test
  ---- Permissions on tank/test ---------------------------------------
  Local+Descendent permissions:
    user (unknown: 1002) hold
    user zfsuser receive

The fix in this commit removes ' (unknown: '+')' from the output
leaving only the uid/gid.

This allows the current parser to continue even if the uid/gid
is not known.

This situation occurs most often when moving a zpool from one system
to another that may not have the same users/groups. Simply adding
permissions to a user/group and then deleting the user/group
from the system will cause this situation to occur.

(cherry picked from commit 53f729730b)

Co-authored-by: Phil Kauffman <philip@kauffman.me>
2023-02-25 11:48:29 +01:00
..
action/system Move licenses to LICENSES/, run add-license.py, add LICENSES/MIT.txt (#5065) (#5068) 2022-08-05 13:17:19 +02:00
become Make pfexec become usable for illumos (#3889) (#5339) 2022-10-05 12:49:38 +02:00
cache [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
callback [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
connection chroot plugin fix inventory_hostname var for remote_addr (#5570) (#5572) 2022-11-17 07:29:55 +01:00
doc_fragments [PR #5833/08b0ea70 backport][stable-5] ldap.py: capitalize one letter (#5835) 2023-01-14 18:30:16 +01:00
filter [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
inventory [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
lookup [stable-5] Remove unneccessary imports (#5977) 2023-02-12 20:22:36 +01:00
module_utils [PR #6034/f0529dcb backport][stable-5] lxd plugins and modules: fix TLS/SSL context creation (#6083) 2023-02-25 11:41:40 +01:00
modules [PR #5943/53f72973 backport][stable-5] zfs_delegate_admin: fix: zfs allow cannot parse unknown uid/gid (#6085) 2023-02-25 11:48:29 +01:00
test Fix more copyright lines, add more default copyright lines (#5095) (#5096) 2022-08-08 15:19:46 +02:00