Reputation
404
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 14
Newest
 Yearling
Impact
~13k people reached

  • 0 posts edited
  • 1 helpful flag
  • 76 votes cast
2d
awarded  Yearling
Apr
21
awarded  Popular Question
Jan
25
awarded  Notable Question
Dec
16
awarded  Enlightened
Dec
16
awarded  Nice Answer
Oct
24
awarded  Curious
Sep
24
awarded  Autobiographer
Jun
18
awarded  Revival
May
28
awarded  Popular Question
Jan
22
comment Why is UID information not in /proc/X/stat?
@AndrewB For the record, ps looks it up in /proc/<pid>/status! It uses both the stat and status files, because neither contains all the bits of information it needs (uids are only in status, controlling terminal is only in stat... it's a mess).
Dec
19
answered Which systems do not honor socket read/write permissions?
Dec
11
accepted Will there ever be a Solaris 12?
Dec
5
asked Will there ever be a Solaris 12?
Nov
7
accepted Linux nuisance: /dev/stdin doesn't work with sockets
Nov
6
comment Linux nuisance: /dev/stdin doesn't work with sockets
@Gilles Possibly - do you have an example of where it would be a problem? Solaris and others get away quite happily with open() working for sockets, so it can't be a big security issue. It would probably only affect poorly-written applications that make dodgy assumptions. We fstat fds passed in to see what type they are.
Nov
6
comment Linux nuisance: /dev/stdin doesn't work with sockets
@Stephane A commercial unix application here that runs on Solaris/AIX and is launched with a load of inherited fds (Solaris bidi pipes, sockets), and what it does with each is given in some /dev/fd/ arguments. It's looking like the linux version isn't going to be able to have the same scheme of arguments.
Nov
5
comment Linux nuisance: /dev/stdin doesn't work with sockets
Yes - see the example in Linux's proc(5). Overloading "-" is a bit nasty, and not every application does it. It's a complete pain that you can't open() /dev/stdin on linux when it's a socket, unlike every other system. I'll may have to hack in the "-" kludge to the application if there isn't a better way to do it.
Nov
5
revised Linux nuisance: /dev/stdin doesn't work with sockets
clarify
Nov
5
comment Linux nuisance: /dev/stdin doesn't work with sockets
I'm using cat as a general example of any tool that opens a filename, as a way for you to specify a specific fd to use. So it's not more useful than normal cat - but for lots of tools, passing a filename on the commandline is the only way to get them to use stdin. The error printed is "No such device or address", from open(2) returning ENXIO.
Nov
5
asked Linux nuisance: /dev/stdin doesn't work with sockets