On Sat, May 07, 2016 at 06:48:58AM -0500, Edgar Pettijohn wrote:
> >
> > else, if it isn't in xclock code, it could be a open(2) call in some
> > X11R6 library.
> >
> I looked all I found was access() which if I'm reading pledge correctly it
> doesn't need pledge. Is that right?
>
What I mean is the error code path in libX11 (for example).
After checking the code source:
- the default error handler (for not fatal) error is _XDefaultError
(xenocara/lib/libX11/src/XlibInt.c:1375)
- it calls _XPrintDefaultError (xenocara/lib/libX11/src/XlibInt.c:1263)
- it calls XGetErrorDatabaseText (xenocara/lib/libX11/src/ErrDes.c:139)
- it calls XrmGetFileDatabase (xenocara/lib/libX11/src/Xrm.c:1669)
- it calls ReadInFile (xenocara/lib/libX11/src/Xrm.c:1573)
- it calls _XOpenFile (xenocara/lib/libX11/src/XlibInt.c:1830)
- ... and _XOpenFile will do access(2) and open(2) on filename, and
kernel will kill it due to pledge.
I am still unsure if adding "rpath" is the good way to deal with that.
But the problem you saw could be related to some X11 error that trigger
a access(2) or a open(2) for showing error message.
--
Sebastien Marie