SelectAccount generates an Authorisation in the stream state. We
don't want to preserve that after we drop privs.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
})
}
MC::SetRestrictedSshScope { key } => {
+ if cs.account.is_some() { throw!(ME::AccountSpecified) }
let good_uid = Some(config().ssh_proxy_uid);
let auth = cs.authorised_uid(good_uid, Some("SetRestrictedScope"))
.map_err(|_| ME::AuthorisationError)?;
#[error("ssh key not found")] SshKeyNotFound,
#[error("ssh key id default, ie invalid")] InvalidSshKeyId,
#[error("ssh key invalid: {0}")] InvalidSshKey(#[from] sshkeys::KeyError),
+ #[error("command forbides account specified")] AccountSpecified,
}
impl From<InternalError> for MgmtError {