Relative Content

Tag Archive for linuxgosystemdgolandpam

Manually start a second AstraLinux session as another user on a virtual display with low integrity level

I need to run a session as user1 from an already running session of user2 on a virtual display and I need to keep the integrity level low.
Here is my implementation of the Go code to start the session:
`
type LaunchService struct {
displayNumberID string
customEnv []string
displayNumber int
processes map[string]int
ConnStatus models.Status
log *zerolog.Logger
sListener *SocketListener
execCommand func(name string, arg …string) *exec.Cmd
}

Manually start a second AstraLinux session as another user on a virtual display with low integrity level

I need to run a session as user1 from an already running session of user2 on a virtual display and I need to keep the integrity level low.
Here is my implementation of the Go code to start the session:
`
type LaunchService struct {
displayNumberID string
customEnv []string
displayNumber int
processes map[string]int
ConnStatus models.Status
log *zerolog.Logger
sListener *SocketListener
execCommand func(name string, arg …string) *exec.Cmd
}