System reboot triggered by just reading a device file....!?
since i have gotten more or less similar answers from here, i have talked to some more people privately.
the result is interesting:
if the person i talked to was some sysadmin or related to that (i.e. some person running servers), his opinion was very similar to mine. if the person was a developer, he didn`t really understand why i have a problem with that. "be careful if you are root" was what i got.
one of the admins gave a good statement, which i liked very much and want to share:
"even if you are root: it`s unix philosophy, that reading is harmless!"
i never thought about that, but i think thats exactly the point and thats why i`m feeling uncomfortable with that.
anyway - it cost me some time to find a bug which was none and the only mistake i did was using a tool for which i was sure did nothing more than reading. so why should i care that i was root ?
need to change my own philosophy now, because i learned that reading isn`t harmless. ;)
regards
roland
Quoted 18 lines
-----Ursprüngliche Nachricht-----
Von: "Simon Arlott" <[email protected]>
Gesendet: 21.11.07 13:30:05
An: [email protected]
CC: "Robert Hancock" <[email protected]>, [email protected]
Betreff: Re: System reboot triggered by just reading a device file....!?Quoted 7 lines · On Wed, November 21, 2007 00:01, [email protected] wrote:
Quoted 1 line
There is.. it's called "root privileges".
yes, true.
but - regardless of being a windows app or not - what if you want to take a look on your system as a whole, especially when using some tool which graphically shows how and where your diskspace is being used? if i let this run from ordinary useraccount it would get lot
s of "permission denied" and then its only telling half of the truth.....
Quoted 11 lines
Such a tool shouldn't need to open any files, whether they're device files or not. Do you expect it to open
/dev/zeroetc. too and read from an infinitely sized "file"?Quoted 2 lines
Quoted 2 lines
Quoted 1 line
i`d wish there would be some fence around this or
iTCO_wdt/dev/watchdognot being active after adefault desktop installation.
Delete it?
Signature · 1 line
Simon Arlott
______________________________________________________________________________
Jetzt neu! Im riesigen WEB.DE Club SmartDrive Dateien freigeben und mit Freunden teilen! http://www.freemail.web.de/club/smartdrive_ttc.htm/?mc=021134
Quoted 2 lines · [email protected] schrieb:
[was: reading
/dev/watchdogtriggers reboot as intended]
need to change my own philosophy now, because i learned that reading isn`t harmless. ;)
If you want to protect you from your curiosity (or from reading anything), you could just disable the watchdog in the kernel.
See: Device Drivers -> Character devices -> Watchdog Timer Support -> ...
Regards,
Signature · 10 lines
Clemens Koller __________________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Straße 45/1 Linhof Werksgelände D-81379 München Tel.089-741518-50 Fax 089-741518-19 http://www.anagramm-technology.com