This repository has been archived by the owner on Oct 2, 2022. It is now read-only.
generated from ContainerSSH/library-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodes.go
30 lines (21 loc) · 1.44 KB
/
codes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package security
// A program execution request has been rejected because it doesn't conform to the security settings.
const EExecRejected = "SECURITY_EXEC_REJECTED"
// Program execution failed in conjunction with the forceCommand option because ContainerSSH could not set the
// `SSH_ORIGINAL_COMMAND` environment variable on the backend.
const EFailedSetEnv = "SECURITY_EXEC_FAILED_SETENV"
// ContainerSSH is replacing the command passed from the client (if any) to the specified command and is setting the
// `SSH_ORIGINAL_COMMAND` environment variable.
const MForcingCommand = "SECURITY_EXEC_FORCING_COMMAND"
// ContainerSSH rejected launching a shell due to the security settings.
const EShellRejected = "SECURITY_SHELL_REJECTED"
// ContainerSSH rejected the subsystem because it does pass the security settings.
const ESubsystemRejected = "SECURITY_SUBSYSTEM_REJECTED"
// ContainerSSH rejected the pseudoterminal request because of the security settings.
const ETTYRejected = "SECURITY_TTY_REJECTED"
// ContainerSSH rejected setting the environment variable because it does not pass the security settings.
const EEnvRejected = "SECURITY_ENV_REJECTED"
// ContainerSSH rejected delivering a signal because it does not pass the security settings.
const ESignalRejected = "SECURITY_SIGNAL_REJECTED"
// The client has reached the maximum number of configured sessions, the new session request is therefore rejected.
const EMaxSessions = "SECURITY_MAX_SESSIONS"