mirror of git://anongit.mindrot.org/openssh.git
retain Solaris PRIV_FILE_LINK_ANY in sftp-server
Dropping this privilege removes the ability to create hard links to files owned by other users. This is required for the legacy sftp rename operation. bz#3036; approach ok Alex Wilson (the original author of the Solaris sandbox/pledge replacement code)
This commit is contained in:
parent
e50f808712
commit
6b7c53498d
|
@ -284,11 +284,10 @@ solaris_drop_privs_pinfo_net_fork_exec(void)
|
|||
priv_addset(npset, PRIV_FILE_OWNER) != 0)
|
||||
fatal("priv_addset: %s", strerror(errno));
|
||||
|
||||
if (priv_delset(npset, PRIV_FILE_LINK_ANY) != 0 ||
|
||||
if (priv_delset(npset, PRIV_PROC_EXEC) != 0 ||
|
||||
#ifdef PRIV_NET_ACCESS
|
||||
priv_delset(npset, PRIV_NET_ACCESS) != 0 ||
|
||||
#endif
|
||||
priv_delset(npset, PRIV_PROC_EXEC) != 0 ||
|
||||
priv_delset(npset, PRIV_PROC_FORK) != 0 ||
|
||||
priv_delset(npset, PRIV_PROC_INFO) != 0 ||
|
||||
priv_delset(npset, PRIV_PROC_SESSION) != 0)
|
||||
|
|
Loading…
Reference in New Issue