Skip to contentSkip to conversation

/dev/stderr gets unlinked 8]

DISCUSSION Bodo Eggert 2 participants 2 messages Mar 19, 2006 6 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 11 lines · linux-os (Dick Johnson)
Quoted 1 line · Jan Engelhardt

If not, you could write an LSM that prohibits unlinking /dev/stderr.

That symlink isn't even used -- at least by any sane program! I don't have a clue why these things were created and what they were for. The objects stdin, stdout, and stderr, are 'C' runtime library pointers to opaque types associated with the file descriptors, STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO. The presence of these bogus sym-links in /dev represent some kind of obfuscation and have no value except to confuse (or identify a RedHat distribution).

Think about portable shell scripts. I remember /dev/std* longer than /proc.

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#7 lore raw
Quoted 13 lines · Bodo Eggert
Quoted 11 lines · linux-os (Dick Johnson)
Quoted 1 line · Jan Engelhardt

If not, you could write an LSM that prohibits unlinking /dev/stderr.

That symlink isn't even used -- at least by any sane program! I don't have a clue why these things were created and what they were for. The objects stdin, stdout, and stderr, are 'C' runtime library pointers to opaque types associated with the file descriptors, STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO. The presence of these bogus sym-links in /dev represent some kind of obfuscation and have no value except to confuse (or identify a RedHat distribution).

Quoted 1 line

Think about portable shell scripts. I remember /dev/std* longer than /proc.

They're from BSD (where they are real devices, with a major & minor number).