(profileName: string)
| 236 | } |
| 237 | |
| 238 | export function getFirejailProfileFilePath(profileName: string): string { |
| 239 | const propKey = `firejail.profile.${profileName}`; |
| 240 | const profilePath = execProps<string>(propKey); |
| 241 | if (profilePath === undefined) { |
| 242 | logger.error(`Could not find ${propKey}. Are you missing a definition?`); |
| 243 | throw new Error(`Missing firejail execution profile property key ${propKey}`); |
| 244 | } |
| 245 | return profilePath; |
| 246 | } |
| 247 | |
| 248 | const jailedHomeDir = '/app'; |
| 249 |
no test coverage detected