conflicts between shutdown hooks of nvram-wakeup and e.g. noad

Thomas Schmidt pkg-vdr-dvb-devel@lists.alioth.debian.org
Wed, 12 Jan 2005 22:23:28 +0100


--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Thomas Schmidt schrieb am 06.01.05, um 23:10 Uhr:
> > You could either make the script readable only by user vdr or check in
> > the script the real against the effective uid and exit if the calling
> > user is not user vdr.
>=20
> Thank you for your help, will try to implement this during the next
> weekend.

Well, the shutdown-hooks are now working as user, i had to write a
(very small) c-wrapper for this, because it is impossible to run=20
shell-scripts with setuid/setgid. Still need to add the check for
effective/real uid. Any tips how to realize this?=20

During testing i found a small problem with the last changes from=20
Tobias: Renaming $SUTDOWNCMD to $SHUTDOWN_CMD will require to change=20
every shutdown-hook that wants to override this variable (for example
nvram-wakeup), so i guess it would be better to change it back to=20
$SHUTDOWNCMD again!?

Any objections?


Thomas

--=20
Thomas Schmidt
thomas.schmidt@in.stud.tu-ilmenau.de

--rwEMma7ioTxnRzrJ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB5ZVPc9+NqwoydlIRArlbAKCHAaVhwZi9DTn8quLdfMXHF6QRRQCcDdnz
jL2mxRYIkAmZv4YFMsL5O4Y=
=8UQc
-----END PGP SIGNATURE-----

--rwEMma7ioTxnRzrJ--