blob: 2bced066cbf5dcd68e6c3083da7d748a064e2192 [file] [log] [blame]
// Program b210613 reproduces the code reported in:
//
// https://bugzilla.kernel.org/show_bug.cgi?id=210613
//
// This file is evolved directly from the reproducer attached to that
// bug report originally authored by Lorenz Bauer.
package main
import (
"fmt"
"log"
"kernel.org/pub/linux/libs/security/libcap/cap"
)
func main() {
if err := cap.ModeNoPriv.Set(); err != nil {
log.Fatalf("error dropping privilege: %v", err)
}
fmt.Println("b210613: PASSED")
}