-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/17/2014 04:39 PM, Guillaume J. Charmes wrote:
> In pkg/selinux/selinux.go:
> 
>> +} + +func writeCon(name string, val string) error { +	if
>> !SelinuxEnabled() { +		return nil +	} +	out, err := os.OpenFile(name,
>> os.O_WRONLY, 0) +	if err != nil { +		return err +	} +	defer out.Close() 
>> + +	if val != "" { +		_, err = out.Write([]byte(val)) +	} else { +		_,
>> err = out.Write(nil)
> 
> Hmm, I actually never tried this. What it the expected effect of
> Write(nil)?
> 
> — Reply to this email directly or view it on GitHub 
> <https://github.com/dotcloud/docker/pull/4211/files#r10677694>.
> 
It writes NULL to the file, which Tells SELinux to go back to default labeling
of executed processes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlMoUBUACgkQrlYvE4MpobMXgwCgq+cIiXO/yX0c9JTDM+WUmfpP
7X8An1AioaHwg8eklS9ZsZ5Q6uRW84/u
=Tf4f
-----END PGP SIGNATURE-----