예제 #1
0
파일: selinux.go 프로젝트: Altiscale/runc
// Setfilecon sets the SELinux label for this path or returns an error.
func Setfilecon(path string, scon string) error {
	return system.Lsetxattr(path, xattrNameSelinux, []byte(scon), 0)
}
예제 #2
0
func Setxattr(path, xattr, value string) error {
	return system.Lsetxattr(path, xattr, []byte(value), 0)
}