Debian Developers - Bug#292299: ITP: policyrcd -- policy-compliant interface from invoke-rc.d to local con

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > January 2005 > Bug#292299: ITP: policyrcd -- policy-compliant interface from invoke-rc.d to local con





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Bug#292299: ITP: policyrcd -- policy-compliant interface from invoke-rc.d to local con
David Pashley

2005-01-26, 7:51 am

On Jan 26, 2005 at 09:59, Henrique de Moraes Holschuh praised the llamas by saying:
> On Wed, 26 Jan 2005, David Pashley wrote:
>
> No, it is not. invoke-rc.d *HAS* to be coordinated, and implemented by every
> initscript system. The maintainers of these packages are well aware of
> that fact.
>
> The better fix IS to add an extra line to both incarnations of invoke-rc.d
> (sysv-rc's and file-rc's) to look under /usr/local/sbin first.
>
>
> No. Either it has to go on a package of its own, or it has to have the
> functionality folded into file-rc and sysv-rc.
>

Then I suggest a patch is submitted to both file-rc and sysv-rc.

--
David Pashley
david@davidpashley.com
Nihil curo de ista tua stulta superstitione.


--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Marc Haber

2005-01-27, 7:54 am

On Wed, 26 Jan 2005 08:12:36 -0200, Henrique de Moraes Holschuh
<hmh@debian.org> wrote:
>On Wed, 26 Jan 2005, David Pashley wrote:
invoke-rc.d[vbcol=seagreen]
>
>Make that "later". I just noticed one has to run the system's
>/usr/sbin/policy-rc.d in preference to all else.


Why?

Greetings
Marc

--=20
-------------------------------------- !! No courtesy copies, please !! =
-----
Marc Haber | " Questions are the | Mailadresse im =
Header
Mannheim, Germany | Beginning of Wisdom " | =
http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 =
72739834
Henrique de Moraes Holschuh

2005-01-27, 7:54 am

On Thu, 27 Jan 2005, Marc Haber wrote:
> On Wed, 26 Jan 2005 08:12:36 -0200, Henrique de Moraes Holschuh
> <hmh@debian.org> wrote:
>
> Why?


Because if any package that is NOT a policy-rc.d package is providing a
policy-rc.d in /usr/sbin, it has a damn good reason to do so, and it should
take precendence. Examples of damn good reasons are alternative initscript
managers such as runit.

If a package that is a policy-rc.d package is installed, then the local
admin is supposed to take care of things (he should uninstall that package,
if he wants to use his own policy-rc.d under /usr/local. Or register his
policy-rc.d as an alternative and select that one, etc).

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Marc Haber

2005-01-27, 7:54 am

On Thu, Jan 27, 2005 at 10:37:05AM -0200, Henrique de Moraes Holschuh wrote:
> On Thu, 27 Jan 2005, Marc Haber wrote:
>
> Because if any package that is NOT a policy-rc.d package is providing a
> policy-rc.d in /usr/sbin, it has a damn good reason to do so, and it should
> take precendence. Examples of damn good reasons are alternative initscript
> managers such as runit.


Packages providing /usr/sbin/policy-rc.d are required to use the
alternatives system anyway.

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Henrique de Moraes Holschuh

2005-01-27, 7:54 am

On Thu, 27 Jan 2005, Marc Haber wrote:
> On Thu, Jan 27, 2005 at 10:37:05AM -0200, Henrique de Moraes Holschuh wrote:
>
> Packages providing /usr/sbin/policy-rc.d are required to use the
> alternatives system anyway.


Yes, but they can use diversions when the entire policy-rc.d system has to
be disabled, if need be.

However, if invoke-rc.d searches /usr/local/sbin/policy-rc.d first, this
whole safety net is disabled.

So invoke-rc.d could be changed to look under /usr/local/sbin/policy-rc.d as
well, but only if it failed to find a runnable policy-rc.d at
/usr/sbin/policy-rc.d.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Henrique de Moraes Holschuh

2005-01-27, 7:54 am

On Thu, 27 Jan 2005, Henrique de Moraes Holschuh wrote:
> Yes, but they can use diversions when the entire policy-rc.d system has to
> be disabled, if need be.


Make it a very high priority alternative. It is probably a bad idea to try
our luck with diverting an alternative.

Still, the rationale for /usr/local last holds.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Marc Haber

2005-01-27, 5:53 pm

On Thu, Jan 27, 2005 at 11:24:01AM -0200, Henrique de Moraes Holschuh wrote:
> However, if invoke-rc.d searches /usr/local/sbin/policy-rc.d first, this
> whole safety net is disabled.


One could argue that the local admin explicitly requested to have that
net disabled.

> So invoke-rc.d could be changed to look under /usr/local/sbin/policy-rc.d as
> well, but only if it failed to find a runnable policy-rc.d at
> /usr/sbin/policy-rc.d.


So how do I override a non-fitting /usr/sbin/policy-rc.d? Being forced
to use a local diversion is not nice.

Greetings
Marc

--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Henrique de Moraes Holschuh

2005-01-27, 5:53 pm

On Thu, 27 Jan 2005, Marc Haber wrote:
> On Thu, Jan 27, 2005 at 11:24:01AM -0200, Henrique de Moraes Holschuh wrote:
>
> One could argue that the local admin explicitly requested to have that
> net disabled.
>
>
> So how do I override a non-fitting /usr/sbin/policy-rc.d? Being forced


Remove the package providing it. The only two types of pacakge that are to
provide policy-rc.d are packages that implement a policy-rc.d system (and if
you don't want that, remove the package), AND packages that know they must
disable invoke-rc.d for some weird reason (which I am kind of suspicious
might be a mistake on the whole reasoning of whomever needs that, but I am
playing safe).

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Marc Haber

2005-01-27, 5:53 pm

Xref: number1.nntp.dca.giganews.com linux.debian.devel:163595 linux.debian.bugs.dist:196522

On Thu, Jan 27, 2005 at 12:09:11PM -0200, Henrique de Moraes Holschuh wrote:
> Remove the package providing it.


That might be a non-option.

Greetins
Marc

--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Henrique de Moraes Holschuh

2005-01-27, 8:48 pm

On Thu, 27 Jan 2005, Marc Haber wrote:
> On Thu, Jan 27, 2005 at 12:09:11PM -0200, Henrique de Moraes Holschuh wrote:
>
> That might be a non-option.


Only if there is a rather bad bug in the package.

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com