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

lib/posix-fdio: Allow owner/group == -1 for fchown #1416

Merged
merged 1 commit into from
May 29, 2024

Conversation

andreittr
Copy link
Contributor

Description of changes

This change adds support in fchown for the owner or group to be passed as -1, in which case that particular field is left unchanged. This mimimcs the behavior of Linux.

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

Base target

  • Architecture(s): [e.g. x86_64 or N/A]
  • Platform(s): [e.g. kvm, xen or N/A]
  • Application(s): [e.g. app-python3 or N/A]

Additional configuration

N/A

This change adds support in fchown for the owner or group to be passed
as -1, in which case that particular field is left unchanged.
This mimimcs the behavior of Linux.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
@andreittr andreittr requested a review from a team as a code owner May 15, 2024 14:42
@github-actions github-actions bot added area/lib Internal Unikraft Microlibrary lang/c Issues or PRs to do with C/C++ labels May 15, 2024
@razvand razvand requested review from RaduNichita, StefanJum and Alex-deVis and removed request for a team May 21, 2024 20:26
@razvand razvand added this to the v0.17.0 (Calypso) milestone May 21, 2024
Copy link
Contributor

@RaduNichita RaduNichita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @andreittr !

Reviewed-by: Radu Nichita radunichita99@gmail.com

Copy link
Contributor

@Alex-deVis Alex-deVis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Approved-by: Alex Apostolescu alexx.apostolescu@gmail.com

Copy link
Contributor

@razvand razvand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved-by: Razvan Deaconescu razvand@unikraft.io

@razvand razvand added the merge Label to trigger merge action label May 29, 2024
@unikraft-bot unikraft-bot changed the base branch from staging to staging-1416 May 29, 2024 20:57
@unikraft-bot unikraft-bot merged commit 0f8f8a4 into unikraft:staging-1416 May 29, 2024
15 checks passed
unikraft-bot pushed a commit that referenced this pull request May 29, 2024
This change adds support in fchown for the owner or group to be passed
as -1, in which case that particular field is left unchanged.
This mimimcs the behavior of Linux.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Radu Nichita <radunichita99@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1416
@unikraft-bot unikraft-bot added ci/merged Merged by CI and removed merge Label to trigger merge action labels May 29, 2024
@andreittr andreittr deleted the ttr/fdio-fchown-1 branch May 30, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lib Internal Unikraft Microlibrary ci/merged Merged by CI lang/c Issues or PRs to do with C/C++
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

5 participants