示例#1
0
文件: selinux.go 项目: hwpaas/docker
func Setexeccon(scon string) error {
	return writeCon(fmt.Sprintf("/proc/self/task/%d/attr/exec", system.Gettid()), scon)
}
示例#2
0
文件: selinux.go 项目: hwpaas/docker
func Getfscreatecon() (string, error) {
	return readCon(fmt.Sprintf("/proc/self/task/%d/attr/fscreate", system.Gettid()))
}
示例#3
0
文件: selinux.go 项目: hwpaas/docker
// Return the SELinux label of the current process thread.
func Getcon() (string, error) {
	return readCon(fmt.Sprintf("/proc/self/task/%d/attr/current", system.Gettid()))
}
示例#4
0
文件: selinux.go 项目: hwpaas/docker
func Setfscreatecon(scon string) error {
	return writeCon(fmt.Sprintf("/proc/self/task/%d/attr/fscreate", system.Gettid()), scon)
}