aboutsummaryrefslogtreecommitdiff
path: root/cap/iab.go
diff options
context:
space:
mode:
Diffstat (limited to 'cap/iab.go')
-rw-r--r--cap/iab.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cap/iab.go b/cap/iab.go
index 877ed12..77f2dbc 100644
--- a/cap/iab.go
+++ b/cap/iab.go
@@ -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