aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/export_test.go
blob: 56eb4a31f91e24b4880487fcc6b25cbf214d5ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package app

import (
	"git.ophivana.moe/security/fortify/helper/bwrap"
	"git.ophivana.moe/security/fortify/internal/linux"
	"git.ophivana.moe/security/fortify/internal/system"
)

func NewWithID(id ID, os linux.System) App {
	a := new(app)
	a.id = &id
	a.os = os
	return a
}

func AppSystemBwrap(a App) (*system.I, *bwrap.Config) {
	v := a.(*app)
	return v.seal.sys.I, v.seal.sys.bwrap
}