init scripts, /var/run and dpkg-statoverride

Scott James Remnant scott at canonical.com
Sun Dec 7 05:04:13 GMT 2008


On Mon, 2008-11-24 at 15:26 +0000, James Westby wrote:

> Some packages require certain ownership of or permissions on directories
> in /var/run. These packages chown/chmod the directories in the 
> postinst. As we all know Ubuntu has /var/run on a tmpfs, and as such we
> move code to do this from the postinst to the init script.
> 
> The correct thing to do is to guard these operations by a call to
> dpkg-statoverride to allow the admin to override permissions. However, I
> have seen cases where we have a bare chown/chmod in the init script, so
> we don't support that.
> 
> Is this something that we want to support? Does it even make any
> sense for directories on a tmpfs?
> 
I don't think it makes any sense to support.

Scott
-- 
Scott James Remnant
scott at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20081206/7c70fa4b/attachment.pgp 


More information about the ubuntu-devel mailing list