Eric Blake
1c59bb3cef
nice, nohup, su: detect write failure to stderr
...
These programs can print non-fatal diagnostics to stderr prior to
exec'ing a subsidiary program. However, if we thought the situation
warranted a diagnostic, we insist that the diagnostic be printed
without error, rather than blindly exec, as it may be a security risk.
For an example, try 'nice -n -1 nice 2>/dev/full'. Failure to raise
priority (by lowering niceness) is not fatal, but failure to inform
the user about failure to change priority is dangerous.
* src/nice.c (main): Declare failure if writing advisory message
to stderr fails.
* src/nohup.c (main): Likewise.
* src/su.c (main): Likewise.
* tests/misc/nice: Test this.
* tests/misc/nohup: Likewise.
* NEWS: Document this.
2009-10-28 21:12:41 -06:00
..
2009-10-23 16:31:23 -06:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-09-08 01:43:31 +01:00
2009-06-23 22:33:15 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2009-10-23 16:31:34 -06:00
2009-10-26 06:05:44 -06:00
2009-08-28 12:56:51 -06:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-10-26 21:30:34 -06:00
2009-10-27 19:55:35 -06:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-03-12 19:48:21 +01:00
2009-03-12 19:48:29 +01:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-10-23 16:24:08 -06:00
2009-06-23 22:33:15 +02:00
2009-04-09 14:07:29 +01:00
2009-10-23 16:24:08 -06:00
2009-06-23 22:33:15 +02:00
2009-09-06 18:40:40 +02:00
2009-06-23 22:33:15 +02:00
2009-10-07 09:31:27 +02:00
2009-06-23 22:33:15 +02:00
2009-10-21 16:56:00 +01:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-10-28 21:12:41 -06:00
2009-10-26 06:05:44 -06:00
2009-06-23 22:33:15 +02:00
2009-10-28 21:12:41 -06:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-10-28 06:24:52 -06:00
2009-10-28 16:37:07 +00:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-10-27 18:53:44 -06:00
2009-03-25 06:33:32 -06:00
2009-03-02 09:35:12 +01:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2008-10-23 14:18:25 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-10-07 09:31:27 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-01-28 16:43:52 +00:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-07-03 17:00:55 +01:00
2009-10-27 18:53:44 -06:00
2009-09-14 15:27:02 +02:00
2009-08-25 09:21:00 +02:00
2009-08-25 09:21:00 +02:00
2009-03-18 21:44:45 +01:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-09-29 16:04:12 +02:00
2009-08-25 09:21:00 +02:00
2009-10-08 20:30:00 -06:00
2009-10-26 06:05:44 -06:00
2009-08-25 09:21:00 +02:00
2009-02-22 01:42:43 +01:00
2009-02-26 20:25:42 +01:00
2009-10-23 16:32:26 -06:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-10-23 16:31:23 -06:00
2009-10-26 06:05:44 -06:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2008-09-10 13:20:10 +02:00
2009-03-29 19:54:54 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-06-23 22:33:15 +02:00
2009-08-25 09:21:00 +02:00
2009-09-14 14:19:03 +01:00
2009-06-23 22:33:15 +02:00