Re: [SSSD] [PATCH] Check and set permissions on SBUS sockets

2010-02-24 Thread Stephen Gallagher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/23/2010 07:40 AM, Stephen Gallagher wrote: On 02/22/2010 04:14 AM, Sumit Bose wrote: On Fri, Feb 19, 2010 at 03:46:43PM -0500, Stephen Gallagher wrote: Don't check for 0777 permissions. Check that the permissions are NOT 0600 and correct it

Re: [SSSD] [PATCH] Check and set permissions on SBUS sockets

2010-02-23 Thread Stephen Gallagher
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/22/2010 04:14 AM, Sumit Bose wrote: On Fri, Feb 19, 2010 at 03:46:43PM -0500, Stephen Gallagher wrote: 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

Re: [SSSD] [PATCH] Check and set permissions on SBUS sockets

2010-02-22 Thread Sumit Bose
On Fri, Feb 19, 2010 at 03:46:43PM -0500, Stephen Gallagher wrote: -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

[SSSD] [PATCH] Check and set permissions on SBUS sockets

2010-02-19 Thread Sumit Bose
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

Re: [SSSD] [PATCH] Check and set permissions on SBUS sockets

2010-02-19 Thread Stephen Gallagher
-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