Skip to content
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

cockpit: support setting owner/group in fsreplace1 #21128

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jelly
Copy link
Member

@jelly jelly commented Oct 16, 2024

Cockpit-files wants to support uploading or creating a file owned by the current directory which might be different from the logged in user.

For example as superuser uploading a database into /var/lib/postgresql which would be owned by postgres and the database file should receive the same permissions.


This still needs tests, sadly we can't chown as a normal user so we can't easily write unittests unless we start creating a new user namespace and mapping that user in there (or depending on bwrap).

So I will work on creating integration tests with the playground page to have this properly tested in Cockpit.

@jelly jelly added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Oct 16, 2024
Cockpit-files wants to support uploading or creating a file owned by the
current directory which might be different from the logged in user.

For example as superuser uploading a database into `/var/lib/postgresql`
which would be owned by `postgres` and the database file should receive
the same permissions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-test For doc/workflow changes, or experiments which don't need a full CI run,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant