Bug#1055036: bookworm-pu: package crmsh/4.4.1-1+deb12u1
Control: tag -1 moreinfo
On Sun, Oct 29, 2023 at 10:16:25PM +0100, Valentin Vidic wrote:
> diff -Nru crmsh-4.4.1/debian/crmsh.postinst crmsh-4.4.1/debian/crmsh.postinst
> --- crmsh-4.4.1/debian/crmsh.postinst 1970-01-01 01:00:00.000000000 +0100
> +++ crmsh-4.4.1/debian/crmsh.postinst 2023-10-29 20:46:13.000000000 +0100
> @@ -0,0 +1,46 @@
> +#!/bin/sh
> +# postinst script for crmsh
> +#
> +# see: dh_installdeb(1)
> +
> +set -e
> +
> +# summary of how this script can be called:
> +# * <postinst> `configure' <most-recently-configured-version>
> +# * <old-postinst> `abort-upgrade' <new version>
> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
> +# <new-version>
> +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
> +# <failed-install-package> <version> `removing'
> +# <conflicting-package> <version>
> +# for details, see http://www.debian.org/doc/debian-policy/ or
> +# the debian-policy package
> +#
> +
> +case "$1" in
> + configure)
> + mkdir -p /var/log/crmsh
> + chown hacluster:haclient /var/log/crmsh
> + chmod 0775 /var/log/crmsh
> +
> + touch /var/log/crmsh/crmsh.log
> + chown hacluster:haclient /var/log/crmsh/crmsh.log
> + chmod 0664 /var/log/crmsh/crmsh.log
> + ;;
This will happen on every package update, no? What if the local
administrator has set other properties on the log file (e.g. to allow other
users to read it)?
--
Jonathan Wiltshire jmw@debian.org
Debian Developer http://people.debian.org/~jmw
4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
Reply to: