2024-10-25 17:12:13 +09:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.ophivana.moe/security/fortify/helper/bwrap"
|
2024-11-02 03:03:44 +09:00
|
|
|
"git.ophivana.moe/security/fortify/internal/linux"
|
2024-10-25 17:12:13 +09:00
|
|
|
"git.ophivana.moe/security/fortify/internal/system"
|
|
|
|
)
|
|
|
|
|
2024-11-02 03:03:44 +09:00
|
|
|
func NewWithID(id ID, os linux.System) App {
|
2024-10-25 17:12:13 +09:00
|
|
|
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
|
|
|
|
}
|