forked from security/hakurei
internal/pipewire: handle SecurityContext::Create error
This method can result in an error targeting it, so it is handled here. This change also causes a call to Create to also Core::Sync, as it should have done. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -63,9 +63,6 @@ func (p *pipewireOp) apply(sys *I) (err error) {
|
||||
{Key: pipewire.PW_KEY_ACCESS, Value: "restricted"},
|
||||
}); err != nil {
|
||||
return newOpError("pipewire", err, false)
|
||||
} else if err = ctx.GetCore().Sync(); err != nil {
|
||||
_ = p.scc.Close()
|
||||
return newOpError("pipewire", err, false)
|
||||
}
|
||||
|
||||
if err = sys.chmod(p.dst.String(), 0); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user