2.2.6 - exec.c - CONFIG_BINFMT_MISC inconsistency .

Sharad Agrawal (sagrawal@hss.hns.com)
Mon, 26 Apr 1999 13:36:13 +0530 (IST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--1435209970-1151615202-925113973=:444
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

This is the final mail on this topici from our side. According to the
response from *Linus* it is a policy to allow root users to override
existing binary formats registered in the kernel via the
CONFIG_BINFMT_MISC interface.

What we are trying to point out is , that this policy is not
consistently followed when the support for CONFIG_BINFMT_MISC is compiled
into the kernel.

When the support is compiled into the kernel , MISC handlers reach the end
of the linked list, hence overriding existing formats is not possible

When the support is compiled as the module , MISC handlers are at the
beginning of the linked list, hence overrides are possible.

To make this consistent we have attached the patch to exec.c , which
now calls init_misc_binfmt() at the end of the initialisation
sequence hence making sure that if the support for CONFIG_BINFMT_MISC
is compiled into the kernel , the handlers are attached at the beginning
of the linked list , making overrides possible.

This according to us is a viable solution.

Comments ??

Regards,
Sharad/Suman
Hughes Software Systems, India

--1435209970-1151615202-925113973=:444
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.04.9904261336130.444@sagrawal.hss.hns.com>
Content-Description:
Content-Disposition: attachment; filename=patch

LS0tIGV4ZWMuYy5vcmlnCU1vbiBBcHIgMjYgMTM6MjQ6NDMgMTk5OQ0KKysr
IGV4ZWMuYwlNb24gQXByIDI2IDEzOjI1OjAzIDE5OTkNCkBAIC01Myw5ICs1
Myw2IEBADQogDQogdm9pZCBfX2luaXQgYmluZm10X3NldHVwKHZvaWQpDQog
ew0KLSNpZmRlZiBDT05GSUdfQklORk1UX01JU0MNCi0JaW5pdF9taXNjX2Jp
bmZtdCgpOw0KLSNlbmRpZg0KIA0KICNpZmRlZiBDT05GSUdfQklORk1UX0VM
Rg0KIAlpbml0X2VsZl9iaW5mbXQoKTsNCkBAIC04MSw2ICs3OCw5IEBADQog
CWluaXRfZW04Nl9iaW5mbXQoKTsNCiAjZW5kaWYNCiANCisjaWZkZWYgQ09O
RklHX0JJTkZNVF9NSVNDDQorCWluaXRfbWlzY19iaW5mbXQoKTsNCisjZW5k
aWYNCiAJLyogVGhpcyBjYW5ub3QgYmUgY29uZmlndXJlZCBvdXQgb2YgdGhl
IGtlcm5lbCAqLw0KIAlpbml0X3NjcmlwdF9iaW5mbXQoKTsNCiB9DQo=
--1435209970-1151615202-925113973=:444--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/