[Pkg-acpi-devel] Bug#664705: acpid: weird socket permissions

Ted Felix ted at tedfelix.com
Tue Mar 20 13:46:51 UTC 2012


On 3/19/2012 9:18 PM, Salvo Tomaselli wrote:
> after the upgrade
> srwxr-xr-x 1 root root 0 mar 20 02:15 /var/run/acpid.socket
>
> before the upgrade
> srw-rw-rw- 1 root root 0 mar 20 02:15 /var/run/acpid.socket

Thanks for the bug report.

I've verified this and should have a fix by the end of the day.  Turns 
out that fchmod() and fchown() must be called prior to bind() on a 
socket.  A little code-shuffling should fix the problem.  I plan on 
moving the fchmod() and fchown() related code into ud_create_socket() 
and adding perm and group args.

Note that the -g option is also broken because of this.

Ted.





More information about the Pkg-acpi-devel mailing list