[SSSD] [PATCH] Check and set permissions on SBUS sockets
Stephen Gallagher
sgallagh at redhat.com
Fri Feb 19 20:46:43 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/19/2010 08:49 AM, Sumit Bose wrote:
> Hi,
>
> this patch should fix #403.
>
> libdbus is so nice to call chmod(0777) explicitly on a newly created
> socket so we have to call chmod() explicitly too to change the
> permissions. I would prefer the call fchmod(), but I didn't found a way
> to get the file descriptor of the socket out of libdbus. If anyone knows
> a way I would be happy to update the patch.
>
Nack.
Don't check for 0777 permissions. Check that the permissions are NOT
0600 and correct it if so.
- --
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkt++LMACgkQeiVVYja6o6NZfQCfVLfcUWyLpz6eEHcovyffYk00
9mQAnApUr4mmQC6Eojn3to/hJ/sLJqi7
=OoE0
-----END PGP SIGNATURE-----
More information about the sssd-devel
mailing list