You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,16 @@ apt install libselinux1-dev
16
16
17
17
## Usage
18
18
19
-
A main tool is implemented to check what modules are enabled, output of `go run cmd/main.go`:
20
-
19
+
```go
20
+
import"github.com/rogercoll/go-lsm"
21
21
```
22
-
WARNING: LoadPin still not implemented
23
-
WARNING: Smack still not implemented
24
-
WARNING: TOMOYO still not implemented
25
-
Module: selinux is enabled
26
-
Module: apparmor is not enabled
27
-
Module: yama is enabled
22
+
23
+
Construct a new LSM config, then use the various methods to access different parts of the system Linux Security modules configuration. For example, to get all loaded security modules:
24
+
25
+
```go
26
+
l, err:= lsm.NewDefaultConfig()
27
+
if err != nil {
28
+
log.Fatalf("Failed to create default config: %v", err)
0 commit comments