diff options
Diffstat (limited to 'cap/iab.go')
-rw-r--r-- | cap/iab.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -56,7 +56,7 @@ func IABInit() *IAB { } } -// IABGetProc summarizes the Inh, Amb and Bound capabilty vectors of +// IABGetProc summarizes the Inh, Amb and Bound capability vectors of // the current process. func IABGetProc() *IAB { iab := IABInit() @@ -188,14 +188,14 @@ func (sc *syscaller) iabSetProc(iab *IAB) (err error) { } // SetProc attempts to change the Inheritable, Ambient and Bounding -// capabilty vectors of the current process using the content, +// capability vectors of the current process using the content, // iab. The Bounding vector strongly affects the potential for setting // other bits, so this function carefully performs the the combined // operation in the most flexible manner. func (iab *IAB) SetProc() error { - scwMu.Lock() - defer scwMu.Unlock() - return multisc.iabSetProc(iab) + state, sc := scwStateSC() + defer scwSetState(launchBlocked, state, -1) + return sc.iabSetProc(iab) } // GetVector returns the raised state of the specific capability bit |