Skip to content

jbrindle/setrans

Repository files navigation

setrans

GoDoc

Go SELinux label translation client.

This package connects to and interacts with mcstransd to get SELinux label and color translations.

Example

package main

import "github.com/jbrindle/setrans"

func main() {
    conn, _ := setrans.New()
    defer conn.Close()

    translated, _ := conn.TransToRaw("staff_u:staff_r:staff_t:SystemLow-SystemHigh")
    fmt.Println(translated) // staff_u:staff_r:staff_t:s0-s15:c0.c1023
}

About

Go SELinux label translation client

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages