| 1 |
// Program b210613 reproduces the code reported in: |
| 2 |
// |
| 3 |
// https://bugzilla.kernel.org/show_bug.cgi?id=210613 |
| 4 |
// |
| 5 |
// This file is evolved directly from the reproducer attached to that |
| 6 |
// bug report originally authored by Lorenz Bauer. |
| 7 |
package main |
| 8 |
|
| 9 |
import ( |
| 10 |
"fmt" |
| 11 |
"log" |
| 12 |
|
| 13 |
"kernel.org/pub/linux/libs/security/libcap/cap" |
| 14 |
) |
| 15 |
|
| 16 |
func main() { |
| 17 |
if err := cap.ModeNoPriv.Set(); err != nil { |
| 18 |
log.Fatalf("error dropping privilege: %v", err) |
| 19 |
} |
| 20 |
fmt.Println("b210613: PASSED") |
| 21 |
} |