View Single Post
Old 10-23-2012, 12:32 PM   #163
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by NiLuJe View Post
@eureka: Does it?

Code:
A file with the `i' attribute cannot be modified: it cannot be deleted or renamed, no link can be created to this file and no data can be written to the file.  Only the superuser or a process possessing the CAP_LINUX_IMMUTABLE  capability can set or clear this attribute.
diags runs as root, too, no?

(I've never used xattr at all, so I'm trusting my interpretation of the manpage here, didn't check at all what actually happens on the Kindle ).

That said, in my/USBNet case, the point is moot: I don't store anything in /usr/local (but it's nonetheless good to know if this actually works ).

EDIT: I can't read >_<". '[...] can set or clear this attribute' (meaning the perm/cap refers to manipulating the xattr, not the file itself, so yup, should work). . /me needs more coffee.
I checked this just the other day. seems to lockout access just fine.

my only worry is the interactive way it fails. I thought it said something like
"Really delete?" which worried me that it may cause a hang if scripted.

but is that just gives "NOISY error" >2 each DIAGS boot then that would be fine

(error noted here http://www.mobileread.com/forums/sho...&postcount=161) Worth bringing it up anyway I hope as a failed DIAGS startup script might be a bit horrible.

: )

Last edited by twobob; 10-23-2012 at 12:37 PM.
twobob is offline   Reply With Quote