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

Should OpenSSH relinquish file_link_any privilege ? #24

Open
dca58 opened this issue Aug 26, 2016 · 2 comments
Open

Should OpenSSH relinquish file_link_any privilege ? #24

dca58 opened this issue Aug 26, 2016 · 2 comments
Assignees

Comments

@dca58
Copy link

dca58 commented Aug 26, 2016

Trying to do a sftp "rename toto titi" fails with a permission denied when the owner of the file is not the connected user (even though the file is writeable by anyone, as well as its containing directory).

Tracing sshd with truss shows the offending system call:
link(".../toto", ".../titi") Err#1 EPERM [file_link_any]

This only happens when the client does not support the [email protected] otherwise a rename is done instead of a pair of link/unlink.
Test client: Sun_SSH_1.5, SSH protocols 1.5/2.0, OpenSSL 0x1000107f from omnios-6de5e81
Test Server: OpenSSH_7.1p2, OpenSSL 1.0.1p 9 Jul 2015 from http://pkgsrc.joyent.com/packages/SmartOS/2015Q4/x86_64/All

@nigoroll
Copy link

+1

@nigoroll
Copy link

looks like this is unconditionally hardcoded upstream via platform_pledge_sftp_server openssh/openssh-portable@4626cba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants