-
Notifications
You must be signed in to change notification settings - Fork 937
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
Device: Add ownership.inherit
setting for unix-hotplug
devices
#14417
Device: Add ownership.inherit
setting for unix-hotplug
devices
#14417
Conversation
a0b63fd
to
8fed8a3
Compare
unix-hotplug
ownership fixunix-hotplug
ownership fix
8fed8a3
to
0d5c055
Compare
@kadinsayani please can you update the PR description to explain the change of behaviour in this PR and what, if any, will change for existing users? |
Sure thing! |
db02e22
to
4c9ee63
Compare
Heads up @mionaalex - the "Documentation" label was applied to this issue. |
a25f26f
to
81478b0
Compare
13be986
to
ebc953a
Compare
@tomponline, do we need an API extension for the new setting even if we're not adding tests? |
ebc953a
to
c78aeda
Compare
yes new settings require API extensions in order for clients to be able to ascertain whether the server supports the setting. |
Gotcha, makes sense. |
c78aeda
to
2f191aa
Compare
8aa9181
to
b50e48b
Compare
c3562a4
to
c6ab941
Compare
unix-hotplug
ownership fixownership.inherit
setting for unix-hotplug
devices
c6ab941
to
41ef286
Compare
41ef286
to
98feba4
Compare
ownership.inherit
setting for unix-hotplug
devicesownership.inherit
setting for unix-hotplug
devices
98feba4
to
c143d04
Compare
@tomponline rebased 👍 |
rebase please |
…g copy logic Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
…icable Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
c143d04
to
de25799
Compare
Rebased. |
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.
Thanks!
Fixes the second bug raised in #14266.
This PR adds a setting,
ownership.inherit
forunix-hotplug
devices and a functionunixDeviceOwnership()
which returns device ownership.New behaviour:
ownership.inherit
isfalse
;ownership.inherit
is set totrue
, the device ownership is inherited from the host;ownership.inherit
cannot be set totrue
whengid
anduid
are set.Existing behaviour (unchanged):
gid
anduid
are set, they are used for device ownership;gid
anduid
are not present in the config, root (0) ownership is used.