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

On 03/17/2014 04:46 PM, Guillaume J. Charmes wrote:
> In pkg/selinux/selinux.go:
> 
>> +	scon["level"] = mcs +	fileLabel = scon.Get() +	return processLabel,
>> fileLabel +} +func Security_check_context(val string) error { +	return
>> writeCon(fmt.Sprintf("%s.context", selinuxPath), val) +} + +func
>> CopyLevel(src, dest string) (string, error) { +	if !SelinuxEnabled() { +
>> return "", nil +	} +	if src == "" { +		return "", nil +	} +	err :=
>> Security_check_context(src)
> 
> Small detail: when you have this kind of situation (variable declaration
> only for |if| check, you can scope it within the if: |if err := fct(); err
> != nil { }|
> 
> — Reply to this email directly or view it on GitHub 
> <https://github.com/dotcloud/docker/pull/4211/files#r10677989>.
> 
Fixed.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlMoUvoACgkQrlYvE4MpobPlvACfeZzgMV4AWnKdWVimC18EhLuS
OgMAnjGXEqbBCKFfdT5cbHUp2kl1ON13
=zARp
-----END PGP SIGNATURE-----