[go: up one dir, main page]

|
|
Log in / Subscribe / Register

Suppressing SIGBUS signals

Suppressing SIGBUS signals

Posted Jun 26, 2021 2:00 UTC (Sat) by NYKevin (subscriber, #129325)
In reply to: Suppressing SIGBUS signals by alison
Parent article: Suppressing SIGBUS signals

There are several answers to that:

- The operating system† should protect the user from incompetently-written software. Poorly written software should not cause any part of the operating system to crash.
- Depending on your security model, the application may be considered untrusted, in which case it should not be allowed to bring down the compositor (as that would be a denial-of-service attack).
- The application calling ftruncate might not even be the same application which created the file, if the latter leaves a directory entry lying around.

† Outside of the FOSS world, the compositor is universally considered to be part of "the operating system."


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds