View Single Post
Old 10-23-2012, 11:49 AM   #159
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@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.

Last edited by NiLuJe; 10-23-2012 at 11:53 AM.
NiLuJe is offline   Reply With Quote