-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs allow/unallow should work with numeric uid/gid #10280
Conversation
And that should work even (especially) if there is no matching user or group name. The change is originally by Xin Lin <delphij@FreeBSD.org>. Signed-off-by: Andriy Gapon <avg@FreeBSD.org>
Sorry that openzfs/openzfs#690 fell through the cracks. Thanks for picking it up again. FYI, It looks like @prakashsurya sent the RTI, and there was a question from @rmustacc:
I see the example output |
Codecov Report
@@ Coverage Diff @@
## master #10280 +/- ##
==========================================
- Coverage 79.52% 79.51% -0.01%
==========================================
Files 389 389
Lines 123120 123123 +3
==========================================
- Hits 97906 97897 -9
- Misses 25214 25226 +12
Continue to review full report at Codecov.
|
I am also not sure if Robert meant that.
|
@ahrens, @avg-I To clarify, the question I was asking was related to error paths with as highlighted above (at least, I think). At the time it seemed like the automated testing didn't cover them, so I was trying to make sure they had been manually verified on illumos by the folks submitting the change. It's not really relevant here, but since @prakashsurya didn't know the answer and Yuri never got back to us, that's why it lingered, unfortunately. |
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 Obtained from: delphij MFC after: 2 weeks git-svn-id: svn+ssh://svn.freebsd.org/base/head@360956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 Obtained from: delphij MFC after: 2 weeks
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 Obtained from: delphij MFC after: 2 weeks
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 Obtained from: delphij MFC after: 2 weeks git-svn-id: svn+ssh://svn.freebsd.org/base/head@360956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
On 6/2/20 2:43 PM, Pavel Snajdr wrote:
Is '?' a valid username on any of the potential platforms?
Depends on what you mean by valid. While tools like useradd/adduser
probably will reject it, you can easily add a user to /etc/passwd or
/etc/shadow with a username of '?' and use tools like su and id to tell
you about the user. I did that on an Ubuntu install just now as a poc.
In general, I would assume that folks can make usernames into just about
an arbitrary thing they want based on editing /etc/passwd with varying
degrees of that working throughout a broader system.
|
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 Obtained from: delphij MFC after: 2 weeks git-svn-id: https://svn.freebsd.org/base/head@360956 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
And that should work even (especially) if there is no matching user or group name. This change allows to see and modify delegations for deleted groups and users. The change is originally by Xin Li. illumos report: https://www.illumos.org/issues/6037 OpenZFS (ZoL) PR: openzfs/zfs#10280 git-svn-id: https://svn.freebsd.org/base/stable/12@361496 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Looks like this simple change is getting stuck again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avg-I that sounds like a good plan to me. If the format ends up being a problem we can always address it.
@behlendorf please forgive me for being off-topic on this one, I don't know of a better channel where to relay this - when I was commenting on some recent PRs, it is really so that even a minor comment can postpone the merging of even the simplest change. This PR has come to mind today again with a tweet from someone I respect from the OSS world - I think here at OpenZFS, we can relate a lot to that: https://twitter.com/domenkozar/status/1273537675639894016 I'm sure this is not the best place to lead such a discussion, but I just wanted to leave it somewhere as a note - if there's a better place to open up a discussion about this... I think the best we can do about the nitpicking is to somehow mention that somewhere in the contributors guidelines as a pledge for reviewers to stay most on-point as possible. |
And that should work even (especially) if there is no matching user or group name. The change is originally by Xin Lin <delphij@FreeBSD.org>. Original-patch-by: Xin Li <delphij@FreeBSD.org> Reviewed-by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed-by: Andy Stormont <astormont@racktopsystems.com> Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Andriy Gapon <avg@FreeBSD.org> Closes openzfs#9792 Closes openzfs#10280
And that should work even (especially) if there is no matching user or group name. The change is originally by Xin Lin <delphij@FreeBSD.org>. Original-patch-by: Xin Li <delphij@FreeBSD.org> Reviewed-by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed-by: Andy Stormont <astormont@racktopsystems.com> Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Andriy Gapon <avg@FreeBSD.org> Closes openzfs#9792 Closes openzfs#10280
And that should work even (especially) if there is no matching user or
group name. The change is originally by Xin Li delphij@FreeBSD.org.
The originally submitted pull request is openzfs/openzfs#690 for the old OpenZFS.
It passed automated tests and it was reviewed and accepted, but for some reason never committed to illumos.
This change should fix issue #9792.
Original illumos bug report: https://www.illumos.org/issues/6037
With this patch I am able to see and remove permission delegations for users that have been deleted after those permissions were delegated.
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Performance enhancement (non-breaking change which improves efficiency)
Code cleanup (non-breaking change which makes code smaller or more readable)
Breaking change (fix or feature that would cause existing functionality to change)
Documentation (a change to man pages or other documentation)
My code follows the ZFS on Linux code style requirements.
I have updated the documentation accordingly.
I have read the contributing document.
I have added tests to cover my changes.
I have run the ZFS Test Suite with this change applied.
All commit messages are properly formatted and contain
Signed-off-by
.