Re: Pre-Fix for rename hole


From: Amon Ott <ao@rsbac.org>
Subject: Re: Pre-Fix for rename hole
Date: Fri, 1 Jun 2001 15:26:44 +0200

Next Article (by Date): FINALLY ... THE BEST of THE BEST ! BESTofBEST-WEBTV
Previous Article (by Date): Re: to developers: flags Amon Ott
Top of Thread: Pre-Fix for rename hole Amon Ott
Next in Thread: Re: Pre-Fix for rename hole Stanislav Ievlev
Articles sorted by: [Date] [Author] [Subject]


--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

On Fre, 01 Jun 2001 Amon Ott wrote:
> Hello again!
> 
> Attached is a pre version of a fix for the rename hole. It contains
> DELETE request, attribute setting and secure delete call for ext2. Everything
> else will only be in 1.1.2-pre5.
> 
> The patch is against kernel 2.4.4-rsbac-v1.1.2-pre4, but should also be working
> with other 2.4 kernel versions and rsbac 1.1.1.

Ups, something went wrong with the atttachment. Sorry.

Amon.
--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD
Content-Type: text/x-c;
  name="rename-bug-2.4.4.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="rename-bug-2.4.4.diff"

LS0tIGxpbnV4LTIuNC4zLXJzYmFjLTEuMS4yL2ZzL25hbWVpLmMJRnJpIEFwciAyMCAxNzozNjoz
NCAyMDAxCisrKyBsaW51eC0yLjQuNC1yc2JhYy0xLjEuMi9mcy9uYW1laS5jCVRodSBNYXkgMzEg
MTM6Mzk6MzMgMjAwMQpAQCAtMjQ4OSw3ICsyNDg5LDkgQEAKICAgICAgICAgI2lmZGVmIENPTkZJ
R19SU0JBQwogICAgICAgICBlbnVtICByc2JhY190YXJnZXRfdCAgICAgICAgICByc2JhY190YXJn
ZXQ7CiAgICAgICAgIHVuaW9uIHJzYmFjX3RhcmdldF9pZF90ICAgICAgIHJzYmFjX3RhcmdldF9p
ZDsKKyAgICAgICAgdW5pb24gcnNiYWNfdGFyZ2V0X2lkX3QgICAgICAg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1ZS5u
bGluayA9IG5ld19kZW50cnktPmRfaW5vZGUtPmlfbmxpbms7CisgICAgICAgICAgICBpZiAoIXJz
YmFjX2FkZl9yZXF1ZXN0KFJfREVMRVRFLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICBjdXJyZW50LT5waWQsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJz
YmFjX3RhcmdldCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcnNiYWNfdGFy
Z2V0X2lkLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBX25saW5rLAorICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByc2JhY19hdHRyaWJ1dGVfdmFsdWUpKQor
ICAgICAgICAgICAgICB7CisgICAgICAgICAgICAgICAgZXJyb3IgPSAtRVBFUk07CisgICAgICAg
ICAgICAgICAgZHB1dChuZXdfZGVudHJ5KTsKKyAgICAgICAgICAgICAgICBnb3RvIGV4aXQ0Owor
ICAgICAgICAgICAgICB9CisgICAgICAgICAgfQogICAgICAgICAjZW5kaWYgLyogQ09ORklHX1JT
QkFDICovCiAKLQluZXdfZGVudHJ5ID0gbG9va3VwX2hhc2goJm5ld25kLmxhc3QsIG5ld19kaXIp
OwotCWVycm9yID0gUFRSX0VSUihuZXdfZGVudHJ5KTsKLQlpZiAoSVNfRVJSKG5ld19kZW50cnkp
KQotCQlnb3RvIGV4aXQ0OwotCiAJbG9ja19rZXJuZWwoKTsKIAllcnJvciA9IHZmc19yZW5hbWUo
b2xkX2Rpci0+ZF9pbm9kZSwgb2xkX2RlbnRyeSwKIAkJCQkgICBuZXdfZGlyLT5kX2lub2RlLCBu
ZXdfZGVudHJ5KTsKIAl1bmxvY2tfa2VybmVsKCk7CisKKyAgICAgICAgLyogUlNCQUM6IG5vdGlm
eSBBREYgb2YgZGVsZXRlZCBmaWxlICovCisgICAgICAgICNpZmRlZiBDT05GSUdfUlNCQUMKKyAg
ICAgICAgaWYgKHRhcmdldF9leGlzdHMgJiYgIWVycm9yKQorICAgICAgICAgIHsKKyAgICAgICAg
ICAgIHJzYmFjX25ld190YXJnZXRfaWQuZHVtbXkgPSAwOworICAgICAgICAgICAgaWYgKHJzYmFj
X2FkZl9zZXRfYXR0cihSX0RFTEVURSwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgY3VycmVudC0+cGlkLAorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByc2Jh
Y190YXJnZXQsCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJzYmFjX3Rhcmdl
dF9pZCwKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVF9OT05FLAorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICByc2JhY19uZXdfdGFyZ2V0X2lkLAorICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBBX25saW5rLAorICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICByc2JhY19hdHRyaWJ1dGVfdmFsdWUpKQorICAgICAgICAgICAgICB7
CisgICAgICAgICAgICAgICAgcHJpbnRrKEtFUk5fV0FSTklORworICAgICAgICAgICAgICAgICAg
ICAgICAiZG9fcmVuYW1lKCkgW3N5c19yZW5hbWUoKV06IHJzYmFjX2FkZl9zZXRfYXR0cigpIHJl
dHVybmVkIGVycm9yIik7CisgICAgICAgICAgICAgIH0KKyAgICAgICAgICB9CisgICAgICAgICNl
bmRpZgogCiAJZHB1dChuZXdfZGVudHJ5KTsKIGV4aXQ0OgotLS0gbGludXgtMi40LjMtcnNiYWMt
MS4xLjIvZnMvZXh0Mi9uYW1laS5jCUZyaSBBcHIgMjAgMTc6MzY6MzQgMjAwMQorKysgbGludXgt
Mi40LjQtcnNiYWMtMS4xLjIvZnMvZXh0Mi9uYW1laS5jCUZyaSBKdW4gIDEgMTA6NDc6MTQgMjAw
MQpAQCAtNzg5LDYgKzc4OSwxMiBAQAogCWV4dDJfZGVsZXRlX2VudHJ5KG9sZF9kaXIsIG9sZF9k
ZSwgb2xkX2JoKTsKIAogCWlmIChuZXdfaW5vZGUpIHsKKyAgICAgICAgICAgICAgICAvKiBSU0JB
QyAqLworICAgICAgICAgICAgICAgICNpZmRlZiBDT05GSUdfUlNCQUNfU0VDREVMCisgICAgICAg
ICAgICAgICAgaWYobmV3X2lub2RlLT5pX25saW5rID09IDEpCisgICAgICAgICAgICAgICAgICBy
c2JhY19zZWNfZGVsKG5ld19kZW50cnkpOworICAgICAgICAgICAgICAgICNlbmRpZgorCiAJCW5l
d19pbm9kZS0+aV9ubGluay0tOwogCQluZXdfaW5vZGUtPmlfY3RpbWUgPSBDVVJSRU5UX1RJTUU7
CiAJCW1hcmtfaW5vZGVfZGlydHkobmV3X2lub2RlKTsK

--Boundary-=_nWlrBbmQBhCDarzOwKkYHIDdqSCD--
-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Date): FINALLY ... THE BEST of THE BEST ! BESTofBEST-WEBTV
Previous Article (by Date): Re: to developers: flags Amon Ott
Top of Thread: Pre-Fix for rename hole Amon Ott
Next in Thread: Re: Pre-Fix for rename hole Stanislav Ievlev
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.