I need to set the permissions of a file in rpm as a named pipe.
We deploy configuration files with some fancy rpm magic (%postun, %triggerin and %triggerun are used to mpve aside old config files and restore the m if needed). As part of the configuration for an Icinga distributed setup, I want to change the permissions of a file as part of the rpm installation, but I cant find the value I need to provide to the ''%attr'' macro.
The flie is:
ll /var/spool/icinga/cmd/icinga.cmd
prw-rw-rw- 1 icinga icingacmd 84 Apr 28 13:40 /var/spool/icinga/cmd/icinga.cmd
EDIT:
The actual issue is I have icinga.cmd with permissions prw-rw---, but I need it to be prw-rw-rw-. The actual file is created by the icinga process with the above permissions. I tried to automate the chmod including a loop that checks if the mode and permissions of the FIFO are good, but there are a series of complications I did not foresee and I will drop the idea here